OnError Lib + Shared DLL

Just starting out? Need help? Post your questions and find answers here.
cas
Enthusiast
Enthusiast
Posts: 597
Joined: Mon Nov 03, 2008 9:56 pm

OnError Lib + Shared DLL

Post 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
tonymhz
New User
New User
Posts: 1
Joined: Wed Apr 16, 2014 4:18 pm

Re: OnError Lib + Shared DLL

Post 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 ?
siesit
User
User
Posts: 12
Joined: Fri Aug 21, 2009 8:40 am
Location: rus
Contact:

Re: OnError Lib + Shared DLL

Post by siesit »

join, same question and problem (((
site created by purebasic work-flow-Initiative
siesit
User
User
Posts: 12
Joined: Fri Aug 21, 2009 8:40 am
Location: rus
Contact:

Re: OnError Lib + Shared DLL

Post 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!
site created by purebasic work-flow-Initiative
Post Reply