#326 NullReference exception on reload

closed-fixed
5
2005-02-01
2004-11-23
Bengt Gunne
No

Every time NUnit reloads the test-dll and the tests are
re-run there is a null reference exception. I always
catch this exception in the debugger so I constantly
have to manually pass this exception in NUnit...

Here is the last part of the traceback:

> nunit.core.dll!
NUnit.Core.TestRunnerThread.TestRunnerThread
(NUnit.Core.TestRunner runner =
{NUnit.Core.RemoteTestRunner}) + 0xa7 bytes
nunit.core.dll!
NUnit.Core.RemoteTestRunner.RunTest
(NUnit.Core.EventListener listener =
{System.Runtime.Remoting.Proxies.__TransparentProxy},
string[] testNames = {Length=3}) + 0x23 bytes

mscorlib.dll!
System.Runtime.Remoting.Messaging.StackBuilderSink.Sy
ncProcessMessage
(System.Runtime.Remoting.Messaging.IMessage msg, int
methodPtr, bool fExecuteInContext) + 0x30b bytes

mscorlib.dll!
System.Runtime.Remoting.Messaging.StackBuilderSink.Sy
ncProcessMessage
(System.Runtime.Remoting.Messaging.IMessage msg) +
0x9 bytes
mscorlib.dll!
System.Runtime.Remoting.Messaging.ServerObjectTermin
atorSink.SyncProcessMessage
(System.Runtime.Remoting.Messaging.IMessage reqMsg)
+ 0x12c bytes
mscorlib.dll!
System.Runtime.Remoting.Messaging.ServerContextTermi
natorSink.SyncProcessMessage
(System.Runtime.Remoting.Messaging.IMessage reqMsg)
+ 0x1b3 bytes
mscorlib.dll!
System.Runtime.Remoting.Channels.CrossContextChannel
.SyncProcessMessage
(System.Runtime.Remoting.Messaging.IMessage reqMsg)
+ 0x209 bytes
mscorlib.dll!
System.Runtime.Remoting.Channels.ChannelServices.Syn
cDispatchMessage
(System.Runtime.Remoting.Messaging.IMessage msg) +
0xe6 bytes
mscorlib.dll!
System.Runtime.Remoting.Channels.CrossAppDomainSink.
DoDispatch(byte[] reqStmBuff,
System.Runtime.Remoting.Messaging.SmuggledMethodCal
lMessage smuggledMcm,

By the way, super product!

Mimerbg

Discussion

  • Charlie Poole

    Charlie Poole - 2005-02-01

    Logged In: YES
    user_id=586918

    Fixed in the source. We were using the exception a bit too
    indiscriminately - for normal cases like file not found.
    You'll still get an exception at this point, but only if you
    have a config file and it contains an invalid entry.

     
  • Charlie Poole

    Charlie Poole - 2005-02-01
    • assigned_to: nobody --> charliepoole
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks