Error Running c# App with Mono - Raspberry Pi Forums


after hours of trying work, have decided it's time post.

have c# windows forms application quite basic, , can complie , run fine on windows. whole project designed work on pi though, moved project on , compiled. after couple of hours of getting compile (foundout had reference mysql.data.dll file) compiled no errors!

run

code: select all

mono administration.exe
, got huge error, can find little online:

code: select all

pi@raspberrypi /media/wayneio/pi/projectnibiru/projectnibiru $ mono administration.exe stacktrace:    @ system.drawing.font.createfont (string,single,system.drawing.fontstyle,system.drawing.graphicsunit,byte,bool) <0x00143>   @ system.drawing.font..ctor (string,single,system.drawing.fontstyle,system.drawing.graphicsunit,byte,bool) <0x0007f>   @ system.drawing.font..ctor (string,single,string) <0x00057>   @ (wrapper remoting-invoke-with-check) system.drawing.font..ctor (string,single,string) <0xffffffff>   @ system.drawing.systemfonts.get_defaultfont () <0x00073>   @ system.windows.forms.theme..ctor () <0x0002f>   @ system.windows.forms.themewin32classic..ctor () <0x00013>   @ system.windows.forms.themevisualstyles..ctor () <0x00013>   @ system.windows.forms.themeengine..cctor () <0x0007f>   @ (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) <0xffffffff>   @ system.windows.forms.x11desktopcolors..cctor () <0x000bb>   @ (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) <0xffffffff>   @ system.windows.forms.xplatuix11..ctor () <0x001af>   @ system.windows.forms.xplatuix11.getinstance () <0x00073>   @ system.windows.forms.xplatui..cctor () <0x00157>   @ (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) <0xffffffff>   @ system.windows.forms.application.enablevisualstyles () <0x00023>   @ projectnibiru.program.main () <0x0000b>   @ (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) <0xffffffff>  native stacktrace:   debug info gdb:  cannot access memory @ address 0x0 cannot access memory @ address 0x0 [thread debugging using libthread_db enabled] using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1". [new thread 0x4093b460 (lwp 2224)] 0x40085f30 in read () /lib/arm-linux-gnueabihf/libpthread.so.0   id   target id         frame    2    thread 0x4093b460 (lwp 2224) "mono" 0x40084d84 in sem_wait@@glibc_2.4 () /lib/arm-linux-gnueabihf/libpthread.so.0 * 1    thread 0x400cd000 (lwp 2223) "mono" 0x40085f30 in read () /lib/arm-linux-gnueabihf/libpthread.so.0  thread 2 (thread 0x4093b460 (lwp 2224)): #0  0x40084d84 in sem_wait@@glibc_2.4 () /lib/arm-linux-gnueabihf/libpthread.so.0 #1  0x00195a40 in mono_sem_wait () #2  0x000ea384 in ?? () #3  0x000ea384 in ?? () backtrace stopped: previous frame identical frame (corrupt stack?)  thread 1 (thread 0x400cd000 (lwp 2223)): #0  0x40085f30 in read () /lib/arm-linux-gnueabihf/libpthread.so.0 #1  0x40085770 in __pthread_enable_asynccancel () /lib/arm-linux-gnueabihf/libpthread.so.0 #2  0x00000000 in ?? ()  ================================================================= got sigsegv while executing native code. indicates fatal error in mono runtime or 1 of native libraries  used application. =================================================================  aborted 
can offer advice why might appearing, , how resolve issue please?

things note; occurs no matter if compile "xbuild" or "dmcs" or if compiled in windows, , copied across. compiling basic hello world script works fine, it's windows.forms or mysql.data

if running hard float (raspbian) problem: http://www.raspberrypi.org/phpbb3/viewt ... 66&t=11634


raspberrypi



Comments

Popular posts from this blog

CAN'T INSTALL MAMBELFISH 1.5 FROM DIRECTORY - Joomla! Forum - community, help and support

error: expected initializer before 'void'

CPU load monitoring using GPIO and leds - Raspberry Pi Forums