Recent

Author Topic: Ttimers access violation, Lazarus 9.25, Power PC  (Read 8088 times)

windy

  • Full Member
  • ***
  • Posts: 186
Ttimers access violation, Lazarus 9.25, Power PC
« on: January 12, 2008, 08:01:34 pm »
Hi
latest snapshot, power pc, Max OSX 10.5
the ontimer event with a Ttimer causes an access violation
(when you go to set that, or when a form is loaded where that ttimer was already setup (from my Mac Intel project)
what am I missing?
thanks for any help!
Brian

Phil

  • Hero Member
  • *****
  • Posts: 2750
Re: Ttimers access violation, Lazarus 9.25, Power PC
« Reply #1 on: January 13, 2008, 01:32:00 am »
Quote from: "windy"
Hi
latest snapshot, power pc, Max OSX 10.5
the ontimer event with a Ttimer causes an access violation
(when you go to set that, or when a form is loaded where that ttimer was already setup (from my Mac Intel project)
what am I missing?
thanks for any help!
Brian


Are you saying it works on Intel Mac but not PowerPC Mac?

What widgetset are you using? And version of Lazarus?

Can you post a simple example that demos the problem? I could test it on my PowerPC Mac (10.4).

Thanks.

-Phil

windy

  • Full Member
  • ***
  • Posts: 186
RE: Re: Ttimers access violation, Lazarus 9.25, Power PC
« Reply #2 on: January 13, 2008, 04:32:35 am »
Hi
its version 9.25, snapshot, OSX 10.5 (Leopard), Power Book G4
and even a new project,, I just need to drop a ttimer onto a form, then when you go to create a procedure from the onttimer event, there is an access violation
This is with lazarus running with GTK (from a X11 window)
(but with LCL compiled to Carbon, and it happens with the test project compiled to carbon or GTK)

I have my program compiled, even with those access violations,...but its not running ....the splash screen shows up...and it creates the forms needed in memory...but something is going wrong somewhere...I will try running compiled to GTK and run from x11 to see what that reports

windy

  • Full Member
  • ***
  • Posts: 186
RE: Re: Ttimers access violation, Lazarus 9.25, Power PC
« Reply #3 on: January 13, 2008, 04:50:39 am »
Ok, this sheds light on things:
[FORMS.PP] ExceptionOccurred
  Sender=EAccessViolation
  Exception=Access violation
  Stack trace:
  $7C0802A4  TIDLONGWORD__CREATE
  $00DDCEB0  TCUSTOMTIMER__TIMER,  line 152 of customtimer.pas
  $00E4B8F0  GTKTIMERCB,  line 2265 of gtkproc.pp
  $0BAEF2AC  TIDLONGWORD__CREATE
  $0BAEDDA0  TIDLONGWORD__CREATE
  $0BAEED40  TIDLONGWORD__CREATE
  $0BCE0E68  TIDLONGWORD__CREATE
  $00E0B380  TGTKWIDGETSET__APPPROCESSMESSAGES,  line 1317 of gtkint.pp
  $000B9698  TAPPLICATION__PROCESSMESSAGES,  line 280 of forms.pp
TApplication.HandleException Access violation
  Stack trace:
  $7C0802A4  TIDLONGWORD__CREATE
  $00DDCEB0  TCUSTOMTIMER__TIMER,  line 152 of customtimer.pas
  $00E4B8F0  GTKTIMERCB,  line 2265 of gtkproc.pp
  $0BAEF2AC  TIDLONGWORD__CREATE
  $0BAEDDA0  TIDLONGWORD__CREATE
  $0BAEED40  TIDLONGWORD__CREATE
  $0BCE0E68  TIDLONGWORD__CREATE
  $00E0B380  TGTKWIDGETSET__APPPROCESSMESSAGES,  line 1317 of gtkint.pp
  $000B9698  TAPPLICATION__PROCESSMESSAGES,  line 280 of forms.pp


Looks like a problem with my GTK installation
(which I did via macports (as fink does not work with OSX 10.5 yet)

I might have missed copying some files to /sw/lib/ from where Macports create them...

Phil

  • Hero Member
  • *****
  • Posts: 2750
Re: RE: Re: Ttimers access violation, Lazarus 9.25, Power PC
« Reply #4 on: January 13, 2008, 05:07:48 am »
Quote from: "windy"
Looks like a problem with my GTK installation
(which I did via macports (as fink does not work with OSX 10.5 yet)

I might have missed copying some files to /sw/lib/ from where Macports create them...


I get the same crash with 10.4 on PowerPC with both GTK and Carbon based IDE, so it's probably not your GTK installation.

No problem on Windows, though.

You should probably file a bug report for this.

Thanks.

-Phil

windy

  • Full Member
  • ***
  • Posts: 186
RE: Re: RE: Re: Ttimers access violation, Lazarus 9.25, Powe
« Reply #5 on: January 13, 2008, 06:29:03 am »
Ah, OK..
so its a PowerPC <-> Lazarus problem

I have not been able to log into the bug tracker...could you file the report for me?
thanks!!
(my project relies on ttimers, so this has stoppped it in its tracks for getting a powerpc version out)

Phil

  • Hero Member
  • *****
  • Posts: 2750
Re: RE: Re: RE: Re: Ttimers access violation, Lazarus 9.25,
« Reply #6 on: January 13, 2008, 05:11:32 pm »
Quote from: "windy"
Ah, OK..
so its a PowerPC <-> Lazarus problem

I have not been able to log into the bug tracker...could you file the report for me?
thanks!!
(my project relies on ttimers, so this has stoppped it in its tracks for getting a powerpc version out)


Done. http://bugs.freepascal.org/view.php?id=10630

You can sign up for a new account on the bugtracker. I don't think you can use your Lazarus forum account.

Thanks.

-Phil

windy

  • Full Member
  • ***
  • Posts: 186
Ttimers access violation, Lazarus 9.25, Power PC
« Reply #7 on: January 13, 2008, 08:31:13 pm »
Hi
yup, I have tried signing up with a new account
but I think my email address is being blocked
I never get a confirmation email...and also I get an error appear on the browser (it might be my browser even ( IE 7)
thanks for adding the Bug tracker, I look forward to having this resolved :)

crorden

  • New Member
  • *
  • Posts: 36
Ttimers access violation, Lazarus 9.25, Power PC
« Reply #8 on: January 14, 2008, 12:30:11 am »
This was reported previously
  http://bugs.freepascal.org/view.php?id=10437
The fault is present in  0.9.24-0.9.25 PPC release as well, but works correctly on 0.9.22 PPC (though that version has many byte-order problems that limit its use for my projects).

Phil

  • Hero Member
  • *****
  • Posts: 2750
Ttimers access violation, Lazarus 9.25, Power PC
« Reply #9 on: January 14, 2008, 01:08:27 am »
Quote from: "crorden"
This was reported previously
  http://bugs.freepascal.org/view.php?id=10437
The fault is present in  0.9.24-0.9.25 PPC release as well, but works correctly on 0.9.22 PPC (though that version has many byte-order problems that limit its use for my projects).


Good to know.

I don't have 0.9.22 anymore. Can you compare the source against 0.9.24 or 0.9.25 and see what's different? Maybe you can spot the source of the problem.

Thanks.

-Phil

 

TinyPortal © 2005-2018