Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. COM
  4. Automation Error

Automation Error

Scheduled Pinned Locked Moved COM
helpquestioncomsysadmintesting
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Firoz
    wrote on last edited by
    #1

    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

    S 1 Reply Last reply
    0
    • F 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

      S Offline
      S Offline
      Shadi Al Kahwaji
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups