My experience with WinCE 4.2 with writing gosmore is that you can run out of
memory by using new GDI objects for each Expose(), like pens and not free
them. Then the whole operating system can become pretty unstable.

Gosmore allocates (potentially) large routing arrays but always 2 or 3 MB
less than available memory. IIRC those array aren't freed before exiting and
it's never been a problem. My device now runs for weeks, if not months
without a problem.

On Sat, Oct 18, 2008 at 9:19 AM, Danny Backx <[EMAIL PROTECTED]> 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 ?
>
>        Danny
> --
> Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info
>
>
> -------------------------------------------------------------------------
> 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
>
-------------------------------------------------------------------------
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

Reply via email to