Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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…
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…

932 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

11 Experts available now in Live!

Get 1:1 Help Now