Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8504805
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T02:08:19+00:00 2026-06-11T02:08:19+00:00

This is a very strange problem, and all the people I had asked to

  • 0

This is a very strange problem, and all the people I had asked to confirm it said that it takes place.

I have a Threading.Timer instance which fires every 15 minutes. And if I call the PhotoChooser view and then select a photo from it, when going back to the calling page my application calls that timer’s callback! I tried different timers either it be Timer from Threading namespace or Dispatcher timer.

The same happens when being in my app I hold the back button of my device and then choose the app from the list.

My application is as plain as it can be – the timer with a callback and method calling PhotoChooser. Could anyone help with solution or workaround please?

Update:

My code construction is as follows:

private Timer _timer;

public void CallTimer()
{
    var period = 15 * 1000 * 60;
   _timer = new Timer(repeatTimer_Tick, null, 0, period);
}

private void repeatTimer_Tick(object state)
{
   // Some action here
}

private void Stop()
{
   if (_timer != null)
     _timer.Dispose();
}

private void CallPhotoChooser()
{
   // Some basic actions calling photochooser task
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T02:08:20+00:00Added an answer on June 11, 2026 at 2:08 am

    As explained in Windows Phone 7 Tombstoning the application is most likely tombstoned when the user presses and holds the back button or a launcher, like the PhotoChooserTask, is called. This happens unless the page is returned to in a matter of seconds.

    You need to store the timer timeout in your application state somehow, or set the initial timeout to 15 minutes so it doesn’t fire immediately. To store the application state, take a look at the article linked, it recommends doing this in the NavigatedFrom event which you can overload in the page code behind.

    The time left before the timer fires is a bit more difficult. I guess to know how long it’s left of a timeout you need to get the time with DateTime.UtcNow (which you can store in the application state) when creating the timer and calculate the next time it will fire upon resuming the application.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is a very strange problem, and I just hope that I can clearly
Starting from Android 3.2 I have this strange problem. It's very easy to reproduce:
it is very strange, because this error doesn't happen all the time... I have
I have a very strange problem with facebook OG. https://fit.upjet.com/en/pages/news/270/ - this is a
So this is a really strange problem. I have a Java app that acts
Very strange problem with my iPhone App. We have an App that has been
I have this very strange problem on a big flex app where it would
I have a very strange problem with #any? printing true for an array that
First off, thanks to whomever is reading this. I have a very strange problem
I have a rather strange problem. I have a very simple application that reads

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.