Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2004-01

Re: Thread changes between 1.9.0 and 1.9.2

3 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michael Van Canneyt
to Lloyd Park: I have been playing with multi-threaded apps using fpc 1.9.0. I use the {$THREADING ON}…
Lloyd Park wrote 11 lines
I have been playing with multi-threaded apps using fpc 1.9.0. I use the {$THREADING ON} directive in my code. My test program compiled and ran with 1.9.0, but with 1.9.2, I get the following runtime error: This binary has no thread support compiled in. Recompile the application with a thread-driver in the program uses clause. No heap dump by heaptrc unit Exitcode = 232 After looking at the RTL source, I thought I needed to 'use cthreads', but that didn't seem to do the job.

Nevertheless, that should do it, but it should be the first unit in your program's uses clause.

Michael.

Reply by email

Lloyd Park

I have been playing with multi-threaded apps using fpc 1.9.0. I use the {$THREADING ON} directive in my code. My test program compiled and ran with 1.9.0, but with 1.9.2, I get the following runtime error:

This binary has no thread support compiled in.
Recompile the application with a thread-driver in the program uses clause. No heap dump by heaptrc unit
Exitcode = 232

After looking at the RTL source, I thought I needed to 'use cthreads', but that didn't seem to do the job.

What unit am I missing? Or is it something else?

------------------------------------ Lloyd B. Park (330) 672-0384 305 Moulton Hall Kent State University Kent, OH 44242 ------------------------------------

Reply by email

Lloyd B. Park
to Michael Van Canneyt: Nevertheless, that should do it, but it should be the first unit in your program's uses…
Michael Van Canneyt wrote 7 lines
> After looking at the RTL source, I thought I needed to 'use cthreads', but > that didn't seem to do the job. Nevertheless, that should do it, but it should be the first unit in your program's uses clause. Michael.

Ah! Like heaptrc! I should have tried that. Thank you for the help. My program now gets past the thread error. It still bombs, but in a new place. I think I already saw posts about the new problem. I'll research it.

Reply by email