Recent

Author Topic: Bad Project Loading Problem  (Read 4475 times)

mmab

  • Jr. Member
  • **
  • Posts: 89
Bad Project Loading Problem
« on: August 14, 2010, 05:53:06 am »
Hi,
If you open a bad project which makes Lazarus crash, Lazarus will remember the last opened bad project and you can never get rid of it without editing lazarus startup file which is tedious.
Is it possible to add a feature as in Firefox?
Please add a variable before the lazarus close, and read it if it is true or not while loading.

Code: [Select]
unit....

var
Form:Tform1;
isUserClose : boolean;


procedure form1.onclosequery ( .... )
begin
  if msgdialog( 'do you want to exit Lazarus')=mrok then
begin
   isUserClose  := true;
   save_lazarus_info;
   exit;
end;

end;
end;

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3541
Re: Bad Project Loading Problem
« Reply #1 on: August 14, 2010, 06:21:25 am »
Which version are you using? I think that this is already implemented in 0.9.29

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 6628
  • Debugger - SynEdit - and more
    • wiki
Re: Bad Project Loading Problem
« Reply #2 on: August 14, 2010, 12:18:14 pm »
If a project did crash Lazarus while being loaded, then normally Lazarus should ask you the next time, if you want to open the project again.

If you open it again, and it succeeds the warning goes away.

However (IIRC) there are/were a few bugs, were Lazarus did crash at startup, before it could do this check.
Some of them (the ones that are known of) have been fixed in the SVN version.

Also, if the project keeps crashing Lazarus, then you can never open the project again until you know what causes the problem and fix it (best to have a backup).
But if you report a bug, then the crash should get fixed.

 

TinyPortal © 2005-2018