Awkward behavior after GetArray (memory corruption?)
I have a very weird problem. Two local variables suddenly change their value in the middle of a cycle right after I call GetArray.
Code:
for (int i = index; i < len; i++) I have tried updating MM and running the code on both SM 1.9 and 1.10. I'm pretty sure it used to work just fine half a year ago or so. It does NOT seem to happen in another plugin of mine that uses the exact same ArrayList. In fact, copy-pasting the code from that other plugin leads to the same error. |
Re: Awkward behavior after GetArray (memory corruption?)
You should also provide how you initialize reco.
|
Re: Awkward behavior after GetArray (memory corruption?)
Isn't a bad idea to declare variables inside cycle?
Check "data" buf. size against the block size you declared arraylist with. |
All times are GMT -4. The time now is 08:34. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.