 |

02-03-2003, 12:40 AM
|
 |
Dead dog's ghost
Forum Leader * Expert *
|
|
Join Date: Feb 2001
Location: Celje, Slovenia, Europe
Posts: 2,601
|
|
Memory left-overs...
|
Hi!
Is there a way to find what resides in memory after the program termination?
Just found that if I run my program like 15 times (testing in IDE), suddenly I get Out of memory error (Celeron 566, 256 RAM).
I'm pretty sure I clean up everything (I'm only using one connection and recordset after all).
So, is there a way?
[size=small]Sitting here and looking stoopid...[/size]
|
|

02-03-2003, 06:12 AM
|
|
Senior Contributor
|
|
Join Date: Jan 2003
Posts: 761
|
|
|
one suggestion: use the task manager to see if you have left instantiations of any processes running without meaning to.
|
|

02-03-2003, 07:58 AM
|
 |
Dead dog's ghost
Forum Leader * Expert *
|
|
Join Date: Feb 2001
Location: Celje, Slovenia, Europe
Posts: 2,601
|
|
|
I did that. Nothing unusual there...
Could it be that CorelDraw would cause these problems? I just remembered, I had it running along with VB (Editing some background images)?
Sometimes it also heppened that the system became highly unstable (once I couldn't even shut it down [98SE] - crash!).
|
__________________
Yes, MSDN comes with VB! Yes, you must have at least 25 post to have an avatar! No, you cant write your OS in VB! and NO, YOU CAN NOT DECOMPILE IT!
I'm sure there are things that are more important than me - I just can't thing of any...
|

02-03-2003, 08:29 AM
|
 |
Contributor
|
|
Join Date: Oct 2001
Location: The Antarctic
Posts: 412
|
|
|
I get the same thing too. It's because the program either chokes and dies and never cleans up its instances or objects. It also occurs when I use the IDE to shut down the program instead of within the program. If I'm very careful and minimize the number of times I have to allow the IDE the clean up, I find that the memory leak all but goes away.
Most things are supposed to get cleaned up in the IDE. But it's all too easy to write code that prevents that. Such as opening databases, ActiveX, API calls, even simple things like having a picture loaded into RAM will fill it up pretty quickly.
So using the IDE it's kind of hard to gauge leaks like that in the wild. Best thing to do is to actually compile the code and run it a few hundred... thousand times.
|
__________________
My code won't compile... oh wait... what are all these ; doing everywhere? ACK! I'm in the wrong language!
Thank you for your time and patience. ~Liquid
|

02-03-2003, 08:41 AM
|
 |
Dead dog's ghost
Forum Leader * Expert *
|
|
Join Date: Feb 2001
Location: Celje, Slovenia, Europe
Posts: 2,601
|
|
|
Yes, I was thinking of that. While it's a bit annoying to compile the code each and every time I want to test something, I think it will just have to do.
Thanks.
|
__________________
Yes, MSDN comes with VB! Yes, you must have at least 25 post to have an avatar! No, you cant write your OS in VB! and NO, YOU CAN NOT DECOMPILE IT!
I'm sure there are things that are more important than me - I just can't thing of any...
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|