c# application encountering a problem and closing for no apparent reason. Possible problems with 3rd party dlls
<p>Hi All
We're building a c# application which will sit on PC's in garbage trucks.  Things work fine on our development machines but as always, problems start to arise when we deploy onto our target hardware. </p>

<p>One in particular is giving us headaches.  At random intervals we will get a windows message box popping up and saying that our application has encountered a problem and needs to be closed.  </p>

<p>The application still works fine while the dialog box is sitting there, and obviously it closes when you click the close button.  The frustrating thing is we get no exceptions, nothing in any logs, nothing in the system activity log.  My hunch that there's some problem happening in a 3rd party library which we are using for GPS, which is a .net wrapper for an unmanaged dll which we've had problems with before.  What options do we have to try and debug this??  I'm relatively new to windows programming and wondering if there are programs we can use to track which parts of a dll are being called by our code.</p>

<p>Cheers
Nimai</p>
