Exception on when execute on by mono command

view story

http://stackoverflow.com – there I have a C++ application developed by VC, compiled as DLL file. (The DLL is to access the physical Battery).I also have C# test console application, called the DLL file to get parameters of battery. Both of them run on Windows smoothly, but when I try to run it on Ubuntu by mono. There is always a exception when run it first time by mono, and just show on first time. Does NOT show on by second ,third... time. Command as below: root@ubuntu:/home/user1/Desktop/CSharpTestConsoleAppFolder# mono ConsoleApplication1.exe The exception as below: mono: pthread_mutex_lock.c:312: __pthr (HowTos)