Welcome, Guest
Username: Password: Remember me
CodeTyphon MS Windows (Win7, Win8.x, Win10 and Win11) OS Development, discussions and problems
  • Page:
  • 1

TOPIC:

SIGFPE - lclproc.pas line 865 12 years 2 months ago #2499

  • ExDatis
  • ExDatis's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 110
  • Thank you received: 9
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.

SIGFPE - lclproc.pas line 865 12 years 2 months ago #2504

  • ExDatis
  • ExDatis's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 110
  • Thank you received: 9
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.

SIGFPE - lclproc.pas line 865 12 years 2 months ago #2505

  • ExDatis
  • ExDatis's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 110
  • Thank you received: 9
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.

SIGFPE - lclproc.pas line 865 12 years 2 months ago #2506

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
Yes, always you must make a backup
PilotLogic Architect and Core Programmer

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

SIGFPE - lclproc.pas line 865 12 years 2 months ago #2507

  • ExDatis
  • ExDatis's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 110
  • Thank you received: 9
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.

  • Page:
  • 1