Hi,
>>> /************************************************* */
>>> // HOW TO HANDLE THIS EVENT. FAX Console/ dialer starts up
[quoted text clipped - 16 lines]
> It is for a webforms application, however, I am using a console app as my
> testharness to make sure it is working.
The console application probably exits before the events
have been fired. You may try to insert Console.ReadLine()
after the ConnectedSubmit call.
However, if you plan to use the Fax API for a ASP.NET
application you must first find out whether the COM Fax-API
is a MTA oder STA COM component.
Unfortunately I was not able to install the Fax components
on my machine, so I cannot tell you the kind of the component.
Google said it's STA:
http://www.codeguru.com/forum/showthread.php?t=343002
STA COM objects must be instantiated on the same
webpage they are expected to be used and the page
must include the directive <%@ ASPCOMPAT="true" %>.
Instead of Console.ReadLine() you must use something
like that:
while (true) {
if (isReady) break;
Thread.Sleep (1000);
}
"isReady" must be set from within the Fax event handler.
Rob
Richard - 19 Sep 2005 08:43 GMT
> Hi,
>
[quoted text clipped - 48 lines]
>
> Rob
Rob,
Thanks for that, however, I am not developing a ASP.NET project. I also
implemented you suggestions however I'm afraid this didn't work either.
I think I may have to work on the threading side of things to get this
working.
Richard