Forum > Debugger
[Solved] Error 'External: SIGSEGV'
sanor:
Is a simple program with a connection to a database in firebird, but
when I click a button with the code:
frmAreas.showmodal;
the form frmAreas does not appear and the program stops, and I get the error:
Project maladir raised exception class 'External: SIGSEGV'.
Anyone know why this error appears? and its resolution?
theo:
Did you create the form somewhere?
SigSegv is a general message like "acces violation"
http://en.wikipedia.org/wiki/SIGSEGV
sanor:
resolved
I forgot to put: Application.CreateForm (TfrmAreas, frmAreas); in Unit. :)
The delphi add this line of code automatically, and Lazarus not, so I forgot.
Thanks
theo:
--- Quote from: sanor on January 12, 2010, 10:27:38 pm ---The delphi add this line of code automatically, and Lazarus not, so I forgot.
--- End quote ---
No, if you add a form with "File -> New Form", lazarus adds "CreateForm" to the *.lpr too.
sanor:
My lazarus is not doing that. I have to put the "CreateForm" manually for each form.
__________________
program Project1;
{$mode objfpc}{$H+}
uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
Interfaces, // this includes the LCL widgetset
Forms, UPrincipal, UAreas, LResources
{ you can add units after this };
{$IFDEF WINDOWS}{$R maladir.rc}{$ENDIF}
begin
Application.Initialize;
Application.CreateForm(TfrmPrincipal, frmPrincipal);
Application.CreateForm(TfrmAreas, frmAreas);
Application.Run;
end.
Navigation
[0] Message Index
[#] Next page