setMemBit error: membit already set
BlitzMax Forums/BlitzMax Programming/setMemBit error: membit already set
| ||
I got the following exception thrown at me: Unhandled Exception:setMemBit error: membit already set What does it mean? Is my program trying to assign something in memory that's already in use? It's hard to trace the error because I get the App Crashed dialog from Windows and that kills the debug stack trace. |
| ||
Did your app try to access a locked TImage ? I remember that was when I got that error |
| ||
Nope. I'm trying to debug a bug in my XMLRPC-EPI wrapper and got this error after sticking in some debugstop's. When these weren't in there I would get a dialog from Windows that my application crashed, and the debug stacktrace was left empty. |
| ||
What does it mean? Usually it means there's a problem with the GC. Which most often turns out to be a bug in your wrapper ;-) (Although there have been some recent issues with 1.33... so make sure you have the latest release (rc5 as of this post) and rebuild everything). Common causes are storing BlitzMax Objects in external memory but not "retaining" them... whereby the GC might free the Object which you later retrieve from external memory and try to use... |
| ||
I figured that much (that it was my wrapper) :-). Anyway, it seems I've fixed my problem. Good to know it has to do with the GC. |