Graphics - EndGraphics - Mem Leak?
BlitzMax Forums/BlitzMax Programming/Graphics - EndGraphics - Mem Leak?| 
 | ||
| @Task master. Is there a possible memory leak when End Graphics, Graphics being used multiple times, I display GCMemAllocated & it's increasing at an alarming rate. Best Regards, | 
| 
 | ||
| Or is the value rising returned by GCMemAllocated indicative of a mem leak? | 
| 
 | ||
| You should never go back and delete a post like that.  Someone else might have been able to learn from whatever your issue/mistake was. | 
| 
 | ||
| It was actually down to my linux serial comms handler, which is in the archives (and now updated) As the file handle was not declared as :TStream it didn't appear to get "collected" when closing a file. Best Regards, | 
| 
 | ||
|   the file handle was not declared as :TStream  Ah, perhaps a good time to start using SuperStrict ? :-) | 
| 
 | ||
| Most probably, although have made some good progress with my foray into the world of BMax. Also have mplayer as a "front end" video player for my BMax apps in Linux - after much experimentation it works like a charm. | 
| 
 | ||
| Thanks, sorry if I sounded a little snippy, I didn't mean it like that.  And now somebody else may learn from your post. | 
| 
 | ||
| Understand perfectly, I have learnt much in the same manner. Additionally, I have also learnt that TProcess does not automatically free itself on process completion and needs to be done manually after checking process.Status() Still at a loss as to why mouse movements & key presses increment GCMemAllocated tho.. still not an issue for my app, but noticed it whilst debugging. |