Hi,
I have the following problem. I call in my application a shared library I wrote myself, which is tested to work. I can load this lib also with my wx-app. The problem now is: I use an atof() in my lib, but it won't has any effect! I use wxWidgets2.6.1 in static lib mode, SuSE Linux 9.3.
More strange when I run it with MS Windows it will work.
Has any one any idea what the problem could be?
Shared library problem Topic is solved
Shared library problem
Damage controll is easy, reading Klingon that's hard
Sounds like the src string could be double-byte.
atof only works on ANSI strings. You should open the string in question in the memory view of your IDE to verify. It will stop on the first non numerical value it finds including \0
A failure of the function to operate would either be this or else someone redefined atof to do nothing which isn't likely.
If it was a library issue, you'd likely get linker errors. Since you aren't I'd start with what the function is doing at run time.
KA
atof only works on ANSI strings. You should open the string in question in the memory view of your IDE to verify. It will stop on the first non numerical value it finds including \0
A failure of the function to operate would either be this or else someone redefined atof to do nothing which isn't likely.
If it was a library issue, you'd likely get linker errors. Since you aren't I'd start with what the function is doing at run time.
KA
In fact the function which executes the atof doesn't get any data from my wx-app. I read the needed value out of a file. I had similar problems when I was writing in memory not allocated (out of bounds). But I checked my code. I don't think it happen there.
Damage controll is easy, reading Klingon that's hard
I found the solution. I have to set a local variable by using . It has to do with gtk, that does anything else with this variable ...
Thanks for your help
Code: Select all
setlocal(...);
Thanks for your help
Damage controll is easy, reading Klingon that's hard
-
- Can't get richer than this
- Posts: 802
- Joined: Mon Dec 27, 2004 10:46 am
- Location: Estonia, Tallinn
- Contact:
Perhaps this should be considered a bug?
Compilers: gcc-3.3.6, gcc-3.4.5, gcc-4.0.2, gcc-4.1.0 and MSVC6
OS's: Gentoo Linux, WinXP; WX: CVS HEAD
Project Manager of wxMUD - http://wxmud.sf.net/
Developer of wxGTK;
gtk+ port maintainer of OMGUI - http://www.omgui.org/
OS's: Gentoo Linux, WinXP; WX: CVS HEAD
Project Manager of wxMUD - http://wxmud.sf.net/
Developer of wxGTK;
gtk+ port maintainer of OMGUI - http://www.omgui.org/