× CodeTyphon MS Windows (XP, Vista, Win7, Win8.x and Win10) OS Development, discussions and problems

Idea SIGFPE - lclproc.pas line 865

  • ExDatis
  • ExDatis's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 11 months ago #2499 by ExDatis
SIGFPE - lclproc.pas line 865 was created by ExDatis
Hi there!
I've got so unusual error?! I'm quite sure that my source code is OK, there's no problem. What's happened?! Compiler said that's all OK, app is OK. When I put simple procedure, lbl->on click I've got:
{
lclproc code
procedure RaiseGDBException(const Msg: string);

Raises an exception.
Normally gdb does not catch fpc Exception objects, therefore this procedure
raises a standard "division by zero" exception which is catched by gdb.
This allows to stop a program, without extra gdb configuration.
}
procedure RaiseGDBException(const Msg: string);
begin
debugln(rsERRORInLCL, Msg);
// creates an exception, that gdb catches:
debugln(rsCreatingGdbCatchableError);
DumpStack;
if (length(Msg) div (length(Msg) div 10000))=0 then ;
end;
//
Before that, works excellent!?
Win7 Ultimate 32bit CT2.7 (BigIde).
Thank you.
Regards.

Please Log in or Create an account to join the conversation.

  • ExDatis
  • ExDatis's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 11 months ago #2504 by ExDatis
Replied by ExDatis on topic SIGFPE - lclproc.pas line 865
Hi, I found this(lazarus bugtracker): Closing multiple files with Ctrl F4 raises sometimes a division by zero exception. Happened twice in last week. :silly:
Regards.

Please Log in or Create an account to join the conversation.

  • ExDatis
  • ExDatis's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 11 months ago #2505 by ExDatis
Replied by ExDatis on topic SIGFPE - lclproc.pas line 865
I tried to create new project and add all forms but without success...
Fortunately, I found older backup and resolve problem.
Regards.
p.s. The lesson, create an incremental backup!!! :whistle:

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
9 years 11 months ago #2506 by Sternas Stefanos
Replied by Sternas Stefanos on topic SIGFPE - lclproc.pas line 865
Yes, always you must make a backup

PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

  • ExDatis
  • ExDatis's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 11 months ago #2507 by ExDatis
Replied by ExDatis on topic SIGFPE - lclproc.pas line 865
Finally! :side:
The problem is *.lfm unit,which is not saved properly. Of course there is so many reasons for that(maybe too many changes in table structure, copy-paste, etc.).
Create new one in this case is safe way.
Regards.
p.s. It's my mistake!

Please Log in or Create an account to join the conversation.