Home » U++ Library support » U++ Library : Other (not classified elsewhere) » What's wrong in this code? (Heap leaks detected)
Re: What's wrong in this code? [message #45180 is a reply to message #45178] |
Wed, 23 September 2015 17:16  |
|
I think your application ends before the Thread finishes it's execution.
You can try something like this:
CONSOLE_APP_MAIN
{
Thread t;
t.Run(callback(Test));
t.Wait();
}
Alternatively, you could just wait in loop checking Thread::GetCount() in your main function.
Best regards,
Honza
|
|
|
Goto Forum:
Current Time: Tue Aug 12 22:44:48 CEST 2025
Total time taken to generate the page: 0.06336 seconds
|