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 / 3D Math memory leak?

Author
Message
Murder
20
Years of Service
User Offline
Joined: 30th Jul 2004
Location: Cybertron
Posted: 5th Nov 2006 08:21
ok, so after hours of debugging I found the memory leak in my game to be from dbMakeVector3.

I searched the forum and people seem to be aware of this problem. Is there any word on a possible fix for this bug?

Thanks,
- Wes

"You have to beat the man.....To be the man"
Barnski
18
Years of Service
User Offline
Joined: 26th Jan 2006
Location: Switzerland, Zurich
Posted: 5th Nov 2006 10:11
There is a command to delete a vector. Maybe using this will remove your memory leak.

My guess is, that dbMakeVector creates an object, so it allocates memmory.
When you don't use the vector anymore, you should delete it, such that the memory can be released. Or you reuse it!

Murder
20
Years of Service
User Offline
Joined: 30th Jul 2004
Location: Cybertron
Posted: 5th Nov 2006 11:18
Yeh I use: dbDeleteVector3(1);

right after im done with it, but task manager says I'm still leaking memory. It's in my main loop so it gets called alot.

As a quick fix, I just reuse it now, but I was just curious on if I'm using it incorrectly or if the possible bug never got fixed

"You have to beat the man.....To be the man"
Barnski
18
Years of Service
User Offline
Joined: 26th Jan 2006
Location: Switzerland, Zurich
Posted: 5th Nov 2006 15:17
Ok then its obviously a bug. I never noticed this because I always reused the vector in DBPro.

You should post a code snippet showing this bug in the Bug forum! thanks

Login to post a reply

Server time is: 2024-11-19 09:24:31
Your offset time is: 2024-11-19 09:24:31