Re: [fpc-pascal] Unhandled exception from library crashes host exe

2012-06-28 Thread Jonas Maebe
kyan wrote on Thu, 28 Jun 2012: It seem that the way to go -I don't have much knowledge on SEH so I'd rather not mess with such low level system code- is to try to turn my API to safecall and install a SafeCallErrorProc handler that will try to recreate and raise the safecall exception from

Re: [fpc-pascal] Unhandled exception from library crashes host exe

2012-06-28 Thread kyan
On Thu, Jun 28, 2012 at 12:45 PM, Jonas Maebe jonas.ma...@elis.ugent.be wrote: The safecall calling convention is only supported on a few platforms. Originally it was only supported on Windows. Nowadays it's also supported on a few extra platforms because it was required for XPCOM (someone

Re: [fpc-pascal] Unhandled exception from library crashes host exe

2012-06-28 Thread Jonas Maebe
kyan wrote on Thu, 28 Jun 2012: On Thu, Jun 28, 2012 at 12:45 PM, Jonas Maebe jonas.ma...@elis.ugent.be wrote: The safecall calling convention is only supported on a few platforms. I want it for Win32/64, WinCE/arm and Linux. How can I find whether it is implemented on these platforms

[fpc-pascal] record helper types in 2.6

2012-06-28 Thread Bernd
hello, I am referring to this: http://wiki.freepascal.org/Helper_types I am using 2.6.1 from the fixes branch, last updated no longer than a week ago. the wiki mentions this syntax: TTestHelper = record helper for TTest procedure SomeMethod; end; Now I must be understanding something

Re: [fpc-pascal] record helper types in 2.6

2012-06-28 Thread Sven Barth
Am 28.06.2012 15:23 schrieb Bernd prof7...@gmail.com: hello, I am referring to this: http://wiki.freepascal.org/Helper_types I am using 2.6.1 from the fixes branch, last updated no longer than a week ago. the wiki mentions this syntax: TTestHelper = record helper for TTest procedure

Re: [fpc-pascal] record helper types in 2.6

2012-06-28 Thread Bernd
2012/6/28 Sven Barth pascaldra...@googlemail.com: Ops... seems that I have forgotten to mention this: in non-Delphi modes you need to enable the advancedrecords modeswitch to be able to declare record helpers. Thank you, I have found it after some more searching. It wasn't placed prominently