How to stop working of called program

Hi ,
I have called one class , but after some operation i want to stop its work . how can i do that? my code is
if(events.getSource()==tmppnlmenu.btnAdd_product||events.getSource()== tmpGUIMenu.mnuproducts_Add )
          ProductTable objProductTable = new ProductTable(tmppnlmenu.tblProduct,tmppnlmenu);
          operation(tmppnlmenu.tblProduct,1,1, cust.intProductCount);
          objProductTable = null;
I tried with null , but not get success? pls help me
--harish                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

One way to do it is to have a special method in the class that you want to stop that you can call to have methods in that class stop running. The called method would set a switch that the other classes could test to see if they are to stop.
objProductTable.stop();
Where stop() is a method you code that sets a switch.

Similar Messages

  • HP G4050 "HP Scan Resources has stopped working" and the program closes

    Scanning photo negatives, and all was working well until I updated the HP software.
    RUnning on an HP laptop, 64 bit, Win 8.1 64 bit, most current version of scanner software (is there no way on the software to find the version no.?  I deleted the download after installing)
    Have rebooted the machine.  Closed the scanner, turned off/on, reinstalled software and all combinations of these three.
    load the negs.  preview.  rotate, crop, click "finish".  It scans the first neg, gets 95% of the way (according to the work bar progress), throws up a message:
    "HP Scan Resources has stopped working"  Close the program.  On the close screen it suggests the above 3 retrys, and gives the "extended error info" as :
    8,[(4,0,-2147023170)]    I presume that may mean something to someone.
    Am about 1/2 way through scanning 5,000 negatives, and this has cropped up.  Bizarre, as the laptop has not changed from the get-go (new HP laptop).   WhaddaIdo?

    Hello WRJP, and welcome to the HP Forums, I hope you enjoy your experience!
    I see you are running into scan issues.  I would like to help.
    I would suggest Uninstalling the Printer Software.
    Once it is uninstalled, I would suggest putting your system into clean boot mode within the Microsoft configuration.  You can do so by following this document: How to perform a clean boot in Windows.
    Once the computer is in clean boot mode, I would suggest reinstalling the HP Printer Install Wizard for Windows.
    Good luck and please let me know the results of your troubleshooting steps. Thank you for posting on the HP Forums!
    Please click “Accept as Solution " if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks" for helping!
    Jamieson
    I work on behalf of HP
    "Remember, I'm pulling for you, we're all in this together!" - Red Green.

  • Every time I TRY to start firefox 18-19 I get an error message : Firefox has stopped working - close the program and check online for a solution - or - close ..

    Every time I TRY to start firefox 18-19 I get an error message : "Firefox has stopped working" - "close the program and check online for a solution" - or - "close the program" this happens TWICE every time I try to start firefox. Eventually after a random number of tries firefox will start normaly. I am useing firefox 19.0.2 now bit I belive it started when I upgraded to firefox 18 but am not sure, it might have been when I upgraded to firefox 19 ... but it has been happening for a very long time and I cannot find any helpfule solutions online.
    I have tried a Clean reinstall but it did not help.

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • Every time I TRY to start firefox 18-19 I get an error message : Firefox has stopped working - close the program and check online for a solution - or - close th

    Every time I TRY to start firefox 18-19 I get an error message : "Firefox has stopped working" - "close the program and check online for a solution" - or - "close the program" this happens TWICE every time I try to start firefox. Eventually after a random number of tries firefox will start normaly. I am useing firefox 19.0.2 now bit I belive it started when I upgraded to firefox 18 but am not sure, it might have been when I upgraded to firefox 19 ... but it has been happening for a very long time and I cannot find any helpfule solutions online.

    Certain Firefox problems can be solved by performing a ''Clean reinstall''. This means you remove Firefox program files and then reinstall Firefox. Please follow these steps:
    '''Note:''' You might want to print these steps or view them in another browser.
    #Download the latest Desktop version of Firefox from http://www.mozilla.org and save the setup file to your computer.
    #After the download finishes, close all Firefox windows (click Exit from the Firefox or File menu).
    #Delete the Firefox installation folder, which is located in one of these locations, by default:
    #*'''Windows:'''
    #**C:\Program Files\Mozilla Firefox
    #**C:\Program Files (x86)\Mozilla Firefox
    #*'''Mac:''' Delete Firefox from the Applications folder.
    #*'''Linux:''' If you installed Firefox with the distro-based package manager, you should use the same way to uninstall it - see [[Installing Firefox on Linux]]. If you downloaded and installed the binary package from the [http://www.mozilla.org/firefox#desktop Firefox download page], simply remove the folder ''firefox'' in your home directory.
    #Now, go ahead and reinstall Firefox:
    ##Double-click the downloaded installation file and go through the steps of the installation wizard.
    ##Once the wizard is finished, choose to directly open Firefox after clicking the Finish button.
    Please report back to see if this helped you!

  • When I try to open iTunes,it tries to start but than I get a message stating-iTunes has stopped working , close the program. Does anyone have a problem like this? I'm using windows 7 compatibility turned off.

    I'm using a Dell PC with windows 7. Apple Store cannot open completely. An error message states- iTunes has stopped working, close the program.
    I have spoken to at least 3 Techs with no solutions found for this problem. Compatibility mode turned off. Newest Download from Apple site.

    See HT203206: iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues.
    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
    The further information area has direct links to the current and recent builds in case you have problems downloading, need to revert to an older version or want to try the iTunes for Windows (64-bit - for older video cards) release as a workaround for installation or performance issues, or compatibility with QuickTime or third party software.
    Your library should be unaffected by these steps but there are also links to backup and recovery advice should it be needed.
    tt2

  • I just updated iTunes on my dell and now when I try to go to the store I get an error message that iTunes has stopped working and the program closes. Ideas?

    I just updated iTunes on my dell and now when I try to go to the store I get an error message that iTunes has stopped working and the program closes. Ideas?

    I have also retarted twice...

  • When I tgry to drop a video from the main screen to a time line with no secuence i receive an error with no number, just tell me the progran stop working and the program closes can you help me please

    please someone who help me please
    when I tgry to drop a video from the main screen to a time line with no secuence i receive an error with no number, just tell me the progran stop working and the program closes

    You need to help us first ...
    Computer specs:
    OS, CPU, RAM, GPU, vRAM ... and also disc layout & connections can be useful (as in, "2 internal hard-drives and an external on Thunderbolt connection for exports")
    Program specs:
    Specific build of Premier Pro from the bottom of the "About" splash screen off the "Help" menu is best.
    Footage file type: MXF, AVCHD, MOV, m2s, what?
    Even the camera it was shot on can be of interest at times.
    And did you use media browser to import, then project panel to drag & drop?
    Neil

  • ITunes successfully installs in my computer but the moment I open it, a message will appear showing that microsoft has stopped working and the program will close. What do I do?

    iTunes successfully installs in my computer but the moment I open it, a message will appear showing that microsoft has stopped working and the program will close. What do I do?

    Let's first try updating your QuickTime Player to the most recent version. Does that help with the iTunes launch errors?

  • I'm unable to launch my newly installed PS CC. I got a message that Photoshop stopped working and the program closes?

    I'm unable to launch my newly installed PS CC. I got a message that Photoshop stopped working and the program closes?

    Please read these and proceed accordingly:
    http://forums.adobe.com/docs/DOC-2325
    http://blogs.adobe.com/crawlspace/2012/07/photoshop-basic-troubleshooting-steps-to-fix-mos t-issues.html

  • HT4623 My voice mail has suddenly stopped working. A caller just hears ringing for a long tome and then it disconnects. Does anyone know how to get it back or how VM stopped working? Thanks.

    Hi everyone. My voicemail just stopped working. A caller today said they got a message that it was not activated or something like that. When I called it from another phone all I got was ringing for a long time and then a disconnect. I have had this phone for about three months and it has been working until now.
    I updated software and turned the phone off and on again. Any other suggestions? Thanks.
    Joan

    Jneklason wrote:
    ~snip~
    I know this email is confusing and really hard to understand...perhaps now you will know how i've been feeling--lost and confused with all the mis-information, with a hit and miss phone, and out of time with all the 1 1/2 hr to 2 hrs EACH wasted on this issue.
    On top of all this, I can't even find out how to file a complaint with anyone higher up than Customer Service.
    I hate to tell you this, but you didn't write an email. You wrote a discussion post on the Verizon Wireless Community forum which is a public peer to peer forum. Unfortunately since you didn't mark your post as a question, the VZW reps that roam this community won't ever see your post. Before you re-post it, don't. Duplicate posts get removed from the community.
    I see there were several missteps both by the reps and yourself in your post. First you should have insisted on returning the phone within the 14 day return policy period. Second which Samsung Galaxy mini model did you purchase? The S3 mini or the S4 mini? Did you do any research prior to deciding on this device. The reps at that time deflected the easiest course of action, by trying to get you to replace the phone under insurance instead of returning the phone. The Early Edge payment option requires the current phone on the line using the early Edge must be returned to Verizon Wireless. Did you once considered going to a third party site like Swappa to purchase a gently used device for your daughter?

  • My Itune match doesn't work.  When it tries to update, it stalls on step 3.  If I don't cancel it, I get a window saying "Itunes has stopped working" and the program shuts down.  How can I fix this???

    When my Itunes Match tries to update, it stalls every time on the third step "Uploading remaining songs and artwork".  If I don't cancel it, very shortly I get a message saying "Itunes has stopped working" and then Itunes shuts down completely.  Is there a fix for this?  I have the most recent version of Itunes.  HELP!

    Hi The Funkster,
    The resource below will provide some initial troubleshooting for the issue you are having uploading songs and artwork to iTunes Match.
     How to troubleshoot iTunes Match - Apple Support
    http://support.apple.com/en-us/TS4054
    I hope this information helps ....
    - Judy

  • Adobe InDesign CC Stopped Working while "Calling Late Initializers..."

    For a couple of days InDesign CC has been crashing while loading. The program stops working as soon as the loading/splash displays: Calling Late Initializers...
    I have already uninstalled and re-nstaled the program, following the Adobe instructions listed on their "uninstall app" website, but the problem remains. This problem affects the other accounts in this computer as well not only mine. We have the second license for this CC membership linked to another desktop and InDesign works fine there.
    My OS is: Windows 7 Enterprise - 64 bit
    Hopefully someone has had a similar issue and can help me fix this problem.

    Leave the plugin out and try trashing the prefs. See Replace Your Preference
    If that still doesn't work, I'd uninstall again, run the cleaner tool (CS Cleaner Tool for installation problems | CCM, CS6, CS5.5, CS5, CS4, CS3 ) and reinstall after a clean boot (How to perform a clean boot to troubleshoot a problem in Windows 8, Windows 7, or Windows Vista ) and don't install any extra plugins.

  • Firefox stops working and closes program down

    firefox stopped working comes up n shuts program then mentions d.e.p data execution protection is on .it shows u how to turn it off but it wont turn off for m.s.n thats all i go to read mail pls help
    == URL of affected sites ==
    http://

    Hello Stephen.
    First of all, and although possibly not related to your problem, I will remind you that the version of Firefox you are using at the moment as been discontinued and is no longer supported. Furthermore, it has known bugs and security problems. I urge you to update to the latest version of Firefox, for maximum stability, performance, security and usability. You can get it for free, as always, at [http://www.getfirefox.com www.getfirefox.com].
    As for your issue, you may be having a problem with some extension or plugin that is hindering your Firefox's normal behavior. Have you tried disabling all add-ons (just to check), to see if Firefox goes back to normal?

  • ITunes not working on my computer each time open iTunes appear a window " iTunes has stopped working close the program "

    Hi, I have a problem with iTunes on my computer each time when try open iTunes appear a window " iTunes has stopped working... close a program " someone can help me how fix it.

    See HT203206: iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues.
    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
    The further information area has direct links to the current and recent builds in case you have problems downloading, need to revert to an older version or want to try the iTunes for Windows (64-bit - for older video cards) release as a workaround for installation or performance issues, or compatibility with QuickTime or third party software.
    Your library should be unaffected by these steps but there are also links to backup and recovery advice should it be needed.
    tt2

  • Adobe Reader 9.3 has stopped working ---- close the program

    When trying to open a PDF document, I get the Adobe Reader error box.  Adobe Reader 9.3 has stopped working.   A problem caused the program to stop working correctly. Please close the program.
    I went to the Adobe site and followed the instructions to add/remove program and reinstall newer version from Adobe website.  The new install is the 9.3 version and I am still getting this error message.  HELP ME!
    Vicky

    I am running win 7 ultimate and had the same issue.
    To fix: Do a clean install by first uninstalling Reader and removing all left over files....I use Revo (freeware) in the advanced mode to accomplish this
    Here is the link if you are interested,,http://www.revouninstaller.com/revo_uninstaller_free_download.html
    Otherwise....make sure you remove all the reader files from c:\programs(86) or programs and clean out the registry as well. Reboot and reinstall.
    Fixed it right up ..., no more probs.
    Kathy

Maybe you are looking for

  • Can I get MJD (date and time) in LabVIEW 2012 SP1?

    I need to time stamp my data before sending it to the file.  I have been doing this with the standard calendar date and time but MJD is what we prefer to use.  How can I get an MJD timestamp in LabVIEW 2012 SP1? Solved! Go to Solution.

  • Error message when trying to update software?!

    Just got my Mac Book Pro and am trying to run software updates for: iTunes (11.0.1), MacBook Pro (mid 2012) Software Update (10.7.4), Remote desktop client update (3.6.2) and Mac OS X 10.7.5 The software downloads and comuter does the restart and loa

  • How can I install Microsoft Remote Desktop ActiveX Control

    I am trying to connect to my pc at work from home. This is the message I get. This portion of the Remote Web Workplace requires the Microsoft Remote Desktop ActiveX Control. Your browser's security settings may be preventing you from downloading Acti

  • Execution time for web reports

    Hello every one, How to calculate execution time for web reports, for query execution we will go through RSRT, by giving query name and press execute + Debug button then select statistical data & Do not Cache buttons then press enter, after getting o

  • FI table for Report painter

    Which table I will take to create FI report in Report Painter ? Please help me.. Thanks & Regards, Ananda