[Mono-dev] Message Box running NUnit tests under Mono 1.1.17

Charlie Poole charlie at nunit.com
Sun Sep 10 16:40:00 EDT 2006


As it happens, we're currently running our tests in a separate AppDomain per
test assembly. Two of them require Windows forms but only one of them - the
second to run - throws up the MessageBox. So I think your theory makes
sense.
 
I'll put together a small test case.
 
Charlie


  _____  

From: Jon Chambers [mailto:joncham at gmail.com] 
Sent: Sunday, September 10, 2006 6:34 AM
To: Charlie Poole
Cc: mono-devel-list at lists.ximian.com
Subject: Re: [Mono-dev] Message Box running NUnit tests under Mono 1.1.17


Charlie,
     I think I understand the problem. The XplatUIWin32 registers a window
class shared by all the SWF windows. RegisterClass can only be called once
for a specific window name per process. XplatUI is a singleton, but that's
per app domain. I'm guessing you're loading MWF into multiple domains within
the same process. If I get a chance today, I'll try and fix it. I guess
we'll need to change the window name per app domain, because you can have
multiple domains existing, and each one needs to register a window class
with it's own callback. 

- Jonathan


On 9/10/06, Charlie Poole <charlie at nunit.com> wrote: 

Hi All,

Running the NUnit tests under Mono 1.1.17 on Windows XP, a message
box appears with the caption "Oops" and message
"Could not register the SWFClass window class, win32 error 0"

This happens when running the tests of the window gui, either
under the gui or from the console. In the case of the console,
this additional message appears in the console output
"Mono System.Windows.Forms Assembly [$auto_build_revision$]

In the case of the gui, clicking on Run a second time causes
the gui to silently exit.

Any suggestions? Could this be a configuration problem, or
is it a bug?

Charlie 



_______________________________________________
Mono-devel-list mailing list
Mono-devel-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060910/7eca85f9/attachment.html 


More information about the Mono-devel-list mailing list