Author: ks156
Date: 2008-12-31 12:24:25 +0100 (Wed, 31 Dec 2008)
New Revision: 3374
Modified:
software_suite_v2/tuxware/pytuxisalive/trunk/src/tuxisalive/lib/driver/TuxDriver.py
Log:
* Commented a line in the logger.
I don't know exactly why, but the ctypes c_char_p function cause a
segmentation fault with 64bits OS, so the API is unusable.
Maybe the problem comes from a bad variable size, or pointer size, etc...
Modified:
software_suite_v2/tuxware/pytuxisalive/trunk/src/tuxisalive/lib/driver/TuxDriver.py
===================================================================
---
software_suite_v2/tuxware/pytuxisalive/trunk/src/tuxisalive/lib/driver/TuxDriver.py
2008-12-30 14:12:59 UTC (rev 3373)
+++
software_suite_v2/tuxware/pytuxisalive/trunk/src/tuxisalive/lib/driver/TuxDriver.py
2008-12-31 11:24:25 UTC (rev 3374)
@@ -629,6 +629,15 @@
if self.tux_driver_lib == None:
return "Shared library not found"
+ ### BUG :
###################################################################
+ # On Linux 64 bits, this function line crash the API.
+ #
+ # I don't know why, but the function c_char_p with the value retourned
+ # by the driver cause a segmentation fault on 64bits OS.
+ #
+ ##########
+
result = self.tux_driver_lib.TuxDrv_StrError(c_int(error_code))
- return c_char_p(result).value
+ # BUG : # return c_char_p(result).value
+ return 0
------------------------------------------------------------------------------
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn