Le mercredi 30 juillet 2008 à 09:00 +0200, Benoit Minisini a écrit : > On mardi 29 juillet 2008, Benoit Minisini wrote: > > On mardi 29 juillet 2008, Steven Lobbezoo wrote: > > > No, if I do that i test the 'executable' directly and there is no error. > > > The error is only if I start the app under the ide (run button) > > > > > > Steven > > >From what you told, I understood that the IDE crashes, so you must > run 'valgrind... gbx2 -p' inside the IDE directory. > > But if the crash comes from your project, you must run valgrind inside the > project directory. > > And if the crash comes from your project, but only while debugging it, run > valgrind inside the IDE project directory, but add the > option '--trace-children=yes' to let valgrind follow both the IDE and your > project! > > Tell me if I was not clear. > > Regards, >
I'm afraid, I donnot understand : if I run valgrind in the gambas (ide) directory I get this : [EMAIL PROTECTED]:~/2.0/app/src/gambas2> valgrind --tool=memcheck --trace-children=yes --num-callers=50 gambas2.gambas ==6281== Memcheck, a memory error detector. ==6281== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al. ==6281== Using LibVEX rev 1804, a library for dynamic binary translation. ==6281== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP. ==6281== Using valgrind-3.3.0, a dynamic binary instrumentation framework. ==6281== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al. ==6281== For more details, rerun with: -v ==6281== ==6281== Memcheck, a memory error detector. ==6281== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al. ==6281== Using LibVEX rev 1804, a library for dynamic binary translation. ==6281== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP. ==6281== Using valgrind-3.3.0, a dynamic binary instrumentation framework. ==6281== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al. ==6281== For more details, rerun with: -v ==6281== ==6281== Memcheck, a memory error detector. ==6281== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al. ==6281== Using LibVEX rev 1804, a library for dynamic binary translation. ==6281== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP. ==6281== Using valgrind-3.3.0, a dynamic binary instrumentation framework. ==6281== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al. ==6281== For more details, rerun with: -v ==6281== ERROR: #2: Cannot load class 'Project': Unable to load class file ==6281== ==6281== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 34 from 2) ==6281== malloc/free: in use at exit: 137,731 bytes in 3,533 blocks. ==6281== malloc/free: 25,016 allocs, 21,483 frees, 1,792,181 bytes allocated. ==6281== For counts of detected errors, rerun with: -v ==6281== searching for pointers to 3,533 not-freed blocks. ==6281== checked 447,828 bytes. ==6281== ==6281== LEAK SUMMARY: ==6281== definitely lost: 21,225 bytes in 158 blocks. ==6281== possibly lost: 0 bytes in 0 blocks. ==6281== still reachable: 116,506 bytes in 3,375 blocks. ==6281== suppressed: 0 bytes in 0 blocks. ==6281== Rerun with --leak-check=full to see details of leaked memory. [EMAIL PROTECTED]:~/2.0/app/src/gambas2> However, if I do gambas2.gambas from the command line in that directory, i get the ide, all correct. If I run valgrind inside my project directory (after removing the test.gambas compiled file) it runs my project, but without the ide. So, exactly in which directory should i run valgrind ? And what should i run gambas2, gbx ????? Thanks, Steven ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user