Solved

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

Posted on 2001-07-18
3
10,602 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
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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 process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

707 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now