Need some help again please.
I get an error message:
Project raised exception class 'External: SIGSEGV'.
In file '.include\custimform.inc' at line 176
whenever I press a button that has a "ShowMessage". This happened after I installed the newer version of Lazarus/freepascal, with no problems on the older version before this, but now I get the same message on the older version (on a different PC) as well. It then takes me to the 'Customform.inc' window and points to the line (in bold-italics). This is the section:
{------------------------------------------------------------------------------
Method: TCustomForm.BeforeDestruction
Params: None
Returns: Nothing
Gets called before the destruction of the object
------------------------------------------------------------------------------}
procedure TCustomForm.BeforeDestruction;
begin
// set csDestroying
inherited BeforeDestruction;
//debugln(['TCustomForm.BeforeDestruction ',DbgSName(Self),' ',csDestroying in ComponentState]);
// EndWrite will happen in the destructor
Line 176)))))) GlobalNameSpace.BeginWrite;
Screen.FSaveFocusedList.Remove(Self);
RemoveFixupReferences(Self, '');
if FormStyle <> fsMDIChild then Hide;
DoDestroy;
// don't call the inherited method because it calls Destroying which is already called
end;
This only happens after I have run the programme at least once, but the programme runs without errors and only stops when I press a button containing a 'ShowMessage', and crashes after I pres "Ok". If I press the buttons and the the 'ShowMessage' pops-up before I have run the programme once, the programme runs without crashing. Is there a setting in debugger or anything else I need to look at? A search on the forum hasn't given any clues.
I'm using Windows 7 64 bit on one PC, and Windows 7 32 Bit on the other PC, so am using the latest 32 bit Lazarus/freepascal version 1.2.2/FPC 2.6.4. Any points in the right direction would be appreciated.
Thanks