[fpc-pascal] FPC 2.2.0 / SegF in threads

Damien Gerard milipili at shikami.org
Thu May 15 22:19:05 CEST 2008


Le May 15, 2008 à 8:46 PM, Luca Olivetti a écrit :

> El Thu, 15 May 2008 10:45:43 +0200
> Damien Gerard <milipili at shikami.org> escribió:
>
>>
>> I have a program in lazarus with a thread .
>> When there is a SegF in this thread it exits without notifying GDB.
>> So the error is silent even with GDB (Windows/Linux/OSX)
>> I have to wrap it like this :
>>
>> try
>>   ..
>> except
>>   RaiseGDBException(...)
>> end;
>>
>> May I miss something like an option to enable, since the error is
>> caught by the try..except statement ?
>
> I don't know about gdb, but I know that you have to be extremely  
> careful
> with exceptions in a thread, since any uncaught exception will  
> silently
> terminate it.
>

It is actually the point of my problem.
Is there any way to avoid this behavior ? Because without GDB you are  
not aware that a thread has just exited.




--
Damien Gerard
milipili at shikami.org

"Intelligence is 10 million rules."
    -- Douglas Lenat








More information about the fpc-pascal mailing list