Couldn't it be a problem when the GC deletes the already deleted object?
Wich issues? It sounds very strange without more info. don't get me wrong, I believe you, it is just a matter of curiosity as I've never get this kind of things with BlitzMax. Is this variable pointing something 'outside' the blitzmax code (a pointer used from internally called C or C++ code)?
Having this around after the OnPaint causes issues on Windows.
Wich issues? It sounds very strange without more info. don't get me wrong, I believe you, it is just a matter of curiosity as I've never get this kind of things with BlitzMax. Is this variable pointing something 'outside' the blitzmax code (a pointer used from internally called C or C++ code)?