Not closed after the thread.sleep call dialog box

Hello

I am display the dialog box and then call thread.sleep (5000), after I called two alerts more dialogue. The problem is when it displays the first dialogue onclick of the button ok its not be closed and its second dialog box open automatically. you have no idea.

Code example

try {}

Dialog.Alert ("HI");

business logic

}

catch

{

Thread.Sleep (3000);

Dialog.Alert ("Hello");

}

After the display "Hi", I'm not able to close this dialog box. I tried to put the Thread.sleep inside DMT invlodLater(), no luck

Any idea?

Not sure what you mean by there.

If you want to encode a thread. Sleep (), or waiting for a similar block of code, you must be on the thread of events.  And you can not do without starting another Thread.

Maybe this will help:

http://supportforums.BlackBerry.com/T5/Java-development/what-is-the-event-thread/Ta-p/446865

Tags: BlackBerry Developers

Similar Questions

  • U3.0 dynadock not resumed after the laptop sleep mode

    Hi all

    I am confronted with the problem that my Dynadock U3.0 does not resume if I fashion "sleep" on my cell Samsun.

    It works very well at the start, it works when I take a full stop, and I just checked it in Hibernate mode and it seems to work fine too.

    Can anyone help me please with this problem.

    _Other factors: _
    I'm running it on a USB 3.0 connection.
    I have this USB connection should remain in charge mode 'sleep'.
    Windows 7
    64 bit
    dynadock model: PA3927A-1PRP

    The only way to get after that 'sleep' mode call is to pull the power cord out the dynadock, wait, then reinsert it.

    Any advice would be welcome.

    Thank you for your help

    Hello

    I think that it s not Dynadock question but with the USB ports on your computer/laptop.

    The sleep or Hibernate mode affects devices attached to the Dynadock and not directly the Dynadock. If the computer/laptop wakes up fashion 'sleep', the Dynadock should be recognized automatically. In the case where the device does not recognize the Dynadock, there must be something wrong with the computer.

    By the way: you said the Dynadock is connected to USB 3.0.
    I recommend to go to a USB 2.0 port and test it again.

    Last but not least: make sure Dynadock uses the latest display driver that you can download from this page: http://www.displaylink.com/support/downloads.php

  • Satellite L855 - 14 p - USB ports do not work after the mode 'sleep'

    Heya guys,

    I have a strange problem today. The 2 USB inputs on the right side of the laptop (idk who is 2.0 or 3.0) does not work with the reason I can not perceive. These 2 guys are on different days, but in the same way. A month ago, I plugged the mouse USB wireless to one of them, then entered mode 'sleep'. When I came back, I discovered the work of mouse aint.

    Then I realized the port I plugged the key USB has no electiricity inside no more. I found it very strange and continuous without using the port of broken, until yesterday. Yesterday, I made the same mistake (a la mode "sleep" in a USB port plugged into the other port - work-) and I have re-opened, the 2nd port is broken in the same way, too. I've mastered Manager devices, regedit, but it has no use. This lead me to think his could be a hardware problem, but how can be possible? Is this a coincidence?

    Now, I have to use my 3rd and last port on the right side of the laptop with a USB duplicator.
    You have any ideas? Can it be a software problem?

    Understand this correctly? The USB ports mentioned don t work even after restarting a new laptop?

    In this case, it could be really a hardware problem
    But before talking about hardware problems, I recommend to recover the laptop using Toshiba recovery.

    Defining the notebook back to factory settings will help you identify the problem: If the USB ports wouldn't work, this s hardware problem.

  • T520 not resumed after the mode 'sleep'.

    Hello

    When I close the lid of the machine goes into mode 'sleep'. When I open it back it does not. This happened 2 days ago, and before that everything worked very well. I can hear the fans/hdd from when I open the cover, but the statys display dark and the power button flashes. No matter what I press it does not appear from the mode "Eve". I have to press and hold the power button to force the reboot the machine lose all my currently open applications and documents. Any suggestions on what could be the problem and a fix?

    Thank you!

    Thanks for your reply. I solved the problem, but I'm not exactly sure how. I think that it started after I used it on battery until what drain you completely. It was working fine before that. I have lots of update on the system since the Lenovo Update Manager, shut down the computer, took battery and AC and pressed the power button. All assembled again and booted up normally. Now everything works. I can close the lid causing the laptop to go to sleep and he took over when I open it. No more problems at startup.

  • DVD - ROM drive not detected after the mode 'sleep'

    I have a HP DVD1170, and it works very well after starting.  After putting my computer in mode 'sleep' and then he wake up, my computer took in not recognizing that there is even a connected DVD player.  He is a recent problem. I got Windows 7 since the beginning of November, and the problem only happened last week.  The drive works again after the restart, but it is not recognized if I put the computer in mode 'sleep' again.

    Hello Neohippie7319,

    Thank you for your message.  You can also click HERE and run the FixIt!  Please let us know if it did or did not help to solve your problem.
    See you soon

    Engineer Jason Microsoft Support answers visit our Microsoft answers feedback Forum and let us know what you think.

  • Bluetooth mouse does not work after the mode 'sleep'.

    My Logitech bluetooth mouse Mouse loses communication after coming out of sleep mode.  The mouse does not appear in the devices Panel and will not resync.  To retrieve it, I have to restart, and then remove the bluetooth devices control panel mouse and then add the device again.

    When installing Win7, he acknowledged the mouse without having to manually provide the drivers.  I checked the Logitech website, which doesn't have to download disponibilitepour drivers win7.

    The question is not limited to the mouse as a bluetooth speaker system has similar problems with sleep mode.

    Someone knows how to solve the problems of Eve Win7 bluetooth?

    John
    System: Computer laptop Dell M1330, mouse Logitech V470 bluetooth, Win7-64 Edition home premium

    For the mouse in the right mouse click Device Manager, select properties then power management and disable the setting allow turns off to save power.

    For other devices, check the equivalent power management settings.

  • Can not go to the bottom of a dialog box. Acrobat DC 2015 on Windows 10

    I use Acrobat DC 2015 on a laptop running Windows 10. I'm not able to see, or scroll to the bottom of the dialog boxes, for example the "Add Watermark" dialog box. There is no option to scroll (no scroll bar), or to resize or move the dialog box. Is this a known problem, and is there a resolution/workaround? Thank you.Capture.png

    Miriam, thank you, but the problem persists when you lower the resolution.

    The setting of maximum recommended resolution on this laptop is 1280 x 720, and a message/alert appears in the dialog box of resolution screen that 'your resolution is less than 1024 x 720' Some elements could not fit and apps could not open. "So, I wonder if this is the cause of the problem.

    I check into getting a 2nd monitor connected to see if that will help solve the problem.

  • HP Envy laptop - 15-ae011na: HP Envy - keyboard and Trackpad not working after the mode 'sleep'.

    HP Envy laptop - 15-ae011na

    I have this laptop for only 1 week, he did various updates. I guess that's from Windows 8 to 8.1. He also completed an update of the BIOS with HP Support Assistant.

    Question: When the awakening of my laptop mode 'sleep', my trackpad and keyboard do not work, I have unlock my PC using HP Simple pass, then press the power button to restart the machine.

    Troubleshooting: I followed some advice for troubleshooting on the support page which lead me to uninstall the keyboard driver then restart my machine. I have all the latest drivers aswell.

    Someone has an idea what might be causing the problem? Ideally, I'd like to do a restore or upgrade of Windows 10 immediately.

    Thank you.

    Looks like this has been caused some my driver problem with Windows 8.1 and I guess that's with HP SimplePass such that it would not recognize the keyboard and the trackpad after waking up to use it.

    I have upgraded to Windows 10 that looks like a solved the problem.

  • Satellite U940: Keyboard backlight does not work after the mode 'sleep'

    I have to restart the computer when it comes out of sleep!
    One day old PC. Not happy!

    Any tips?

    FN - Z does nothing.

    Can you please tell us which model of laptop you have exactly?
    Are you using the original pre-installed OS that you got with it?

  • Satellite U840W-10J - WiFi does not work after the mode 'sleep' - Win 8.1

    Ladies and gentlemen,

    I bought a Satellite U840W-10 days; PSU5XE on Windows 8 was preinstalled. I've updated to Windows 8.1.

    My wifi works until the laptop goes to sleep once, then it does not any longer and I have to restart as it cannot connect to the Internet again once.

    I use a VPN as well.

    I've already updated the wlan Driver and many other drivers as well but nothing helps.

    Thank you for helping me
    123XYZ

    Try this:
    (a) press the Windows key + X, select Device Manager.
    (b) right click on network adapters.
    (c) click on properties and select the power management tab.
    (d) uncheck the box allow the computer to turn off this device to save power.

    Finally restart the system

  • Vista 32 bit does not start after the mode 'sleep'

    I have Vista Ultimate 32 bit SP2.  I put the computer in standby mode and the next day morning tapped the keyboard space bar to wake him up.  I have a Logitech G15 game keyboard with an LCD display, it began to rise, then I noticed all the keyboard lights were flickering.  The system never started and the screen remains black.  I took the cover off my PC and noticed that fans have been "forced" for about 1 second then remains off for a period of about 5-7 seconds before the pulse on once again.  This is repeated.  I pressed on the power switch for the computer for 20 seconds, without result.  I disabled the power supply directly for about 20 seconds, he turned back and have the same pulse.  Then I unplugged the power cord to supply POWER, same year, same net effect.  I've checked all my connections, etc., everything is in order.  I got an iPod touch connected to the computer via the USB port before sleep.  But I perfrmed this function several times one never had a problem.  I of course got the thing first USB when I started my problem.  I guess it's one thing to the BONE, but what's my line?  Thanks much for any help!

    A little late on the answer, but he had nothing to do with food. I was able to solve the problem by turning off the computer, unplug and burst the battery from the motherboard, let it rest a bit, then put it back together and bam, I'm back in business. I think it's a problem between the motherboard BIOS and Hibernate commands put off by * Vista and the only way to stop the loop is the above afformentioned. Everyone always wants to blame the food for these issues... Now PS can cause really strange but common problems...

  • Black screen HP Elitebook 850 after the mode 'sleep'

    Hello

    I have a HP Elitebook 850, which is about 3 weeks old. It is running Windows 8.1 with most of the HP software, which is available for this model, installed.

    Once the laptop goes into mode 'sleep' may not wake up for some reason any. The screen remains black and seeing everything seems normal. The only thing to do is either ctr + alt + delete to restart or shutdown forced by using the power button.

    Any ideas?

    Best regards

    Has exactly the same problem.  Called HP support.  They said that I needed to downgrade the video driver I was using.

    Specifically they asked me to check the version of the video driver first:

    1. Start screen, type "Device Manager" and then click to open Device Manager.
    2. In Device Manager, expand "graphics cards".  There were two shown:
      Radeon (TM) AMD HD 8500/8700 M M
      Intel(r) HD Graphics Family
    3. They asked me to double click on the graphics card Intel.  The dialog box properties open;
    4. On the tab driver properties dialog box, check the Version of the driver.  Mine was 10.18.10.3379.

    HP support and then asked me to download an older version of the driver, 10.18.10.3316.  Here's how:

    (1) on the laptop in question go to hp.com;

    (2) in the Help menu of hp.com, click Download drivers;

    (3) search by product: Enter 'Elitebook 850 G1' and press Go.

    (4) multiple results will come to the top, select the one that says 'HP EliteBook 850 G1 Base model Notebook PC';

    (5) to select the operating system: "Windows 8.1 (64-bit);

    (6) from the Index to download, select 'drivers - Graphics ';

    (7) tΘlΘcharger "Driver Intel video and control panel (International)" version 10.18.10.3316, November 15, 2013.  It's a big download, 158 MB.

    Once the download is complete, double-click the downloaded file to install it.  If you get a dialog box warning you install an earlier version of the driver that is currently installed, click Yes to continue.

    After you have installed the version 10.18.10.3316 driver, I restarted the laptop.

    To test whether the fix had worked I open a text editor and entered the text without saving it (it was to see if the unsaved document would still exist after that the laptop computer woke up from his sleep).  I then put the laptop to sleep by closing the form.  When I opened it again the light behind the power button has been slowly pulsed on and outside and the screen was black.  Based on the presented power button the laptop out of fashion 'sleep' and return to the lock for recording screen in.  Once connected, I found that the unsaved document was still open for the laptop had obviously just slept and rather than restarted rewoken.

    I hope this helps.

  • keyboard & mouse freeze after the mode 'sleep', using Windows Vista 64 home premium

    keyboard & mouse freeze after the mode "sleep", using Windows Vista 64 home premium.  I received once posted this question, an answer of "fix" to a thread that has worked.  Unfortunately, I deleted the thread. I swapped the USB connectors for mouse and keyboard, but that didn't change anything.  Could someone please re - send the wire?  I promise you that I'm deleting it this time.

    Thank you very much

    E-mail address is removed from the privacy *.

    Hi RICH0214,

    Follow these methods.

    Method 1: Follow the steps in the article.

    Device Manager does not display devices that are not connected to the Windows XP-based computer

    http://support.Microsoft.com/kb/315539 (applies to Windows Vista)

    Method 2: Scan the file system (CFS) auditor to repair corrupted files.

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7

    http://support.Microsoft.com/kb/929833

    Method 3: Create a new user account.

    Create a user account

    http://Windows.Microsoft.com/en-us/Windows-Vista/create-a-user-account

    If the problem is resolved in a new user account, and then follow the article on how to fix a corrupted user account.

    Difficulty of a corrupted user profile

    http://Windows.Microsoft.com/en-us/Windows-Vista/fix-a-corrupted-user-profile

  • Samsung Slate PC record not in after the last update

    Hello

    I have a Samsung Slate 700 t PC running windows 7.

    Since the November update, I can not connect.  The screen flashes just before he gets to the login screen.

    I understand that this could be a problem with KB3097877.

    I tried to start in safe mode and safe mode with command prompt. When it gets to the login screen, I touch the icon of connection and loading, it waits a bit then returns to the login screen.

    I did a little research and press f8 for advanced boot menu it was suggested.  Except that it's a touchscreen pc and the wireless keyboard works until I get into windows.

    I've reached the limit of my minimal knowledge and I'm stuck.  Any help would be accepted with gratitude.

    Thank you

    Mel

    Hello

    Yes, you just think the root cause of your issue might be KB3097877. However, your efforts to resolve the issue is highly appreciated.

    If you are unable to start the computer in safe mode, then I suggest you to consult the below thread and see if it helps you to solve the problem.

    Screen flickering and problems log on Windows 7 after installation of updates

    If the problem persists, I suggest that you want to run auto repair with installation media and see if it helps you repair system files or not. For the execution of the task, I suggest you to try the steps below and see if it helps.

    Method 1

    When you use the recovery environment (Windows RE) to troubleshoot startup issues, first try the Startup Repair option in the System Recovery Options dialog box. If this does not resolve the problem, or if you have additional problems manually, use the Bootrec.exe tool.

    Because you cannot start the computer, you may need to create a bootable Windows installation media, and then do an auto repair, and if this does not help then you try to restore your computer to the previous date.

    Note: When you use system restore to restore the computer to a previous state, the programs and updates that you have installed are removed.

    If you are using Windows 7 then the link provided below might help you to download and create installation media.

    Download Windows 7 Disk Images (ISO files)

    Method 2

    If the problem persists, try to rebuild the BCD by using the Bootrec.exe tool. To run the Bootrec.exe tool, you must start the recovery Windows (WINRE) environment . To do this, follow these steps:

    1. Place the Windows 7 installation disc in the disc drive, and then start the computer.
    2. Press a key when you are prompted. Select a language, a time, a currency, a keyboard or an input method, and then click Next.
    3. Click repair your computer.
    4. Click the operating system you want to repair, and then click Next.
    5. In the System Recovery Options dialog box, click command prompt.
    6. Type Bootrec.exe, and then press ENTER.

    See the following link for more information:

    How to use the Bootrec.exe tool in the Windows recovery environment to troubleshoot and repair startup issues in Windows

    http://support.Microsoft.com/kb/927392

    Method 3

    If after performing the above steps, you are able to start the computer and access the desktop then try to Uninstall KB3097877 update if it is installed, and then reinstall it.

    Hope it would help. If problem persists always post back with the current state of your computer and the result of the proposed suggestion, we will be happy to help you.

    Kind regards

  • APEX 5.0 after you close a modal dialog box, I want to introduce the parent page, without losing session values

    I have a parent page that triggers a modal dialog box in APEX 5.0. When the user confirms in the dialog box, it closes the dialog box by using the process of dialogue.

    In the parent page, if I do not have a dynamic action "Dialog box closed", the user returned to page with the values, they recently came again here. If I add a closed action dialog box to send the page, the values are lost - it's as if the page refreshes before submitting. Someone knows how to solve this problem.

    Thank you.

    user3282753 wrote:

    Please update your forum profile with a recognizable username instead of "user3282753": Video tutorial how to change username available

    Also, is it possible to display the success message from the Page of the dialog box without updating the parent page.

    See Roels Blog: display a success message after you close a modal dialog box

Maybe you are looking for

  • "How to stop this message"do you want to install the plugin required to view media on this page.

    How to stop this message "do you want to install the plugin required to view media on this page. I don't need the plugin to play the video ok

  • a backup iPhoto problem

    Well, I'll give up iPhoto soon, but we come a long way and I used it a lot this past year. So before making big summer travel, I want to make a copy of remote backup of photos from last year, and that's the problem. Usually what I would do is to save

  • Screen saver computer name on the logon screen

    Is it possible to get the name of the computer screen saver to display the clock on the login screen?

  • Satellite A70 new battery does not charge

    I finally bought a replacement battery for my very old laptop as the original accompanying made his life after 5 years of good and loyal service. Anyway, the strange thing is when I put the new battery with my laptop is off the battery on the front i

  • Issue of calendar widget

    I would like to have a display full my calendar page. When I used the calendar widget, all I get is a thumbnail. Is there a way to make the calendar view it is view month on a full page without having to open the thumbnail each time? Thanks in advanc