Page 1 of 1

OnError Lib + Shared DLL

Posted: Sat May 16, 2009 9:15 am
by cas
Is it possible to use OnError commands inside dll? If yes, where to put OnErrorCall(@ErrorHandler()) line, at start of each procedure in dll or in AttachProcess() procedure?
Thanks

Re: OnError Lib + Shared DLL

Posted: Wed Apr 16, 2014 6:44 pm
by tonymhz
same question with purebasic v5.00 (i know that latest is v5.22 but i don't have time to update now!), i try to use onerrorcall inside AttachProcess and external, but not work, dll crash with standard windows error! any solution about this ?

Re: OnError Lib + Shared DLL

Posted: Wed Dec 20, 2017 7:41 pm
by siesit
join, same question and problem (((

Re: OnError Lib + Shared DLL

Posted: Thu Dec 21, 2017 9:17 am
by siesit
hm...

PureHelp:
When using the OnError library inside a DLL the best practice is to set the error handler at the beginning of every public DLL function and resetting it back to the default with this command before returning to the caller to make sure there is no interference between the OnError library and any exception handling done by the calling program.
ok... it works!