Many thanks for the pointers guys. I have had a look through the examples and they are exactly what I have been searching the net for for the last week...
I have spent a week wishing there were a function 'RELEASEDC' and also 'GETDESKTOPWINDOW'. Neither of these are mentioned in my help...
I seem to have stumbled on the answer to my own question - for interest.....
setting freeonterminate in a thread may release the storage resources but it doesnt release the GDI handle if it used one. By setting the object variable to nil after thread.destroy the GDI handle is released......For...
Thanks buho
Maybe I dont understand enough about delphis use of canvas. I wrote a screensaver in C++(which worked fine) some years ago and I was trying to reproduce it in delphi.
One thread is continually drawing to the full screen canvas all the time and the little threads periodically pop up...
Hi buho
There is one other thread that runs for the life of the application. This thread also draws on a canvas using Mydc. To clarify, there is the main app thread, the main draw thread and many short lived(10 seconds or so) threads as shown in the code previously.
I have used process...
Can anyone suggest a way of setting freeonterminate when using the beginthread method in delphi. I launch a number of threads from my main form but have no way of knowing when they have finished so consequently cant free the handle that beginthread uses.
I have got around the above problem by...
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.