Am Sonntag, 7. September 2008 18:47 schrieb John Clements: > I'd like to use the aqbanking library in an embedded setting, and in > conjunction with a precise garbage collector. This would require > knowing when & where aqbanking allocates.
That's a very good question. To be honest, there wasn't any "formal audit" or thorough testing of aqbanking's allocation and deallocation behaviour, except for regular valgrind checks to avoid obvious memory leaks and/or double-frees. We are very interested in hearing about your progress. Please don't hesitate to ask this and any further question you encounter down the road. > Taking a look at aqbanking.h, it looks like > > AB_Banking_new > > allocates a new structure, and > > AB_Banking_free > > deallocates it. Yes. > Are these structures self-contained? Just to avoid potential mis-understandings: Could you please define what exactly you mean by "self-contained"? > Are there other chunks of memory floating around? Yes, unfortunately there's a whole bunch of static variables. In libgwenhywfar there is one set of static variables that gets initialized by GWEN_Init() and deleted by GWEN_Fini(). Both in turn call a whole bunch of sub-package's Init and Fini of the various libgwenhywfar "sub-packages". Notably GWEN_Gui_* also has some non-trivial static variables that need to get initialized at the beginning and finialized at the end. I don't recall whether libaqbanking has additional static variables in addition to the (non-static) AB_Banking_new allocation. It might, but I'm not sure anymore. > Naturally, I also have the same questions about the back-ends, but > I'm guessing I'd have to ask these questions of those libraries' > developers... All libaqbanking backends are written by the libaqbanking author himself, Martin Preuss. Hence, all questions belong right here :-) Regards, Christian ------------------------------------------------------------------------- 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=/ _______________________________________________ Aqbanking-devel mailing list Aqbanking-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/aqbanking-devel