[Mono-list] Critical sections

Vadim B. Guzev Vadim B. Guzev" <vguzev@yandex.ru
Sun, 20 Jun 2004 01:43:10 +0400

Hello ,

I'm constantly getting the following error:
** ERROR **: file critical-sections.c: line 89 (DeleteCriticalSection): assertion failed: (ret == 0)
And after that application crashes...

What do these "critical sections" mean? Is it related to sockets,
mutexes, monitors, threads or what?
I can't understand what's wrong with my program. It happens when I call
System.Environment.Exit(0) from one of the running threads.

Also sometimes I get this warning
** (/home/vadim/mcsharp.cluster/bin/wn.exe:1737): WARNING **: : unref on 18 called when ref was already 0

I'm using:
Mono 0.91
Linux skif 2.4.25 #2 SMP Fri Apr 23 14:03:00 MSD 2004 i686 athlon i386 GNU/Linux
gcc (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)

Any help would be appreciated!

Best regards,
Vadim B. Guzev