On Sat, 18 Oct 2008, Danny Backx wrote:
> Does anyone know how to deal with memory in an application ? > RoadMap sometimes won't start up again saying "no more memory", > sometimes the device just displays the "busy cursor" for a second and > then doesn't start the application at all. (Nothing in the application's > log.) > > I am guessing that this is memory related but I don't know. Does anyone > know how to deal with this ? Links to texts on this ? > > Do you need to clean up everything when terminating the application ? On > UNIX and its friends, you don't. Also the doc says that ExitProcess() > kills all threads. Is this a bad idea ? a friend who uses win ce told me that he *thinks* (not sure) that an allocated memory that is not freed is lost. to check for leaks, he told me that he looks at the quantity of mem before and after launching the prog you can try with a little program that just malloc(), without free(), i guess. btw, i've just found that: http://msdn.microsoft.com/en-us/library/ms859408.aspx (last sentence of the 2nd paragraph and 1st sentence of the 3rd paragraph) about ExitProcess(), I don't know Vincent ------------------------------------------------------------------------- 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=/ _______________________________________________ Cegcc-devel mailing list Cegcc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cegcc-devel