Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Perform Checklist For NetPlayers() memory leak?

Author
Message
Lich120
18
Years of Service
User Offline
Joined: 19th Mar 2006
Location:
Posted: 28th Sep 2006 00:16
I was writing a program with a client/server network environment in which its neccesary to know which computer is the host (ie. you dont want data going to the other clients from a client), which is easy enough using the function dbPerformChecklistForNetPlayers() and reading it etc. In so doing though I noticed a recurring issue (and one that completely halts any further work on the project), if you call that function repeatedly (if it is in your program loop) you can watch your programs memory usage continually grow in the Windows process viewer. It doesnt take long with a program with practically nothing in it to grow into the realm of taking up a gig of system memory.

Im not sure if anyone has heard of this, or if im doing something foolish, but it seems like a pretty serious bug. Since without using that function its very hard to do any remotely intricate network programming.

If anyone wants me to post code that will cause the issue let me know, im posting from a computer that doesn\\\'t have the program so Ill wait till someone requests it. At anyrate, any imput would be greatly appreciated.
Morcilla
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 28th Oct 2006 17:38
It would be helpful to see that code, please post it when you have some time.
On the other side, maybe it is just enough to check the net players when the net game starts.

Login to post a reply

Server time is: 2024-06-17 06:45:03
Your offset time is: 2024-06-17 06:45:03