>>>>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