[Lazarus] Multithreading on Linux/OSX/Win32

Luca Olivetti luca at wetron.es
Fri May 29 17:37:55 CEST 2009

En/na Brad Campbell ha escrit:

> This has had a very unexpectedly pleasant side-effect of not killing the 
> application when I dereference a null pointer in the compiler. The 
> compiler thread crashes and the application keeps on keeping on. I only 
> just noticed this and I think it's fab, *but* (and there is always a but).

It's not really fabulous: if you have a long running thread but you 
forget to catch any exception, it will simply die and the main 
application won't notice.

> Previously when it crashed I'd get a backtrace to the terminal. Now I 
> don't get a backtrace if the one of the sub-threads crash.
> Is there any way I can get a backtrace from a crashed thread or is it 
> related to the RTL not knowing there is an exception and therefore not 
> dumping it out?

I don't know, but I know that delphi did the same (i.e. unhandled 
exceptions in a thread would silently kill it).

Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004 (Ext.133)  Fax +34 93 5883007

More information about the Lazarus mailing list