Solved

Outgoing call cannot be made since the application is dispatching an input-synchronous call

Posted on 2001-07-18
3
10,753 Views
Last Modified: 2009-05-06
Hey,

I have an out-of-process Active Exe that has a single-instance class that gets passed to several different applications so that they can communicate with through this "relay" component through use of custom events.

For example:

"A" and "B" are applications that are communicating through the relay component "R".  Meanwhile, there is a monitoring program "M" that resides in the system tray and monitors the relay component.

Normal operation, "M" begins and instantiates "R".  "A" and "B" are now start-up and get references to the singleton class within "R".  Now, both "A" and "B" can communicate through "R", raising events and responding to them with no problem.  The kicker is, that I wish to have the monitor ("M") raise an event through "R" and am getting the message "Outgoing call cannot be made since the application is dispatching an input-synchronous call"

Can anybody please explain what this message means?

If you can point me to a working solution, I will double the points for them.

Hopefully this question is in too much of a confusing format.  I will provide further details if necessary.
0
Comment
Question by:percosolator
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 7

Accepted Solution

by:
Z_Beeblebrox earned 200 total points
ID: 6294988
Hi,

I had the exact same problem. It is because you are subclassing your form to put the icon in the system tray. I suspect that the procedure you are calling in 'M' is user-initiated. I had the same problem when the user clicked on a menu item brought up when they right clicked on the systray icon. I could not call another DLL/EXE inside the menu click event. To get around this, I added a timer which I enabled in the menu click event, and then did the calling in the timer event. This seems to work well, although it is not very clean.

Zaphod.
0
 
LVL 2

Author Comment

by:percosolator
ID: 6295261
That worked.   Thank you very much.

As you said, not elegent, but hey!  it works!
0
 

Expert Comment

by:rqbanerjee
ID: 24316670
I had to do the work in a different thread. It was too time consuming do develop the timer handler.

But it works great when the COM call is made from a separate thread.

Thanks for the suggestion.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question