ds-blue-logo
Preview  |  SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
SSSascha Smolny20/09/2013

Hello,

i have problems with the EDrawings ActiveX Control in VB.net 2010.

A simple test:

Form1 with a Button and Form2 with the EDrawings ActiveX Control.

The Code in Form1:

Dim F as new Form2

F.Show()

No Code in Form2.

If i open the Form2 with the Button on Form1 and close Form2 a few times the Debugger stopps (Sorry German):

DisconnectedContext wurde erkannt.

Folgender Fehler beim Übergang in den COM-Kontext 0x54f850 für diesen RuntimeCallableWrapper: Das aufgerufene Objekt wurde von den Clients getrennt. (Ausnahme von HRESULT: 0x80010108 (RPC_E_DISCONNECTED)). Dieser tritt in der Regel auf, da der COM-Kontext 0x54f850, in dem dieser RuntimeCallableWrapper erstellt wurde, getrennt wurde oder aufgrund eines anderen Vorgangs ausgelastet ist. Die Schnittstellen werden aus dem aktuellen COM-Kontext (COM-Kontext 0x54f1d8) freigegeben. Dies kann Datenbeschädigung oder -verlust zur Folge haben. Um dieses Problem zu vermeiden, müssen Sie sicherstellen, dass alle COM-Kontexte/Apartments/Threads so lange beibehalten werden und für den Kontextübergang verfügbar sind, bis die Anwendung alle RuntimeCallableWrappers, die in ihnen enthaltene COM-Komponenten darstellen, vollständig verarbeitet hat.

I have these problem often when i close a window with the eDrawings control.

How can i avoid this problem?