Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2001-07-18
3
Medium Priority
?
10,859 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 800 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses

636 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