Search found 4 matches

by rlow
Wed Jun 23, 2010 12:58 pm
Forum: Windows
Topic: [Done] - Increased consuming of handles in Threadsafe mode
Replies: 5
Views: 1890

Re: Problem: Increased consuming of handles in Threadsafe mo

This demo code is showing the resource leakage more dramatically:


Global count = 100, finishThread.b = 0

Procedure AProcedure()
EndProcedure

Procedure Test(*value)
Repeat
AProcedure() ; <== this call seems to increase the number of handles! (threadsafe mode on, debbugger off)
Delay(1 ...
by rlow
Mon Jun 21, 2010 2:53 pm
Forum: Windows
Topic: [Done] - Increased consuming of handles in Threadsafe mode
Replies: 5
Views: 1890

Re: Problem: Increased consuming of handles in Threadsafe mo

Addionally to the handle issue I noticed that there are always 2 new threads created instead of just 1. (threadsafe mode on, debugger off)
by rlow
Mon Jun 21, 2010 1:14 pm
Forum: Windows
Topic: [Done] - Increased consuming of handles in Threadsafe mode
Replies: 5
Views: 1890

[Done] - Increased consuming of handles in Threadsafe mode

Hi,

I noticed an increasing number of handles in taskmanager of my application when using the threadsafe mode. I striped down the code until I was able to locate the problematic line.

The number of handles is always increased by 1 after finishing a thread, if this thread is calling a procedure ...