Re: [fpc-pascal] library (win32 dll) finalization section - what is allowed and what not?

2010-10-04 Thread Jonas Maebe
On 04 Oct 2010, at 15:28, Bernd Kreuss wrote: Currently I am poking around in the dark and doing some trial and error and try to leave this section alone (as much as possible). Is there anything I could read that would tell me clearly what is actually allowed here and in which order things ar

[fpc-pascal] library (win32 dll) finalization section - what is allowed and what not?

2010-10-04 Thread Bernd Kreuss
Hi, I'm currently fighting with some problems that seem to have to do with the order in which things are done when a library is unloaded. For example I have written a little exception handler unit that installs its handler function with AddVectoredExceptionHandler() from within the initialization

Re: [fpc-pascal] library (win32 dll) finalization section - what is allowed and what not?

2010-10-04 Thread Sven Barth
Am 04.10.2010 15:28, schrieb Bernd Kreuss: Hi, I'm currently fighting with some problems that seem to have to do with the order in which things are done when a library is unloaded. For example I have written a little exception handler unit that installs its handler function with AddVectoredExce

[fpc-pascal] TProcess.Free - three exceptions in ntdll.dll - only *sometimes*

2010-10-04 Thread Bernd Kreuss
Hi, has anybody ever had the problem of TProcess.Free causing three exceptions in in ntdll.dll? C005 at 7C928FEA in C:\WINDOWS\system32\ntdll.dll 7C928FEA seems to be RtlpWaitForCriticalSection() somewhere deep inside the windows kernel. The first two happen almost immediately and the third

[fpc-pascal] Re: Delphi incompatible conditionals?

2010-10-04 Thread Mark Daems
> -- Doorgestuurd bericht -- > From: Martin > if you can put it after the uses clause (so you can have a const section, the > following worked for me: > {$IFNDEF FPC} > const fpc_version=1; fpc_release=1; > {$ENDIF} > // your code below > {$IFDEF FPC} >  {$IFNDEF ver1} >   {$IF (f