[Lazarus] Rescan FPC sources crashes Lazarus

patspiper patspiper at gmail.com
Fri Mar 25 19:51:40 CET 2011


On 03/25/2011 07:40 PM, Mattias Gaertner wrote:
> On Fri, 25 Mar 2011 17:42:51 +0200
> patspiper<patspiper at gmail.com>  wrote:
>
>> Hi,
>>
>> Clicking on Tools/Rescan FPC sources crashes the IDE. However, this is
>> not the case if the IDE includes only its basic packages.
>>
>> Can anybody reproduce?
> Can you find out, what package is the trouble maker?
It turned out to be a package I had converted from Delphi and installed 
in the IDE. It has System.IsMultiThread:=true in the initialization 
section. Commenting this out eliminated the crash.

What does this property do, and what are the effects of commenting it 
out? The cross platform package uses threads and apps that use it must 
use -dUseCThreads (in Linux).

TBuildManager.RescanCompilerDefines clear caches
TFPCTargetConfigCache.NeedsUpdate compiler file changed 
"/home/me/Programs/fpc/2.4.2/bin/fpc" FileAge=1301012632 StoredAge=0
TFPCTargetConfigCache.Update /home/me/Programs/fpc/2.4.2/bin/fpc 
TargetOS=linux TargetCPU=i386 CompilerOptions= 
ExtraOptions=-Fr/home/me/Programs/lazarus/lazarus-svn/components/codetools/fpc.errore.msg 
PATH=/home/me/Programs/fpc/crossbinutils/bin:/home/me/Programs/fpc/2.4.2/bin:/home/me/Programs/fpc/2.4.2/lib/fpc/2.4.2:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
RunTool /home/me/Programs/fpc/2.4.2/bin/fpc -iTOTP -Pi386 -Tlinux 
-Fr/home/me/Programs/lazarus/lazarus-svn/components/codetools/fpc.errore.msg
RunTool /home/me/Programs/fpc/2.4.2/bin/fpc -va -Pi386 -Tlinux 
-Fr/home/me/Programs/lazarus/lazarus-svn/components/codetools/fpc.errore.msg 
compilertest.pas
TFPCTargetConfigCache.Update: has changed
WARNING: TLCLComponent.Destroy with LCLRefCount>0. Hint: Maybe the 
component is processing an event?
[TMainIDE.Destroy] A
[FORMS.PP] ExceptionOccurred
   Sender=EAccessViolation
   Exception=Access violation
   Stack trace:
   $087B0D52  TIDEPROGRESSWINDOW__COUNT,  line 288 of progresswnd.pas
TApplication.HandleException Access violation
   Stack trace:
   $087B0D52  TIDEPROGRESSWINDOW__COUNT,  line 288 of progresswnd.pas

Stephano




More information about the Lazarus mailing list