Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can a C5 error be handled as we handle a regular error
Message
From
12/10/2005 08:51:54
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
01057853
Message ID:
01058285
Views:
12
>Hi Hilmar
>
>Thanks for responding.
>
>>You have to do some nasty debugging, trying to find out what causes the C...5 error in your specific case, and then find a reasonable workaround.
>
>The history goes like this. I use "Report Manager" (RM) for my reporting purposes. RM provides an ActiveX that I CREATEOBJECT() on the report form in my app. After the required populating, the ActiveX allows the user to preview the report, but when the report is empty for whatever reasons, the ActiveX, I believe does not do the required clean-ups. Then suddenly my app (no special place, when closing the form, when exiting the app) will throw a C5. I have confirmed this that when I can successfully run the report, how many ever times, I don't get the C5.
>
>Is there anyway to wrap this OCX into a DLL which can be called, ...

No idea.

Can you figure out that the report is empty BEFORE running the ActiveX?

Like, selecting some records and then checking for the _tally variable.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform