Why objet is not stopped when page change

Hi,
I'm currently working in my company on a library.
A have created a class to display ads in a webrowser. A request is executed every 20 seconds.
I display the ads in a panorama page
but when i go to a detail page my banner continu to do request.
The object isn't destroyed when the page change ?
And if not how can i resolve it ?
Thank you

No. You should call the stop method on that timer to ensure it stops when you want it to.  It sounds like there's a handle somewhere on that timer that hasn't been released (perhaps via page caching) so that's why the timer hasn't gone out of scope.
Ignoring the obvious solutions makes your programming life more difficult.
Matt Small - Microsoft Escalation Engineer - Forum Moderator
If my reply answers your question, please mark this post as answered.
NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with
undefined objects and unknown namespaces.

Similar Messages

  • Why can I not print all pages in a multi-page document?

    Why can I not print all pages in a multi-page document?

    We are using Adobe Acrobat Reader, version 11.0. It's on a relatively new laptop (Windows 8) and accessing the internet through Mozilla. The printer is an HP Officejet. When I open a multi-page Adobe document and try to print all pages, I only get 1-2, have to then say print page 3, then say print page 4, etc. We use Adobe on our other laptop and it prints all pages of all Adobe documents and we have never had a problem and he accesses documents on the internet also through Mozilla.

  • I started setting up a web page with iWeb. Auto play box is checked, but music will not play when page is opened.

    I started setting up a web page with IWeb.
    Several proplems so far:
    1) Auto Play box checked for music, but music does not start when page is opened.
    2) Can't get Quicktime "start/stop" slide to start and finish a section within a long piece of music (classical for example).  How does one work the slide bar to do this?

    Yes the audio file plays on the iWeb page when I click the play button.  I even made sure it played both without the “little boxes” that surround the icon (don’t know the technical name for those), and when I click the music icon without the little boxes.
    I did note that the iTunes window that appears when I open the Inspector is not highlighted until I click the music icon and those little boxes appear.  Then the Start/Stop, Auto Play,  Loop, and Show Movie Controller are highlighted —  and work properly.
    One other thing.  I see that the iWeb icon I am working from says “Domain copy.sites2.”  Does that have a bearing on anything?

  • Why my Apple ID stopped when I buy and why the supporter can't help and why they don't reply to any email I send

    Why my Apple ID stopped when I buy and why the supporter can't help and why they don't reply to any email I send so what should I do in this moment I need guide and help so as a request please reply me back  Thanks ....

    As I said in my above reply we are fellow users, we won't know why your account is disabled.
    You might be able to re-enable it via this page : http://appleid.apple.com, then 'reset your password'
    You might then need to log out of your account on your phone by tapping on your id in Settings > iTunes & App Store and then log back in so as to 'refresh' the account on it.
    If that doesn't fix it then you might need to contact iTunes Support : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page

  • Why can I not print from pages but can if I copy to text edit, I get "printer off line message " from pages ?

    Why can I not print from pages but can if I copy to text edit, I get "printer off line message " from pages ?  I use HP wireless printer .

    Are you sure you have the right printer?
    In UNIX/OSX printers are virtual links to devices and even with the same name can be trying to reach a printer via another network address, so it thinks it is another printer.
    Peter

  • Why charger saying not supported when it is a genuine apple charger

    Why charger saying not supported when it is a genuine apple charger

    Do you mean the AC wall adapter or the cable when you say "charger"? Neither is a charger; the charger is built into the phone. You need to do some basic troubleshooting. First, try a different cable with the same AC adapter. Then try a different USB source such as the USB port on your computer. If you get the same message after both tests the problem lies in the phone. The most common cause of this message is dirt, moisture or pocket lint in the lightning connector on the bottom of the phone. Inspect it with a bright light and clean it with a plastic or wood toothpick. If none of these steps resolve the problem take the phone, cable and adapter to an Apple store for diagnosis. Make an appointment first: http://concierge.apple.com/reservation/us/en/techsupport/
    Note: You should register the iPhone on Apple's website first, if it isn't already registered: https://supportprofile.apple.com/. This will speed up the appointment process.

  • I am using iPad1. Running v4.3 and when connecting to wifi iPad keyboard does not work. Keyboard works for everything else including typing this question out. Why would it not work when typingin password for wifi connection?

    I am using iPad1. Running v4.3 and when connecting to wifi iPad keyboard does not work. Keyboard works for everything else including typing this question out. Why would it not work when typingin password for wifi connection?

    Kowhai wrote:
    Lots of WIFI needs a username and password to get access. I guess you're lucky and yours is set up unsecured.
    Normal secured WiFi requires only a password to get access. The password is used to encrypt traffic between your device and the WiFi access point. If whatever you are using requires a username as well then it is not simply normal secured WiFi. It might be a subscription WiFi service like GOGO, ATT, etc., or a service with authentication, i.e., college campus, etc. To help you out we need to know what you are using and what connection dialog you are being presented with. You don't have exactly the same problem as the original poster. He is having a problem entering a password into the password dialog that iOS presents when one tries to connect to a normal secured WiFi network. Could you clarify exactly which WiFi service you are using.

  • Why does apple not stop these app that steal money from small children

    Why does apple not stop these app that steal money from small children

    In the final analysis it is down to parents to use the parental control features. 
    In addition to that, parents should regularly check the nature of all downloaded apps available to their children.
    Yours are the chidren ... and yours, the responsibility.

  • Why will safari not load web pages with the prefix "fhp"?

    Why will safari not load web pages with the prefix "fhp"?

    Because it doesn't recognise them as valid addresses - just as the error message  says.
    Firefox is similar : Firefox doesn't know how to open this address, because the protocol (fhp) isn't associated with any program.
    Where are you seeing this problem ?.

  • Why my panorama not scrolling when i move my cell phone as it was before, any special setting?? an answer please

    why my panorama not scrolling when i move my cell phone as it was before, any special setting?? i need an answer please

    Welcome to the Support Communities. This Apple doc may be of interest:
    Channel Member Code of Conduct
    Kings74 wrote:
    They told my friend that the phone was not available in Black, that was the 5, and that the 5s was only available in silver and gold..
    A minor point, but it may avoid a little confusion if, instead of saying "black" in reference to the iPhone 5s, say "space gray":
    "iPhone 5s — Available in silver, gold, and space gray" (Source)

  • Why does video out stop when ipad screen locks?

    Why does video out stop when ipad screen locks?

    Thanks.  I should have been more specific.  I am watching using video out cables to the TV, and would like to watch the entire episode without unlocking the screen every five minutes.

  • Icloud is not backing up daily automatically on my phone or ipad I have to select back up now each day manually why is it not doing when locked on wifi

    Icloud is not backing up daily automatically on my phone or ipad I have to select back up now each day manually why is it not doing when locked on wifi

    Make sure your devices are also connected to external power or the wifi will disconnect after a few seconds.  If they are and they still won't back up, it may be caused by a corrupt existing backup that needs to be deleted, or by data on your device that is causing the backup to fail.  To troubleshoot these, try deleting your last iCloud backup (if you have one) by turning off iCloud Backup in Settings>iCloud>Storage & Backup, then tap Manage Storage, tap your device under Backups, then tap Delete Backup.  Then go back and turn iCloud Backup back on and try backing up again.
    If it still won't back up, you may have an app or something in your camera roll that is causing the backup to fail.  To locate which one, go to Settings>iCloud>Storage & Backup>Manage Storage, tap the name of your device under Backups, under Backup Options tap Show All Apps, then turn them all to Off (including camera roll) and try backing up again.  If the backup is successful, then the camera roll and/or one of your apps is causing the backup to fail and you'll have to located by process of elimination. Turn the camera roll On and try backing up again.  If it succeeds, turn some of your apps to On and try backing up again.  If it succeeds again, turn some more apps to On then try again; repeat this process until it fails.  Eventually you'll be able to locate the problem app and exclude it from your backup.

  • Why does Apple not allow me to Change "Siri's" name on the I5?

    Why does Apple not allow me to Change "Siri's" name on the I5 (NOT how, but WHY)?

    No one here can address a question as to "why" Apple does anything.

  • Windows 10 - Skype not respond when I change language with Grave accent

    Windows 10 - Skype not respond when I change language with Grave accent 

    Switching languages quickly in Windows 10 with the current version of Skype is a known issue.  Hopefully a future update will address the problem.

  • Adobe Acrobat Standard XI: Why prompted to save file when nothing changed?

    I have Adobe Acrobat Standard as the default PDF reader. I PDF printed a page from a website. Then I clicked to open the PDF. After I finished viewing the file, I closed the window. Adobe Acrobat prompts me to save: Yes, No, Cancel. Since I changed absolutly nothing, I am puzzled why Adobe Acrobat's save dialog thinks there are changes and askes me whether I want to save the changes.
    I have repeated opening and closing the PDFseveral times.
    Then, I tried opening and closing another PDF, and it just closes without prompting to save.
    Why do I get different behaviors on different PDFs? And can I control the behavior to get or not get the save prompt when there are no changes?

    I like that Adobe Acrobat will correct problems, then ask you whether to save.
    In the case of this file, I click Yes to save. Then the next time I open and close the file, it asks again, and I click Yes to save. Adobe Acrobat always does it with this file.
    With another file, Adobe Acrobat (AA) does not prompt, unless I change the file.
    I don't know which difference matters. AA created both PDFs. The problem file was a print from a webpage. The good file (that closes without prompting) was created from a scanner.
    I tried PDF printing this page (i.e. the page on which I am composing my response to your message). Then, I opened and closed the PDF, and was prompted to save.
    Seems like if AA corrected the problem, and I saved, AA should not have to correct the problem again (if that is what's happening). Also, if AA made the PDF in the first place, there should be no problems with the PDFto correct.
    You know what? I just tried printing another website and same prompting everytime I close.
    I've been using Chrome. I tried printing with Internet Explorer, and no problem of prompting when closing.
    Hmm. I just tried PDF printing from FireFox. No problem here either.
    Well, Now I suppose I just leave it for Google and Adobe to work out, if they care to.
    I just tried opening the problem file in AA and PDF printing from it. This seems to have cleaned the file. The second PDF file has no problem opening and closing.
    I've got an idea. I just went to the address bar in Chrome and typed "Chrome://plugins". That's the only way I know to get to the Chrome plugins. I saw that I have BOTH the Chrome built-in PDF Reader  AND the Adobe Create plugins enabled. I disabled the Chrome PDF Reader so ONLY the Adobe Create plugin is enabled.
    I printed this webpage again (the webpage you are reading). This time, there was no problem opening and closing the PDF, no prompts to save.
    However, now online PDFs will not display in Chrome. Instead, Chrome offers to download the PDF.
    I went back to the plugins and found Adobe Reader disabled. I enabled Adobe Reader so now I have both Adobe Reader and Adobe Create plugins enabled.
    The problem came back.
    I don't know who would fix this, Adobe or Chrome, but would be nice to "have my cake and eat it, too" meaning, not have to muck with the plugins to AA-print clean PDFs from Chrome, and then muck again with the plugins to display PDFs in Chrome.
    I tried FireFox. Displays PDFs, and AA-prints PDFs that are clean (i.e. no prompt on closing from AA).
    Well, that is enough (maybe more than enough) from me on this. I'll monitor this discussion in case anyone comments.

Maybe you are looking for

  • Problem with installing both 32 and 64bit Java7u45

    Hi all. For some reson we need to install Java7u45 because of an inhouse made application only runs on java7u45 32bit, Now to my issue, we hava about 200 windows7 x64 machines who need both 32 and 64 bit java7u45. If i install the 32bit the inhouse a

  • Sound does not match video

    I have imported an HD video from a Canon HV30 camcorder into iMovie HD 6.0.3. The picture looks great but the sound does not match the video. I have never encountered this problem before when importing from other video camcorders (non HD). Does anyon

  • F-32 Difference Postings with Special G/L indicators

    When we clear AR line items using F-32, and all the transactions we are clearing have the same Special G/L indicator, any difference posting generated does NOT get allocated to that Special G/L indicator, which is NOT what we want - e.g. if we clear

  • IPC for ECC5.0

    Hello, We have Product Configuraion in ECC5.0 (SD System). Now we want to configure IPC for ECC5.0. Please let me know what is work effort involved in it?. Also I appreciate if somebody can tell what are the configuration steps involved with it. Than

  • Types of file recognized by iMovie

    Hi I'm new to Mac and to video editing. I'm trying to use iMovie9 to make a movie with the best scenes of some movies. here are the issues i've been facing: 1) when i try to load a movie dvd (original, like the ones we buy in a store) with .vob file,