[Mono-list] Timmer issue

Alan alan.mcgovern at gmail.com
Thu Jan 19 16:17:46 UTC 2012


re-adding mono-list to the email...

On 19 January 2012 16:17, Alan <alan.mcgovern at gmail.com> 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 <alphawolf1988 at googlemail.com>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 <alan.mcgovern at gmail.com>
>>
>>> Is your application multithreaded?
>>>
>>> Alan
>>>
>>> On 19 January 2012 00:50, Alphawolf1988 <alphawolf1988 at googlemail.com>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  -  Mono-list at lists.ximian.com
>>>> http://lists.ximian.com/mailman/listinfo/mono-list
>>>>
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20120119/6a889010/attachment.html>


More information about the Mono-list mailing list