re-adding mono-list to the email... On 19 January 2012 16:17, Alan <[email protected]> wrote:
> Your app is not threadsafe and the non-deterministic behaviour is due to a > race condition. It is impossible to diagnose it from a snippet like this. > The odds are high that one thread is instantiating the timer and another > thread is using it assuming that it exists. This causes a nullreference > exception to be thrown because the second thread has tried to use the timer > before the first thread created it. By the time the debugger kicks in, the > first thread has finished instantiating the timer and it shows up as > non-null. > > Alan > > > On 19 January 2012 15:27, Christian Winkel > <[email protected]>wrote: > >> Hello Alan! >> >> Yes the application is multithreaded. Any idea? >> At first, i've been using Visual Studio 2010, there >> was no problem, but after switching to mono, >> this error occured. Curiosly, it's non deterministic. >> >> Greez Chris >> >> >> 2012/1/19 Alan <[email protected]> >> >>> Is your application multithreaded? >>> >>> Alan >>> >>> On 19 January 2012 00:50, Alphawolf1988 <[email protected]>wrote: >>> >>>> I have an issue with a timer. Has someone any idea why this is thrown? >>>> >>>> http://mono.1490590.n4.nabble.com/file/n4308764/Exception.png >>>> >>>> Christian Winkel >>>> >>>> -- >>>> View this message in context: >>>> http://mono.1490590.n4.nabble.com/Timmer-issue-tp4308764p4308764.html >>>> Sent from the Mono - General mailing list archive at Nabble.com. >>>> _______________________________________________ >>>> Mono-list maillist - [email protected] >>>> http://lists.ximian.com/mailman/listinfo/mono-list >>>> >>> >>> >> >
_______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
