It is currently Wed Oct 28, 2020 6:06 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: OnErrorCall inside DLL
PostPosted: Fri Aug 14, 2020 3:21 pm 
Offline
User
User

Joined: Fri Jul 29, 2005 11:47 am
Posts: 57
I know exist some posts already, but cannot find the right solution, i have a simple example code:

Code:
Declare ErrorHandler()

ProcedureDLL AttachProcess ( Instance )
 OnErrorCall ( @ErrorHandler () )
 RaiseError(#PB_OnError_InvalidMemory)
 MessageRequester("3","4")
 ProcedureReturn #true
EndProcedure

ProcedureDLL DetachProcess ( Instance )
 ProcedureReturn #true
EndProcedure

ProcedureDLL AttachThread ( Instance )
 ProcedureReturn #true
EndProcedure

ProcedureDLL DetachThread ( Instance )
 ProcedureReturn #true
EndProcedure
 
ProcedureDLL DllInitialize ()
 ProcedureReturn #true
EndProcedure

Procedure ErrorHandler ()
 MessageRequester("1","2")
EndProcedure


If i compile this source as dll and call from an external program (openlibrary) i cannot see any messagerequester, what's wrong ?


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 39 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye