Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error 2027 DLL Caused an Exception
Message
 
 
To
10/02/2014 15:35:44
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 8
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01593920
Message ID:
01593926
Views:
56
>>>>>Did you test your PDF2PS function standalone?
>>>>
>>>>
>>>>Yes, If I am not using Parallel Fox the same is running Fine. It seems to me that when there is One CPU involved, the DLL is not shared and may be when there are more than One CPU there may be Sharing Problem of DLL , so error might be generated. Is it so ?
>>
>>If you're sure that this code works fine if not running parallel, one of the possibilities is to wrap the code to call this function in try/catch block and retry in case of the failure the second time.
>
>Ok, Can you please Give the Specific code for that purpose in my this case. I tried Try Catch Last Time as suggested by Tore Sir, but could not comprehend it completely.
>It would be an Example for me to learn Try Catch even.

This is how I would write this (pseudo-code):
local llReTry
llReTry = .f.
try
   call to the function that may cause error
   
catch to loError
   if loError.ErrorNo = 2027
       llReTry = .t.
   else
      log the error
   endif
endtry

if m.llReTry
   try
       one more time calling the same code
   
   catch to loError
       * if error, just log the second time
   endtry
endif
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform