Then it doesn't happen. But that shouldn't be a leak, because it's "created" on the stack, and should be deleted through each loop, or at least not recreated, AFAIK.
BTW, I found that the problem didn't happen when I turned off Codeguard... so maybe it's a CodeGuard bug?
To answer your question, I'm not 100% sure, but I should be.
At my company, we automatically install update 1,2 and 4, but I don't know if there are any new ones?
In the about box, the version info is:
Version 6.0 (Build 10.166)
(The second problem in my post should be ignored, the project is...
I use Borland C++ 6, and there seems to be a bug!
I made a simple test program starting several threads, where each thread Execute function calls a recursive function which loops and makes some heavy allocation... (not)! Actually I narrowed it down to this, and it still gives EOutofmem...
Did you get it solved?
I don't know much about how Services work, but you can always use the Sleep()-function to let the CPU rest a little between each loop ;)
Like so: Sleep(100);
Or there is probably some Windows Wait-function that can be used, or use a Timer instead for a loop.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.