Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Automation Error
Message
From
23/09/2009 14:22:16
 
 
To
All
General information
Forum:
Visual Basic
Category:
COM, DCOM and OLE automation
Title:
Automation Error
Miscellaneous
Thread ID:
01425802
Message ID:
01425802
Views:
113
Hi,

This problem has started appearing in an old VFP app that uses VB UserControls from an OCX. This line of VB code errors at seemingly random intervals:
o.oref.LPrint (rMetahDC)
'o' is a reference to a VFP object that is passed by VFP as a parameter to the VB method containing the offending line.
'oref' is another VB object which is a control in the VFP object.
'rMetahDC' is a handle to a windows metafile created by the VB method.
I've checked that both 'o' and 'oref' are valid references before the line executes.
The .LPrint method executes without error and appears to return normally.
But the line itself raises an 'Automation Error' with the description 'The object invoked has disconnected from its clients'
Don't really know whether this error is a VB or VFP problem....

Any suggestions?
TIA,
Viv
Next
Reply
Map
View

Click here to load this message in the networking platform