Click here to get back home

Creating a program that won't terminate in the BG

 HomeNewsGroups | Search | About
 microsoft.public.smartphone.developer    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Creating a program that won't terminate in the BG Bodero 07-25-2007
Get Chitika Premium
Posted by Bodero on July 25, 2007, 9:40 am
Please log in for more thread options
Hello,

I am developing a GPS logging application for my mobile phone that uploads
my coordinates to my website every 5 minutes. This works flawlessly when I
keep the application in the foreground.

However, if I switch to another application, such as running Windows Media
or placing a telephone call, it's iffy - sometimes my application will remain
running when I switch back to it, and sometimes I'll find it had terminated
along the way.

Is there something I am doing wrong in programming it? Is it crashing but
I'm not getting the error message?

Or does this problem have to do with the memory management within Windows
Mobile Smartphone, automatically terminated Least Recently Used applications?
If so, there must be a way for an application to prevent the OS from
terminating it.

I appreciate your help!
Thanks.

Posted by Peter Foot [MVP] on July 25, 2007, 10:16 am
Please log in for more thread options
See this blog post for a sample:-
http://peterfoot.net/OpenAllHours.aspx

Peter

--
Peter Foot
Microsoft Device Application Development MVP
www.peterfoot.net | www.inthehand.com
In The Hand Ltd - .NET Solutions for Mobility

> Hello,
>
> I am developing a GPS logging application for my mobile phone that uploads
> my coordinates to my website every 5 minutes. This works flawlessly when I
> keep the application in the foreground.
>
> However, if I switch to another application, such as running Windows Media
> or placing a telephone call, it's iffy - sometimes my application will
> remain
> running when I switch back to it, and sometimes I'll find it had
> terminated
> along the way.
>
> Is there something I am doing wrong in programming it? Is it crashing but
> I'm not getting the error message?
>
> Or does this problem have to do with the memory management within Windows
> Mobile Smartphone, automatically terminated Least Recently Used
> applications?
> If so, there must be a way for an application to prevent the OS from
> terminating it.
>
> I appreciate your help!
> Thanks.


Posted by Bodero on July 25, 2007, 10:22 am
Please log in for more thread options
I had no idea it was that simple. Thank you!

"Peter Foot [MVP]" wrote:

> See this blog post for a sample:-
> http://peterfoot.net/OpenAllHours.aspx
>
> Peter
>
> --
> Peter Foot
> Microsoft Device Application Development MVP
> www.peterfoot.net | www.inthehand.com
> In The Hand Ltd - .NET Solutions for Mobility
>
> > Hello,
> >
> > I am developing a GPS logging application for my mobile phone that uploads
> > my coordinates to my website every 5 minutes. This works flawlessly when I
> > keep the application in the foreground.
> >
> > However, if I switch to another application, such as running Windows Media
> > or placing a telephone call, it's iffy - sometimes my application will
> > remain
> > running when I switch back to it, and sometimes I'll find it had
> > terminated
> > along the way.
> >
> > Is there something I am doing wrong in programming it? Is it crashing but
> > I'm not getting the error message?
> >
> > Or does this problem have to do with the memory management within Windows
> > Mobile Smartphone, automatically terminated Least Recently Used
> > applications?
> > If so, there must be a way for an application to prevent the OS from
> > terminating it.
> >
> > I appreciate your help!
> > Thanks.
>

Posted by Grant on November 28, 2007, 6:24 pm
Please log in for more thread options
Hi Bodero,

Any chance that you will be publishing or sharing the app/source? I was
going to build the same sort of thing, but I would rather not reinvent the
wheel.

Thanks

Grant

"Bodero" wrote:

> I had no idea it was that simple. Thank you!
>
> "Peter Foot [MVP]" wrote:
>
> > See this blog post for a sample:-
> > http://peterfoot.net/OpenAllHours.aspx
> >
> > Peter
> >
> > --
> > Peter Foot
> > Microsoft Device Application Development MVP
> > www.peterfoot.net | www.inthehand.com
> > In The Hand Ltd - .NET Solutions for Mobility
> >
> > > Hello,
> > >
> > > I am developing a GPS logging application for my mobile phone that uploads
> > > my coordinates to my website every 5 minutes. This works flawlessly when I
> > > keep the application in the foreground.
> > >
> > > However, if I switch to another application, such as running Windows Media
> > > or placing a telephone call, it's iffy - sometimes my application will
> > > remain
> > > running when I switch back to it, and sometimes I'll find it had
> > > terminated
> > > along the way.
> > >
> > > Is there something I am doing wrong in programming it? Is it crashing but
> > > I'm not getting the error message?
> > >
> > > Or does this problem have to do with the memory management within Windows
> > > Mobile Smartphone, automatically terminated Least Recently Used
> > > applications?
> > > If so, there must be a way for an application to prevent the OS from
> > > terminating it.
> > >
> > > I appreciate your help!
> > > Thanks.
> >

Similar ThreadsPosted
Problem with creating dll November 16, 2006, 6:51 am
Creating new profile April 3, 2007, 4:25 am
A Problem about Creating a Menubar October 27, 2005, 8:00 am
creating WMP embedded control April 28, 2006, 7:43 pm
Creating my own file browser December 14, 2006, 4:30 pm
Creating menu bar without pop up menus? January 23, 2007, 6:04 am
Creating certificate in VS2005 February 12, 2007, 9:39 am
Creating an 8-bit palettized surface June 7, 2007, 7:06 pm
Creating an e-mail account July 14, 2008, 1:55 pm
Creating / Disconnecting GPRS connectie with C# July 30, 2005, 7:59 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap