UDP Memory leak

Blitz3D Forums/Blitz3D Programming/UDP Memory leak

Tibit(Posted 2004) [#1]
I was testing my UDP Chat program when I saw windows compaining about avail memory(after several hours). So I'm almost sure there is a memory leak in my program. Something in there loads but never clears. Types is cleard automatically right? When I load Fonts do I "have to" free them manually? Anything else that could be the prob? anything connected to UDP or networking?


jfk EO-11110(Posted 2004) [#2]
MAybe you should post the code, if it isn't too complex.

You could also write an ultraslim UDP test Progrm that will send and receive data automaticly. you could then watch the free eam in the system properties, and if there is indeed a leak, a short Sourcecode would be better to post, both, here or in the bug report forum.


Tibit(Posted 2004) [#3]
Ok it's really long, atleast if I include my entire "network library", but I have nothing against posting the code =)

na it is too long^^ no one will ever find anything anyway =) I'll just live with it. I'll post it when it works perfect.. if ever


Rottbott(Posted 2004) [#4]
Blitz should free everything when your program ends.

If it crashes instead of ending properly though, I suppose it could fail to free stuff and cause a memory leak.

If you were testing, it might have crashed a few times?