M
micro.q
Hello,
I have a piece of code what handles a serial device. I made a test program which get a number of the serial port. When I use these same code in a shared object I get a segmentation fault on the serial functions tcgetattr of tcsetattr. I've verified that with gdb. The shared object is used by net-snmp.
My serial code is almost similar to http://code.google.com/p/as3-arduin...se/trunk/native-extension/Windows-x86/rs232.c
I've only changed to get it working with parity.
Because the code is working as executable I think it has something to do with the rights the application has to write to the settings.
Joram
I have a piece of code what handles a serial device. I made a test program which get a number of the serial port. When I use these same code in a shared object I get a segmentation fault on the serial functions tcgetattr of tcsetattr. I've verified that with gdb. The shared object is used by net-snmp.
My serial code is almost similar to http://code.google.com/p/as3-arduin...se/trunk/native-extension/Windows-x86/rs232.c
I've only changed to get it working with parity.
Because the code is working as executable I think it has something to do with the rights the application has to write to the settings.
Joram