|
-
Dec 30th, 2001, 01:29 AM
#1
Thread Starter
New Member
Detecting memory leaks....
Does anyone know a program to detect memory leaks in VB programs? I really need one, cause I think there's a leak somewhere in the RPG i'm making. Evere since I animated the character, the character dissapears after about half a minutes, but it's still moving. When I close it, and try to run it again, VB gives me an "Out of memory" error. I want to find out if this is caused by the program, or something else. Thanks to anyone who can help.
-
Dec 30th, 2001, 07:58 AM
#2
Fanatic Member
First, you need to find out which sub leaks the memory. The sub must run a lot of times to get out of memory, I think. So make a counter so you can see how much times every sub runs. Maybe you can see this way where the leaking is.
-
Dec 30th, 2001, 11:40 AM
#3
Good Ol' Platypus
Are you creating arrays of objects for the animation that you are not destroying and uncreating afterwards?
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
Dec 31st, 2001, 07:21 AM
#4
Do you know about using profilers? They show you what code runs how often.
There were some around on the net for VB several years ago.
-
Jan 2nd, 2002, 04:55 PM
#5
Thread Starter
New Member
Please, if anyone could download and examine my code, I can't figure out what's wrong. I'm quite stumped. I tried deleting the DC's before they were recreated, but it didn't seem to help. Maybe I'm doing something wrong. I appreciate any help anyone can give me.
-
Jan 3rd, 2002, 05:30 AM
#6
Hyperactive Member
you definately gotta deleteDC once ur done with it. even tho your saving the new memory address to your long variable, the old dc is still takin up that block in memory, u just lose ur ability to access it.
i think? haha im not a game programmer...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|