Recent

Author Topic: 1.4.4 Generating Exception Errors in Lazarus Include Files  (Read 3000 times)

oopman

  • New Member
  • *
  • Posts: 11
1.4.4 Generating Exception Errors in Lazarus Include Files
« on: October 08, 2015, 05:27:33 pm »
I have a program that ran fine under the previous version. Recompiled with 1.4.4 and now I get exceptions?

"Project x raised exception class 'External: SIGSEGV'. In file '.\include\customform.inc' at line 2188"

procedure TCustomForm.Hide; // file customform.inc
begin
  Visible := False; << line 2188
end;   

If you hover over line 2188 you see
Visible = <Error>

If you run program from Windows Explorer you get an "Access violation."

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11458
  • FPC developer.
Re: 1.4.4 Generating Exception Errors in Lazarus Include Files
« Reply #1 on: October 08, 2015, 07:12:12 pm »
Then probably hide was called on a form not yet created or already destroyed.

Using fields can/will then raise an exception

oopman

  • New Member
  • *
  • Posts: 11
Re: 1.4.4 Generating Exception Errors in Lazarus Include Files
« Reply #2 on: October 08, 2015, 07:39:18 pm »
What's strange is that this error never happened before under previous releases and I get the error immediately upon running it. I had a secondary form and tried deleting it from the project but that didn't help either?

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9908
  • Debugger - SynEdit - and more
    • wiki
Re: 1.4.4 Generating Exception Errors in Lazarus Include Files
« Reply #3 on: October 08, 2015, 07:51:01 pm »
Well do you have example code that can be used to reproduce the issue?

Its hard to say anything about it, without any information about the calling code.

oopman

  • New Member
  • *
  • Posts: 11
Re: 1.4.4 Generating Exception Errors in Lazarus Include Files
« Reply #4 on: October 08, 2015, 10:46:55 pm »
I'm trying to create code that replicates the problem as the existing program was working fine and I'm going to have to tear it apart until I can find the offending code. It crashes on initialization so it is something early on and I'm not doing anything tricky and it worked before that's what is confusing me. I simply took a copy of the code that has been running for months then cleaned and recompiled it with no errors.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9908
  • Debugger - SynEdit - and more
    • wiki
Re: 1.4.4 Generating Exception Errors in Lazarus Include Files
« Reply #5 on: October 09, 2015, 01:05:04 am »
How about a stacktrace?


does your app has just the one form? is it autocreated?

oopman

  • New Member
  • *
  • Posts: 11
Re: 1.4.4 Generating Exception Errors in Lazarus Include Files
« Reply #6 on: October 14, 2015, 11:33:10 pm »
The program has a single form with multiple tabs and is autocreated. It's difficult to create sample code that replicates the problem as this is a fairly large program that worked fine until 1.4.4 and I'm trying to figure out how to replicate the problem in a small demo.

 

TinyPortal © 2005-2018