Suppressing Dialog from a COM dll

  • Thread starter Thread starter jayeldee
  • Start date Start date
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?
 
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"?
 
Back
Top