Recent

Author Topic: application.QueueAsyncCall different in 32- or 64-bit?  (Read 3518 times)

guidoaerts

  • New Member
  • *
  • Posts: 12
application.QueueAsyncCall different in 32- or 64-bit?
« on: October 30, 2016, 04:42:43 pm »
Hi,
in laz 1.4.0 fpc 2.6.4 svn 48774, i386-win32- win32/win64, (windows 7 professional 32bit), I use this function :
application.QueueAsyncCall(@RunMyToko, FCT);     

on the other hand,
in laz 1.4.0 fpc 2.6.4 svn 48774, x86_64-win64-win32/win64 ,(windows 7 professional 64bit), it only compiles an runs like this:
application.QueueAsyncCall(RunMyToko, FCT);     

I don't understand why.  Any Idea?
grts,
guido

molly

  • Hero Member
  • *****
  • Posts: 2345
Re: application.QueueAsyncCall different in 32- or 64-bit?
« Reply #1 on: October 30, 2016, 04:49:50 pm »
The @ is a fpc thing (at least by default) while not having to do so is more delphi like.

So a mode delphi switch (or not) could have triggered it), or a modeswitch.

Perhaps default behaviour was changed along the way (although i doubt it, it might be possible).

If not mistaken you can use modeswitch POINTERTOPROCVAR to change the behaviour.

guidoaerts

  • New Member
  • *
  • Posts: 12
Re: application.QueueAsyncCall different in 32- or 64-bit?
« Reply #2 on: October 30, 2016, 05:27:05 pm »
You are right! It is the delphi switch that makes the difference.  Thank you for helping to clarify this.