yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #00187
RE: A strange glibc error when modifying StandAloneEngine:PositionOrientationRecorder
I think I happened to find the solution for this glibc error by accident is
that after you have modified poisitionOrientationRecorder.cpp and compiled it,
you also have to recompile SDECSpheresPlane.cpp accordingly, which I guess
there is some dependency relationship between them?
BTW, here is my question about debug:)
I browsed other posts as
(https://lists.berlios.de/pipermail/yade-users/2006q1/000155.html) and saw
something about debugging YADE, however I haven't found solution about general
debugging discussion, e.g. add breakpoint, add watch,etc, I wonder how you
managed debugging such project as YADE? The only thing I managed to debug is:
(1) The universal way, add std::cerr<<xxxxxx;
(2) Use the gdb or ddd, however up till now I only managed to use gdb to debug
the separate libxxx.so files, I didn't succeeded in breaking the shared
library files using ddd or something else.
(3) I didn't find way to debug inside KDevelop, can we do that?
Thanks a lot!
>===== Original Message From Janek Kozicki <janek_listy@xxxxx> =====
>Feng, Chen said: (by the date of Thu, 30 Mar 2006 18:17:34 -0500)
>
>> Hi, all:
>>
>> I am currently making modification in file
PositionOrientationRecorder.hpp
>> and PositionOrientationRecorder.cpp and I am doing a very simple operation
on
>> PositionOrientationRecorder.hpp, which is add several variables:
>
><snip>
>
>> std::ofstream ofile;
>> ///here in the previous version, it said FIXME???
>
><snip>
>
>> I tried several times and after commented the std::ofstream ofile, it seems
I
>> can add more variables to the class, however, seems after adding 7
variables,
>> the program will crash anyway, but if you add less than 7 variables, the
glic
>> error will not occur.
>
>do you still have this problem? sorry, unfortunately I was too busy last
>week, but now I hope I can help with your problems.
>
>That FIXME was there because I had some weird problems with ofstream,
>now I think it was just because I forgot to put any filename for the
>constructor, which caused ofstream to open a file without a name,
>which was causing a crash.
>
>
>--
>Janek Kozicki |
>_______________________________________________
>Yade-users mailing list
>Yade-users@xxxxxxxxxxxxxxxx
>http://lists.berlios.de/mailman/listinfo/yade-users
_______________________________________________
Yade-users mailing list
Yade-users@xxxxxxxxxxxxxxxx
http://lists.berlios.de/mailman/listinfo/yade-users
Follow ups