Automation Error
-
Hi, I am using a COM component(Local Server) from a VB Client. My client is a System-Tray Application. In Client, During Form_Unload, I am calling a COM interface function because, I have to call that Interface function whenever the client exits. When I restart the machine without exiting the client application, i get an Automation Error...
An Outgoing Call cannot be made since the Application is dispatching
an Input Synchronous call.This is happening because of the Interface method I am calling from the clients Form_Unload event. How can I Resolve this...? I have to call that Interface function whenever the client exits. I dont understand which "Input Synchronous call" this error is referring to ? Is it Form_Unload ?? But it doesnt give this error when the Client is exited manually (from an option in the clientUI) Please somebody help me out... Thanks Firoz
-
Hi, I am using a COM component(Local Server) from a VB Client. My client is a System-Tray Application. In Client, During Form_Unload, I am calling a COM interface function because, I have to call that Interface function whenever the client exits. When I restart the machine without exiting the client application, i get an Automation Error...
An Outgoing Call cannot be made since the Application is dispatching
an Input Synchronous call.This is happening because of the Interface method I am calling from the clients Form_Unload event. How can I Resolve this...? I have to call that Interface function whenever the client exits. I dont understand which "Input Synchronous call" this error is referring to ? Is it Form_Unload ?? But it doesnt give this error when the Client is exited manually (from an option in the clientUI) Please somebody help me out... Thanks Firoz
Hi, Use Form_QueryUnload instead of Form_Unload, this might help, becuase Form_QueryUnload called before the client exists, but Form_Unload is called when the application is already being unloaded. By the way, you can stop existing the client using Form_QueryUnload event using Cancel argument. ShadiK. Shadi Al-Kahwaji