Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by vitalstates

  1. vitalstates

    using beginthread

    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...
  2. vitalstates

    using beginthread

    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...
  3. vitalstates

    using beginthread

    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...
  4. vitalstates

    using beginthread

    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...
  5. vitalstates

    using beginthread

    thanks for responding buho....code as follows procedure Objthread.Execute; var ufocanvas : TCanvas; ct,tix,tiy : integer; begin ufocanvas := TCanvas.Create; // new canvas tix := ufo[objid].ufox; tiy := ufo[objid].ufoy; try ufocanvas.Handle := mydc; for...
  6. vitalstates

    using beginthread

    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...

Part and Inventory Search

Back
Top