bvideo
Do you think these symptoms are a problem of the size of your project? What happens if you solo a couple of the offending tracks and try to reproduce? Build it up little by little until you hit the problem. Alternatively, find a minimal project that reproduces and let other people try it out. Which 'x' of 8.x are you using? Maybe it was some time in the 8.x timeframe (8.3?) that the midi prepare buffer size got made configurable. The default may be too small; 500 ms is not bad. Also, in the old 8.x days the audio metronome would cause baffling problems. [DX7+E!, Roland D50+MEX, Korg M1REX, Ensoniq Mirage, ...]
I am using sonar 8.0 and I can adjust MIDI buffer (default=500ms); I increase to 750ms still same problem; I don't think it is buffer issue, coz the bug can reproduce with 1 SOLO track. so not load problem or max limit on number of MIDI tracks in a single project.
very easy to isolate the problem tracks to 1 or 2 prime suspects: to narrow it down to that pesky track = the only weapon I got: that's the first thing I usually do - SOLO individual tracks so that their MIDI event activity are enabled while others are not.
ie. I have 4 sonar MIDI tracks routed to EX5R I called them EX5R_1, EX5R_2, EX5R_3, EX5R_4 which is transmitting on USB MIDI OUT PORT B, channels=11,12,13,14, respectively. for that physical USB port (I only got 4 total to share among 10+ synths) : I reserve channels 1-6 for Trinity HDR, 7-10 for Roland VSYNTH, and I reserve channel 16 for my EX5R Performance Bank selection channel. so I multiplex several HW synths on a single USB port, then in each assigned MIDI channel, multiplex patch changes for that particular part of a particular synth.
when I solo the 3 EX5R_2 to EX5R_4 tracks to see which is sending bad PCG change ==> I instantly can reproduce the problem,
I then SOLO and isolate to a single EX5R_2 track out of 100+ MIDI tracks, upon PLAY: I can see the EX5R synth's part associated with this channel receiving the ROGUE pcg change msg!!
also scanned all midi events on that cultprit track: via MIDI event list editor and I then remove all PCG change msg for that track, and start playing MIDWAY of clip ==> same problem!
on this soloed MIDI track : consists of only MIDI note on/off events, no CC msgs, the searchback function should now be sending the DEFAULT PATCH assigned to the SONAR midi track but it is not : it is sending something else that it picked from the rabbit's hat - which is really baffling.
like I said, appears sonar8 has a mind of its own: a track with no CC msg yet sonar8 sends a rogue CC msg!
also with this track SOLO'ed: I remove the possibiblity of OTHER MIDI tracks that are suppose to be routed to other HW synths like JD990 or FantomXR that incorrectly got routed to the EX5R and therefore received inadvertinely that incorrect PCG msg.
the only way to get around this problem is to start from the start of the CLIP just before start of the PCG change msg; which is annoying if say I am 24 bars into a long passage, and now I have to rewind to beginning just to replay that section with the correct sound.
I never get this problem in sonar2 and I wish I never encounter this problem and move on with my life.... (creating music not fighting baffling cakewalk software glitches).