On Fri, 12 Jan 2007 16:46:54 +0100 (CET)
[EMAIL PROTECTED] wrote:

> I'm porting a delphi app to lazarus. But when I try to run the app it
> keeps crashing with the below message.
> 
> I suspect the LRS file is corrupt, but I have no idea how to check or
> better fix this. I tried removing the LRS file several times and save
> the project which recreates the LRS file. But that does not help
> unfortunately. Does anyone have an idea? I'm using lazarus 0.9.20 and
> fpc 2.0.4.

The .lrs file is simply a converted .lfm file. I doubt it is 'corrupt',
but it can contain properties/values that does not exist/make sense.
see below


> Darius
> 
> 
> [InitComponent] TMainForm True
> [InitComponent] TForm True
> [InitComponent] CompResource found for TMainForm
> Form Stream "TMainForm" Signature=TPF0
> Form streaming "TMainForm" error: Class "   " not found

'Class "   " not found' is a TReader error.
TReader seldom gives helpful error messages.
Can you open the form in the IDE?


Mattias



> [FORMS.PP] ExceptionOccurred
>   Sender=EAccessViolation
>   Exception=Access violation
>   Stack trace:
>   $00453A59  TCUSTOMACTION__SETCHECKED,  line 102 of
> ./include/customaction.inc
>   $0040E189  TMAINFORM__SETMODE,  line 856 of main.pas
>   $00412F2A  TMAINFORM__FORMCREATE,  line 1955 of main.pas
>   $00404DB9  TCUSTOMFORM__DOCREATE,  line 614
> of ./include/customform.inc $0040656C  TCUSTOMFORM__CREATE,  line
> 1297 of ./include/customform.inc $0040C0D2
> TAPPLICATION__CREATEFORM,  line 1523 of ./include/application.inc
>   $004010AB  main,  line 32 of LpSolveIDE.lpr
> TApplication.HandleException Access violation
>   Stack trace:
>   $00453A59  TCUSTOMACTION__SETCHECKED,  line 102 of
> ./include/customaction.inc
>   $0040E189  TMAINFORM__SETMODE,  line 856 of main.pas
>   $00412F2A  TMAINFORM__FORMCREATE,  line 1955 of main.pas
>   $00404DB9  TCUSTOMFORM__DOCREATE,  line 614
> of ./include/customform.inc $0040656C  TCUSTOMFORM__CREATE,  line
> 1297 of ./include/customform.inc $0040C0D2
> TAPPLICATION__CREATEFORM,  line 1523 of ./include/application.inc
>   $004010AB  main,  line 32 of LpSolveIDE.lpr
> [InitComponent] TPromptDialog True
> [InitComponent] TForm True
> Runtime error 217 at $0055FA22
>   $0055FA22  DOUNHANDLEDEXCEPTION,  line 156 of
> C:/lazarus/source/fpcbuild/2.0.4/fpcsrc/rtl/inc/except.inc
>   $0055B80C  fpc_reraise,  line 266 of
> C:/lazarus/source/fpcbuild/2.0.4/fpcsrc/rtl/inc/except.inc
>   $00401134  main,  line 26 of LpSolveIDE.lpr
>   $0055B59E  EXE_ENTRY,  line 420 of system.pp
> 
> 
> 
> _________________________________________________________________
>      To unsubscribe: mail [EMAIL PROTECTED] with
>                 "unsubscribe" as the Subject
>    archives at http://www.lazarus.freepascal.org/mailarchives

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to