Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unhandled Structured Exception
Message
 
 
To
09/08/2012 09:44:02
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01550207
Message ID:
01550215
Views:
45
>>>>Hi,
>>>>
>>>>I am getting an unhandled structured exception in the following place:
>>>>
>>>>Timer method has TRY CATCH. Within TRY there is a call to a function that prints a form. If this function encounters a problem, specifically "error 1958, loading printer driver", the code goes to the CATCH TO branch of the TRY but then the following error appears (Program Error):
>>>>"Unhandled Structured Exception"
>>>>"Error loading printer driver"
>>>>
>>>>Within the function that prints the form there is not TRY CATCH.
>>>>
>>>>I don't understand why I am getting this error. Can anyone explain what I am missing or not understanding?
>>>
>>>
>>>Could you post the code?
>>
>>The code in kind of long. Do you mean the code in the CATCH branch?
>
>Yes, only CATCH branch.

No need for it now. I found my problem. As Dragan correctly suggested it was in my CATCH. When the program was coming against the error in printing of the report, I had a line in the CATCH branch that was printing the error report. I must have been on drugs when wrote this code (I can't think of any other explanation). Thank you both!
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform