Link to home
Start Free TrialLog in
Avatar of shamif
shamif

asked on

An outgoing call cannot be made since the application is dispatching an input-synchronous call.

I have a visual basic.net program that prints two different labels to two Zebra printers. One of the labels prints fine. But the other label on and off throws an error.

Here is the error message:

An outgoing call cannot be made since the application is dispatching an input-synchronous call.

Here is where I get the error in VB program:

btApplicationRL = New BarTender.Application

Before this line I do a lot of database reads and writes. What should I do to fix the problem? And why am I getting this error? The other thing I dont understand is why I am getting the error sometimes and other times it works fine.

Avatar of multithreading
multithreading

Programmed directly, without using any third-party drivers, the Zebra works great. The problem isn't the printer, and it may not be your software. From your description and sample it sounds like the problem rests with the BarTender application itself. Your best bet would be to contact Seagull Scientific with this question.
Avatar of shamif

ASKER

I talked to Seagull tech support and their answer was we dont support automation. I can write to a small program just to print labels and it will work fine.

Now what I have done is put a button on the screen to manually print the label. So I clear the error, press the MANUALY PRINT LABEL button and will print the label fine.

But for some reason I cannot get it to print when I what it to print.
Bypass the Seagul driver. If you look at the underlying (Zebra) protocol, you will be amazed how simple it is.
Avatar of shamif

ASKER

I fix the problem. I called the first label pinting from one thred and other label printing from another thread and now the program works fine.
ASKER CERTIFIED SOLUTION
Avatar of Vee_Mod
Vee_Mod
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial