How to troubleshoot "out of memory" errors in a VB6 application
I have be charged with finding out whty one of 开发者_如何学Cthe legacy applications crashes after performing a function several times. I downloaded a profiler tool "Glowcode" and ran the application through it. It reported many leaks and I eventually got the stack information for them. But what to do now?
I was surfing around and found a tutorial creating a "map document" at compile time that links memory adress to specific lines of code. The tutorial was for a later version of Visual Studio and I couldnt find the same settings in VB6..
SO to summarize if someone could direct me to a step by step tutorial or advise me that would be great.
Destroy the objects after you used them, avoid cross references.
Here is a useful article on the topic: http://www.vbi.org/Items/article.asp?id=106
精彩评论