Please stop JOptionPane from bugging me

I am having problems with writing a GUI. I think I have distilled the problem down to one related to looping a JOptionPane. Does anyone know anything that will help me eliminate this problem (or bug)?
<code>
* This code results in a Win98 Ddhelp error
* It make Windows permanently unstable.
for ( int i=o ; i<2 ; i++ ){
JoptionPane.showMessageDialog(null, "Count is " + i);
System.exit(0);
* Whereas this causes no problems
int i=0;
JoptionPane.showMessageDialog(null, "Count is " + i);
int i=1;
JoptionPane.showMessageDialog(null, "Count is " + i);
System.exit(0);
</code>

This is getting worse! My previous post suggested that the problem was fixed but that was a misconception on my part. After running Norton utilities I did the tests again but I reduced the counter to just two iterations and the problem was gone. When I increase to four iterations the problem comes back!
The sample code above is actually two separate programs. The first program runs happily and shows the JOptionPane several times with the displayed text showing the counter number as expected. The program then terminates and a Win98 error message pops up. The heading is "Ddhelp" and the narrative is "This program has performed an illegal operation and will be shutdown. If the problem persitsts, contact the program vendor."
The only thing to be done is to press the OK button which removes the error message. However the program will no longer run as the error message pops up before the program has done anything. Any other (Java or non-Java) program is also likely to result in the same error message.
The second bit of sample code above is shown because it is functionally equivalent but does not use a loop with JOptionPane and seems to work without problems. This may suggest a possible solution to the problem by someone more knowledgeable than me.
If I can't understand this problem I will have to stop using JOptionPane which would be very unsatisfactory as I am writing a large GUI and JOptionPanes could be quite helpful to me. It might help to know if anyone can run the first bit of code on Win98 using JDK 1.4.1.
Perhaps I need to do something with invokeLater() but I have no experience nor confidence with threads.

Similar Messages

  • Adobe, please stop running from this issue! (GPU vs CPU anomalies / fades)

    Adobe,
    I have tried to bring this issue to light many times, and your own users have argued it ad finem, but to no avail! I am TIRED of getting terrible alpha blending (and opacity curve) results with GPU acceleration enabled, vs CPU. In fact, it is SO BAD that I NEVER work with GPU acceleration any more.
    Here is the issue:
    When GPU acceleration is enabled, you simply CANNOT do a smooth fade and/or cross dissolve. It appears to fade down smoothly to about 20% opacity, and then the next frame it will jump right to 0% quite abruptly and disappear. It's almost as if the fade simply gives up and switches off! Regardless of whether you use Cross Dissolve, or Film Dissolve the results are the same. Also, your alpha blending is all messed up, CLEARLY showing a different result when comparing CPU and GPU rendering outputs. Once again, this issue ONLY exists with GPU acceleration ENABLED. Switch off GPU/MPE and the problems disappear. But of course you lose the speed and other benefits GPU acceleration offers, which would be great to have! Especially seeing as I have also heard (from various other resources) that GPU acceleration can improve the quality of rendering out to compressed formats like H264. But we will never know that, will we? Because, every time I enable GPU, my fades and blending looks noticeably bad!
    I have seen in various other threads that your response has been along the lines of: "That's just the way it is". But unless your name is Bruce Hornsby, this response is unacceptable! You cannot advertise a "great feature" of your products (in this case, GPU/MPE), yet when people try to use it and see odd results, simply tell us: "oh by the way, yeah, it does not work in a few scenarios, like fading, but otherwise you are good to go!" The way I see it: cross-fades (even fades in general) as well as opacity/blending are some of the most common, if not THE most common techniques used in video projects! Having an anomaly of this nature showing a DISTINCT difference in quality output when one of your fantastic "features" is enabled is just poor form. What is evern poorer is your responses (or lack thereof) related to the issue. Especially seeing as this problem has been present since CS5, and now we are STILL seeing it in CC!
    Here is a thread which documents the issue well (even shows examples, and other details someone prepared for you to apparently ignore):
    http://forums.adobe.com/thread/773441
    ...it was never addressed there.
    Another issue which details it going back as far as CS 5.5:
    http://forums.adobe.com/thread/987306
    ...once again, never resolved.
    Now I am using CC, latest version, up-to-date, a fast i7 processor, a CUDA supported card, and all of those go to waste because I have to have GPU and the mercury playback engine disabled to yield decent quality results.
    I implore you, not just for myself, but on behalf of everybody here who has already addressed this issue, but has had their pleas fall on deaf ears: PLEASE FIX THIS PROBLEM. Telling us simply that: "This is the way GPU cards choose to render" is NOT ACCEPTABLE. It's just like me saying when I drive my car on the wrong side of the road: "that's just the way I drive!". Doesn't mean it is acceptable!
    You may have won people over since Final Cut Pro screwed the pooch with version X... but I can guarantee if this does not get resolved soon, the issue won't just be isolated to the forums here. Expect to read about it in MANY online publications that I am sure your competitors will ENJOY watching!
    Mat.

    Indeed. Yes Adobe, please explain.
    And here is an example of what I am talking about:
    CPU only (MPE and GPU DISABLED):
    This appears to be what I would consider accurate, as it is not only well blended, but the fades work smoothly thanks to it relying on the CPU...
    GPU (MPE and GPU ENABLED - Linear Color ON - as per default):
    This provides identical image quality/blending results as the CPU only benchmark. However, the fades are very abrupt, as per the original problem...
    GPU (MPE and GPU ENABLED - Linear Color OFF, as per your recommendation):
    This is your recommended solution. The fades are as smooth as they are in the CPU version. But as you can see the color, alpha and blending are VASTLY different. Actually, it looks HORRIBLE! The BG text is barely visible, and the foreground text appears to be more prevalent over the top of the back layer, making its fade-up quite disjointed and selective.
    ...So as you can see, the "solution" you provided seems to create more problems and/or inconsistencies in the overall output. Now we have no idea what is the "standard"!
    I personally find these inconsistency's very concerning. And I am sure I'm not the only one. Please tell me there is actually a logic to this "solution" and it wasn't a simple duct-tape fix that nobody there at Adobe actually looked deeper into to see exactly how it would effect overall image quality! It sure appears that way!
    I appreciate that you, Kevin, are not directly responsible for this issue, and you are indeed a representative trying to help. But please realize that for many of us here, we are LONG time Premiere users, with years of experience and influence in this industry, and this definitely isn't our first rodeo! When we flag these issues we do so out of a REAL need, which means the consequences Adobe faces as a result of not addressing these issues are equally as REAL! As such; I encourage you to expedite the process of resolving this issue, because it has been prevalent since CS5.5, and the fact that it is not been resolved and/or has been addressed poorly does not bode well for your overall reputation. Especially when you are trying to make Premiere the industry standard. Like I said, I would hate to have to look at alternatives, so give me a solution, because if I decide to move on from using Premiere, I won't be the last. And no, I am not being melodramatic here. If a piece of software cannot seem to get something as simple as fades and blend modes right (or at least CONSISTENT), how can the software be trusted to handle high-end workflows? Food for thought.
    Mat.

  • Re: Slow Speeds, Please stop us from severing our ...

    I currently live in a hamlet approx 3miles from the nearest town and according to Sam Knows.com, approx 4km from the nearest nominated BT Openreach exchange. My current provider Talktalk advise me that it is the length of my line that is the cause of the slow speed, and although fibre will be hitting the exchange in spring 2013, due to me being 4km away will be of no use as BT have chosen to leave copper to the doorstep in place!  My average speed is 0.68mbps (less than 1mb) but as stated in previous posts, I am paying full price as if I was receiving close to 24mbps, and I think this is unacceptable, as it is in nearly all other retail industries so why should ISP's be exempt?? Clearly Talktalk are not to blame, as after all, BT own the lines of most of the UK phones lines, and Talktalk just pay BT.  I have had email correspondance with openreach, and am told it is too expensive for any improvements to be made to the existing line as the population here is so little!  Here I see a multi billion profitable company turning their back on rural britain shame on them.  The old saying, Rome wasn't built in a day, but they got there eventually!  Cutting corners is not the way to go, sewer channels was the way to go according to previous company H20 but that crashed after just 4 years and only served Dundee & Bournemouth, although could of been successful as it is cheaper to lay fibre in that way vs digging up roads.  Sadly, I will soon be cancelling my landline/broadband service as I am fed up of buffering on Video-Audio streaming (even spotify!)
    I am led to believe that the goverment are meant to be funding some improvements, but I am sure broadband is bottom of the priority list! 

    Unfortunately the above posts are true, you allude too BDUK- http://www.culture.gov.uk/what_we_do/telecommunica​tions_and_online/7763.aspx .
     These projects are now being ratified (delayed) by the European Commission. http://www.thinkbroadband.com/news/5355-are-bduk-p​rojects-really-delayed-by-eu-state-aid-rules.html
    You might be interested in this scheme, I assume you reside in Devon http://www.connectingdevonandsomerset.co.uk/ .
    Also this http://www.broadband-notspot.org.uk/map/devon-broa​dband-notspot.html#8,50.724209,-3.71814,all,2  .
    Its hard to recommend other methods of obtaining broadband as you mention Video and buffering, as usage on other methods is no where near as generous as fixed lines, usage is where the meat is!
    Mortgage Advisor 2000-2008
    Green Energy Advisor 2008-2010
    Charity Health Care Provider Advisor 2010-
    I'm alright Jack....

  • PLEASE Stop iTunes From Stealing Focus

    This has been an ongoing issue almost since day 1. If you have a large music library, when you add it to iTunes, iTunes constantly steals focus while it's adding music. If you attempt to do anything else, 9 times out of 10, you end up aborting your music adds and have to start the import all over again.
    This has been going on as long as Ive used iTunes, its the reason I dont like using iTunes and it needs to be corrected.

    No idea what suggesting to let iTunes run and finish adding his music has to do with a "'tude" or being a punk, of which my repsonse was neither.
    For some reason, MadFlava has decided that since it takes "LITERALLY hours to import the music", he's not gonna do it.
    I don't know why he can't let iTunes finish adding the music, but as above, that's what I would suggest.
    Since he's been doing this since day 1, I suggest either let it finish or quit using iTunes.

  • HT1689 i have my daughters iphone 3, i want to use it as an i-pod, but it keeps receiving messages from some her friends is there a way to stop this from happening, please help, my phone is maxed out and would really like the storage for music, thanks

    i have my daughters iphone 3, i want to use it as an i-pod, but it keeps receiving messages from some her friends is there a way to stop this from happening, please help, my phone is maxed out and would really like the storage for music, thanks

    It sounds like it still has her information on it, so it might be efficient to navigate to Settings, then General, then Reset, then Erase All Content and Settings. You can then set up the phone again, using your information. This way the phone will be yours, officially, and her data and information will be removed.

  • How do I stop these horrible screensavers that I receive every view seconds from you on my desktop! Please stop them!!

    == Issue
    ==
    I have another kind of problem with Firefox
    == Description
    ==
    Please stop this horrible screen savers that I receive from firefox every fiew seconds. How do we stop them?
    <blockquote>removed your email address from the topic heading, we don't provide support via email - moderator -eh</blockquote>
    == when I subscribed and how do I unsubscribe it?
    ==
    == Troubleshooting information
    ==
    Please stop this horrible screen savers that I receive from firefox every fiew seconds. How do we stop them?
    == Firefox version
    ==
    3.6.6
    == Operating system
    ==
    Windows XP
    == User Agent
    ==
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6 ( .NET CLR 3.5.30729)
    == Plugins installed
    ==
    *-Adobe PDF Plug-In For Firefox and Netscape
    *Default Plug-in
    *The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
    *Shockwave Flash 10.0 r45
    *Picasa plugin
    *4.0.50524.0
    *Office Live Update v1.4
    *Windows Presentation Foundation (WPF) plug-in for Mozilla browsers
    *Google Update
    *Npdsplay dll
    *DRM Store Netscape Plugin
    *DRM Netscape Network Object

    Hello Anelda.
    It's possible that you are having a problem with some Firefox add-on 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?
    Whenever you have a problem with Firefox, whatever it is, you should make sure it's not caused by one (or more than one) of your installed add-ons, be it an extension, a theme or a plugin. To do that easily and cleanly, run Firefox in [http://support.mozilla.com/en-US/kb/Safe+Mode safe mode] (don't forget to select ''Disable all add-ons'' when you start safe mode). If the problem disappears, you know it's from an add-on. Disable them all in normal mode, and enable them one at a time until you find the source of the problem. See [http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes this article] for information about troubleshooting extensions and theme and [https://support.mozilla.com/en-US/kb/Troubleshooting+plugins this one] for plugins.
    If you need support for one of your add-ons, you'll have to contact its author.

  • How do I stop Safari from 'pinwheeling' whenever I am using Yahoo Mail? I really need a correct answer please.                                                                                             Mail? I need a correct answer please.

    How do I stop Safari from 'pinwheeling' whenever I try to use Yahoo Mail?
    I really need a correct answer please. Other answers have only suggested how to access Yahoo Mail without using Safari. I want to continue using Safari to access Yahoo Mail,if possible.  Thank you.

    Could be a cookie issue...
    Go to Safari > Preferences then select the Security tab then click Show Cookies
    Type yahoo in the serach field then click Remove All > Done
    Quit then relaunch Safari.
    Try accessing your Yahoo mail account.
    FYI... there is rarely a sure fire correct response for third party web based email client software. Often takes time consuming troubleshooting.

  • HT201493 How do I get my old apple ID/email from popping up and asking to verifie it's getting annoying? I've change everything to my new email an my old one keeps popping up please help me stop it from popping up all the time?

    How do I get my old apple ID/email from popping up and asking to verifie it's getting annoying? I've change everything to my new email an my old one keeps popping up please help me stop it from popping up all the time?

    Did you change the ID you are using for iCoud?  If so, did you delete the account, then sign back in with your new ID on your device?

  • Please,I want to stop users from visiting particular wensites while connected to the internet. How do I configure Firefox to automatically stop users from visiting such dangerous sites?

    Please,I want to stop users from visiting particular wensites while connected to the internet. How do I configure Firefox to automatically stop users from visiting such dangerous sites?

    Thanks, Ronda! I haven't been able to try your suggestion because I fried my router! So I need to get a new wireless router before proceeding.
    (I may start a new thread about getting a new router, but I will look for answers first to my questions and only start one if I cannot find answers.)
    After I get a new router, I will try what you suggested and report back here.

  • I recently used an external hard drive to back up photos etc from my mac, I didn't do a full system back up. Since then a finder window titled 'client node' keeps popping up every time i hit the spacebar. Can anyone help me please stop this happening?

    I recently used an external hard drive to back up photos etc from my mac, I didn't do a full system back up. Since then a finder window titled 'client node' keeps popping up every time i hit the spacebar. Can anyone help me please stop this happening?

    Click on it, choose Get Info from the File menu, and check the format.
    If it's formatted as NTFS, reformat it as MS-DOS, exFAT, or Mac OS Extended (Journaled) as desired, or install software such as Paragon NTFS on the computer.
    If it's formatted as FAT32 or exFAT, use the Disk Utility's Repair Disk command on it; this may also happen for a flash drive which is about to fail.
    If it's formatted as Mac OS Extended, click Authenticate and provide your administrator password, or change the permissions on that specific folder in its Get Info window.
    (109318)

  • How do i stop songs from repeating?  my music is on continuous replay of same song.  can't find anything in settings please help

    how do i stop songs from repeating?  my music is on continuous replay of same song.  can't find anything in settings please help

    Did you check the advanced song controls, it might be set to "repeat one song".

  • HT6413 Please stop charging  for iCloud from next month.

    Please stop charging for iCloud from next month.

    For details of downgrading please see:
    http://support.apple.com/kb/ht4874
    and scroll down to 'Downgrade your iCloud storage plan' for instructions for OSX, iOS, and Windows.

  • Adobe AIR Team - please stop trolling us and start fixing critical bugs.

    Hi there,
    i didn't intend to get offensive at anyone, but you at adobe give us, the developers and therefore your customers, not any choice.
    Please see these critical bugs which are filed almost 2 years ago:
    https://bugbase.adobe.com/index.cfm?event=bug&id=3496074
    https://bugbase.adobe.com/index.cfm?event=bug&id=3077653
    It is one example where you making us the fools and behave like a troll by telling us a "workaround" and close the ticket. Again.
    Giving us a workaround which affects the overall app experience and freezes the UI is not a solution to this problem. Why do you not care about stuff like that? File Operations are one of the most recent showstoppers to me in doing Adobe AIR Applications for iOS and you give me no chance but to search an alternate development platform. And I am not the only developer who is thinking like that.
    Please be more developer friendly and try to fix as many bugs as you can before thinking about new features which aren't really important to us.

    Hey , it's  adobe ..OK.  It's very very very  normal . Just  waiting ,just be  patient , we will fix it  several years  later ,because we have more bugs important than it.
    OK ,let me tell you  another funny thing.
    Refer to this article :  http://help.adobe.com/en_US/air/extensions/air_extensions.pdf  , Adobe  said in  page 49
    Resources on Android devices
    For the Android-ARM platform, put the resources in a subdirectory called res,relative to the directory containing the
    native code library. Populate the directory with resources as described at Providing Resources on
    developer.android.com. When ADT packages the ANE file, it puts the resources in the Android-ARM/res directory
    of the resulting ANE package.
    When accessing a resource from the extension’s Java native code library, use the getResourceID() method in the
    FREContext class. Do not access the resources using the standard Android resource ID mechanism. For more
    information on the getResourceID() method, see “Method details” on page 125.
    The method getResourceId() takes a String parameter that is the resource name. To avoid resource name conflicts
    between extensions in an application, provide a unique name for each resource file in an extension. For example, prefix
    the resource name with the extension ID, creating a resource name such as
    com.sample.ext.MyExtension.myImage1.png.
    SO ..I follow they says to do.  OK ,i got an  ANE  successfull .  Then  ,i  Add the  ANE into my mobile project . And Click  "release"  button(or  debug ).
    THat  is the  funny  thing .I actually got an error message:
    java.lang.Exception:
    aapt tool failed:invalid resource directory name: D:\LocalProfile\Localtemp\8d438362-8178-429a-858f-715c1e176235\res/values-sw600dp
    invalid resource directory name: D:\LocalProfile\Localtemp\8d438362-8178-429a-858f-715c1e176235\res/values-sw720dp-land
              at com.adobe.flexide.multiplatform.android.launching.ADBLaunchHandler.doPackage(ADBLaunchHan dler.java:454)
              at com.adobe.flexide.multiplatform.android.launching.ADBLaunchHandler.launch(ADBLaunchHandle r.java:350)
    I've test it on windows 7 32bit + FB4.7+AIR3.7 SDK ,and i  also asked my  friend test it  on  Mac OS + FB4.7+3.6SDK  ....cann't package APK too. but error message is diffrent .
    I wonder if anyone of adobe  actually fully tested what they said . But I spent a few days checking my approach. And i responsible for my words.
    I'm tired of reporting BUG.No matter what happens, i  tell myself ,"it's product by adobe".

  • When I plug in my iphone to my mac to charge/sync, iphoto always opens and takes a time to close. How do I stop iphoto from opening automatically please

    When I plug my iphone into my mac to charge/sync, iphoto always opens before itunes and takes a time to close. How can I stop iphoto from opening automatically please

    In iphoto go to preferences > general and al the bottom will be a drop down menu that will say connecting camera opens: just change this from iphoto to no application

  • Please make a permanent solution to stop applications from running in the background

    'multitasking' is not a very usefull invention and should have a permanent solution, to stop applications from running in the background instead of having to go in and exit them. the only thing that is usefull is to go in and click on next song under music, everything else running in the background can just be exited as far as im concerned, its not like i have 400 applications, and i have to go searching through my phone to find them

    Push twice on the Home button to display running apps. Press on one and hold until they wiggle. Tap on the circled red "x" to remove each from the background. Note that backgrounded apps are not actually running until you access them except for those that have been written to run concurrently such as Music, which can continue playing while you are using other apps.

Maybe you are looking for