Recent

Author Topic: Getting SIGSEGV error on opening second window  (Read 1390 times)

Adri

  • New Member
  • *
  • Posts: 23
Getting SIGSEGV error on opening second window
« on: June 03, 2021, 05:03:29 pm »
Who can explain (and fix) me why I get a SIGSEGV error upon opening second window?    :(
The source code is attached (but is far from finished) and the error appears upon selecting te main menu up and next first option: 'Preferences'. The error reads "In file usb2main.pas at line 139: FormSB2Preferences.ShowModal;".
I have used similair construction before and do not underrstand why the error happens now.   %)

egsuh

  • Hero Member
  • *****
  • Posts: 1292
Re: Getting SIGSEGV error on opening second window
« Reply #1 on: June 04, 2021, 03:19:19 am »
Or create second form your self,

SecondForm := TSecondForm.Create(nil);
SeondForm.ShowModal;

Adri

  • New Member
  • *
  • Posts: 23
Re: Getting SIGSEGV error on opening second window
« Reply #2 on: June 04, 2021, 11:25:07 am »
Thanks both who replied, and so swift. It works now!     :D

 

TinyPortal © 2005-2018