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

2012-06-28 Thread kyan
On Wed, Jun 27, 2012 at 8:15 PM, Sven Barth wrote: > Summa summarum: don't let exceptions travel past the DLL boundary. One might > be able to fix it on Windows, but *nix maybe not so much... Thank you for your reply Sven. It seem that the way to go -I don't have much knowledge on SEH so I'd rat

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 the

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 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 wanted to > use XPCOM on ce

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 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 without having to actually tes

[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 complete

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

2012-06-28 Thread Sven Barth
Am 28.06.2012 15:23 schrieb "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;

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

2012-06-28 Thread Bernd
2012/6/28 Sven Barth : > 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 enough for me at the be