Closing banks

BlitzMax Forums/BlitzMax Programming/Closing banks

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Behold:

If you send Self as 'extra' event (created locally in the class) to some hooked function, then bmax seems to be making a copy of it. If you don't NULL this created event you'll end up with a memleak the size of the Self object you were sending, each time you perform this sending of Self.

Took me the best part of a day to find out about this :P