Hello James,
Tuesday, September 2, 2003, 12:57:34 PM, you wrote:
JM> On Tue, Sep 02, 2003 at 09:56:18AM +0200, Chemistry.rd wrote: >> From: Dancso Andras <[EMAIL PROTECTED]> >> Subject: thread >> >> Question: How can I start a new thread from FreePascal under Win32?
You may create descendat from TThread class & place u'r code in overrided procedure Execute. See \examples\fcl\threads.pp, but don't pay too mach attention at how this example works because it seems to be unstable under Windows 2000 (at least). I think that console output is not thread safe part of FP I/O system.
Apropos, test thread program I wrote runs under Win32 without any problem, but crashes under Linux (fpc 1.0.10). %-\
Threads are not supported under 1.0.x
Peter
_______________________________________________ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal