From: Matt L. <law...@ya...> - 2008-02-12 01:44:51
|
Hey, I ran into a problem today I hadn't seen before. I am wrapping C++ with perl. In one function where a string is used as the function return value (by string I mean const char *) the returned string is partially garbled when it's returned to perl. The string is correct in C++ before passing back. This is swig 1.3.33. I also tried 1.3.31 which gave me a slightly different garbled result. Interesting though, in both cases it was garbled after 976 bytes. e.g. the first 976 bytes were correct, after that it was garbled, truncated, and/or the wrong length. I have been using swig successfully for quite a while but I am relatively new to 64-bit Linux, so I think this is the culprit. Platform is a vanilla centos5 (x86_64). The problem does NOT occur using php5 wrappers, only perl. The problem also does not occur with perl in freebsd or 32-bit linux (centos4 I think) I realize that's not much to go on; I will attempt to create a test case that can illustrate the problem. But I wanted to shout out and see if this sounded familiar to anyone. Thanks. ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping |