Suppressing Dialog from a COM dll

J

jayeldee

I'm using a 3rd party COM DLL that contains a Logon method to which I
give a user name and server. Any invalid user name values or server
values cause a dialog box to pop up and prompt for valid input.
However, when the code is running in a Service thread an error is
thrown instead of a dialog being shown.

I contacted the 3rd party and they have verified this behavior. I am
trying to write NUnit tests for various Logon conditions but the
failures are causing a popup which wouldn't be good on my build
server. Is there a way to suppress this or somehow mimic a service
thread so I can just get the error?
 
P

Patrick Steele

I'm using a 3rd party COM DLL that contains a Logon method to which I
give a user name and server. Any invalid user name values or server
values cause a dialog box to pop up and prompt for valid input.
However, when the code is running in a Service thread an error is
thrown instead of a dialog being shown.

I contacted the 3rd party and they have verified this behavior. I am
trying to write NUnit tests for various Logon conditions but the
failures are causing a popup which wouldn't be good on my build
server. Is there a way to suppress this or somehow mimic a service
thread so I can just get the error?

What about creating your own (non-UI) thread and running your test on a
separate thread?

What exactly is a "service thread"?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top