# NUnit error's modal window

**URL:** https://www.finalbuilder.com/forums/t/nunit-errors-modal-window/3180
**Category:** Bugs
**Created:** [November 17, 2009, 12:48pm UTC](https://www.finalbuilder.com/forums/t/nunit-errors-modal-window/3180 "2009-11-17T12:48:19Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [November 17, 2009, 12:48pm UTC](https://www.finalbuilder.com/forums/t/nunit-errors-modal-window/3180/1 "2009-11-17T12:48:19Z")

</div>

I recently tried to run Nunit projet with some project that throws an error (ie :&nbsp;Object not set to a reference of an object).  
  
I'm not sure this is a bug or a wish but here is the situation.&nbsp;When&nbsp;NUnit fails for other reason than test failure, it shows a modal window. This window waits for Abort-Retry-Ignore and FBServer waits too, event with a timeout&nbsp; on the project.  
  
Would it be possible to correct the NUnit action to trap those errors and log them with failure instead of waiting for a user input ?  
  
Thank you

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [November 18, 2009, 2:16am UTC](https://www.finalbuilder.com/forums/t/nunit-errors-modal-window/3180/2 "2009-11-18T02:16:27Z")

</div>

Hmm… I would have to look into this. The first task would be to reproduce the error you are seeing with NUnit. Do you have a simple test case we can look at? The other thing is that dealing with the gui under FBServer is next to impossible, as there is no window desktop, so no way to find the window and close it. Does NUnit write the error to stdout before showing the dialog? If so we may be able to detect that and kill it.

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [November 18, 2009, 12:37pm UTC](https://www.finalbuilder.com/forums/t/nunit-errors-modal-window/3180/3 "2009-11-18T12:37:06Z")

</div>

To reporoduce, you have to run Nunit with errors, no test error but code error (ie :&nbsp;Object reference not set to an instance of the object). I sadly have no idea if this is writtent to stdout.  
  
Thank you.
