Recent

Author Topic: My thread hang...  (Read 3956 times)

Reenen

  • New Member
  • *
  • Posts: 29
    • http://daringapprentice.wikispaces.com
My thread hang...
« on: April 29, 2005, 11:49:24 am »
My application 'hangs' as soon as my thread execute.

Quote

 The 1.0.x branch lacks variant and thread support but is well tested and production stable.
 The 1.1 branch of the compiler also works with Lazarus and will eventually add variants and threads but is under continuous development.


Does this mean no threading under lazarus?  I'm not sure which FPC version I have.

fpc /? (from c:\lazarus\pp\bin\i386-win\) gave
Quote

Free Pascal Compiler version 1.9.8 [2005/02/25] for i386


Code: [Select]

procedure TfrmMain.ImportData;
var ImportThread : TImportThread;
begin
    ShowMessage('Going to Start thread');
    with ImportThread.Create do
    begin
//        OnTerminate := @EnableAll;
        resume;
    end;
end;


Is the
with ImportThread.Create do
the correct method to start my thread?

I saw this method when I searched for 'thread' on the forum.

Thanks!

 

TinyPortal © 2005-2018