Dialog box display won't update after screen blank or being moved

I have a modeless dialog box used for status display by a plugin I wrote for Acrobat. Everything works fine until the screen blanks or the user moves the dialog box on the screen, at which point no further updates to the dialog box are displayed. My plugin consumes 100% of CPU for long periods of time so the program can appear dead without this display being updated, but nothing I have tried seems to make any difference. The dialog box is generated with ADM and things I have tried include calling "Update" on the dialog box at regular intervals, the windows "Sleep" function to yield the CPU periodically, and a host of similar tactics.
I'm guessing all the code will get run together once I click submit, but here is how I create the diaglog box (it was working fine without the "WinAppRegisterModelessDialog", but I saw a reference to it elsewhere and tried it to see if it would help, not sure if it actually serves any useful purpose):
statWin = sADMDialog->Create(inPluginRef, DIALOG_ID, IDB_DIALOG1, kADMModalDialogStyle, NULL, NULL, 0);
WinAppRegisterModelessDialog((HWND)sADMDialog->GetWindowRef(statWin));
infoBox = sADMDialog->CreateItem(statWin, 5, kADMTextStaticType, &coords, NULL, NULL, 0);
// Status header
coords.top = coords.bottom + 10;
coords.bottom = coords.top + 12;
statHeader = sADMDialog->CreateItem(statWin, kADMUniqueItemID, kADMTextStaticType, &coords, NULL, NULL, 0);
// Status line
coords.top = coords.bottom + 10;
coords.bottom = coords.top + 12;
statLine = sADMDialog->CreateItem(statWin, kADMUniqueItemID, kADMTextStaticType, &coords, NULL, NULL, 0);
// Progress bar
coords.top = coords.bottom + 10;
coords.bottom = coords.top + 15;
progress = sADMDialog->CreateItem(statWin, kADMUniqueItemID, kADMProgressBarType, &coords, NULL, NULL, 0);
sADMItem->SetMinIntValue(progress, 0);
sADMItem->SetMaxIntValue(progress, totalPages);
// Set window size, and other attributes
sADMDialog->Size(statWin, coords.right + BORDER, coords.bottom + BORDER);
sADMDialog->SetText(statWin, PROD_NAME " - Progress");
// Set header for status line
sADMItem->SetText(statHeader, " Page # % Complete Estimated Time remaining");
// Initialize progress bar
sADMItem->Update(progress);
Updates are currently performed with the following code segment. The last two lines are my attempts to get the display to update once the screen blanks:
// show it
sADMItem->SetText(statLine, textBuf);
// Update progress bar
sADMItem->SetIntValue(progress, pagesCompleted);
// Force display update/refresh
sADMDialog->Update(statWin);
// Yield for display update (in case of screen blank or user changes)
Sleep((DWORD)100);
Everything works fine until the window is moved or screen blanking occurs, after that nothing seems to work, all updates to the box cease to be displayed. Any suggestions?

OK guys here's an update. First I went to BIOS and updated the initial display setting to "LCD panel only" from "Auto". At first I thought it helped, because when I worked at the laptop without the external screen attached, the internal LCD panel resumed normally from off (previously this didn't work).
But today while I was in the office with my external 19" LCD screen attached, and both of them went off after being idle for 10 minutes, the internal LCD panel didn't resume again. So I've tried the Fn + F5 key combination to switch between modes, and I switched from dualview back to single. The internal LCD panel blinked for a second and then turned off immediately, and from that moment on, I was without picture on both of them. SO I ended up hibernating and resuming again. :( An important note - as soon as the computer began hibernating, the LCD went on and I could see the whole progress of hibernation before it turned off.
Also another note - when I'm in dualview, I always have keep the internal LCD panel as the primary screen. So unfortunately, when it doesn't resume, I don't have access to the taskbar etc to try more things...
Any more thoughts?
Thanks again!
Rado

Similar Messages

  • Display won't sleep and screen saver won't sart

    I upgraded to the new OS and the display won't sleep and screen saver won't come on. Help please.

    Long shot.
    Do a backup.
    Quit the application.
    In Finder hold down the option/alt key while selecting the Go menu item. Select Library. Then go to Preferences/com.apple.systempreferences.plist. Move the .plist to your desktop.
    Restart the computer, open the application and test. If it works okay, delete the plist from the desktop.
    If the application is the same, return the .plist to where you got it from, overwriting the newer ones.
    If you want to make your user library permanently visible, run the below command in Applications/Utilities/Terminal.
    chflags nohidden ~/Library/
    You will need to do that after any updates.

  • Display won't sleep after being in suspend once.

    When rebooting the computer, the display sleeps after set interval and can manually be put to sleep using shift+ctrl+eject.
    However if the computer goes to sleep or I myself close the lid to make it sleep, the display won't sleep again.
    The display won't sleep after set interval in power settings and when I press shift+ctrl+eject the keyboard backlit turns off but the screen stays on.
    The only way to make it sleep is to close the lid.
    I have tried resetting SMC and NVRAM but to no avail.
    I have the first generation aluminium macbook.
    Does anyone else have this problem?
    I have had this problem both in 10.6 and 10.8
    Regards Robin Hansson

    When rebooting the computer, the display sleeps after set interval and can manually be put to sleep using shift+ctrl+eject.
    However if the computer goes to sleep or I myself close the lid to make it sleep, the display won't sleep again.
    The display won't sleep after set interval in power settings and when I press shift+ctrl+eject the keyboard backlit turns off but the screen stays on.
    The only way to make it sleep is to close the lid.
    I have tried resetting SMC and NVRAM but to no avail.
    I have the first generation aluminium macbook.
    Does anyone else have this problem?
    I have had this problem both in 10.6 and 10.8
    Regards Robin Hansson

  • My apps won't update after installing IOS 6.0.1. They get stuck. What's wrong?

    Apps won't update after installing IOS 6.0.1. They get stuck. What's wrong?

    You may of had a corrupted install. Connect to iTunes backup then restore. Or update the apps on itunes then sync to the iPhone

  • ITunes keeps popping up a dialog box that says "An update to the carrier settings for your iPhone is available. Would you like to download it?" What is this?

    iTunes keeps popping up a dialog box that says "An update to the carrier settings for your iPhone is available. Would you like to download it?" What is this? When I click on the "Learn More" button in the dialog box it takes me to a generic iTunes support page that has no relevance to carrier settings.

    I got this three times within the last 4 hours and have been getting it almost every day since I use my new iPhone 6 - over a week now. This happens almost every time I connect the phone to my MacBook Pro, although every time I confirm and it indicates successful update.
    It is highly unlikely that my carrier updates settings on daily basis or three times a day. It is almost surely a bug in the Apple system and anything but a timely and effective solution is unacceptable.
    For debugging information, I recovered a backup from my former iPhone 5 onto the new one, using the same carrier and SIM.

  • Import dialog box displaying off screen

    When I'm in the office, I work in a dual-monitor environment.
    However, when working at home, I have only my laptop monitor.
    If I need to import something - html file, template file,
    etc. - the dialog box is displaying off screen.
    I've shut down and restarted, but still the same result. When
    I try to resize the RH window, it resizes off screen.
    My display properties indicate only one monitor.
    How to fix?
    Thanks!
    Cindy

    Hi Cindy
    Sounds like you need some multiple monitor managing software.
    Try these:
    MultiMon (Free)
    click here
    UltraMon (Paid)
    click here
    Other than that, you can try flying blind and navigating
    using the keyboard or maybe bump your resolution to the highest
    possible setting and perhaps that will bring the dialog either
    partially or totally into view.
    Cheers... Rick

  • R&R 4.10 no Password dialog box displayed when recovering a Backup

    Hello all,
    I am using a T61 8898-6dg with XP and r&r 4.10.314
    After reinstalling the system from a XP CD I tried to reinstall an R&R backup from a network share.
    R&r starts well showed me the backup files and all the files included in the backup. So I was able to select the files I want to recover and the recovery process starts.
    Because the backup is secured by a password, a dialog box should appear and asking for the password. But now, r&r stops and nothing happens. I think it is waiting for the password. But I cannot see an dialog box for entering a password. Even pressing the Alt and Tab keys to bring the dialog box to the foreground don’t help.
    In the rr.log file, I found the following entry:
    Sat May 10 12:27:36 2008 RescueRecovery: Running: C:\Programme\Gemeinsame Dateien\Lenovo\mnd\mapdrv.exe *
    Sat May 10 12:27:42 2008 RescueRecovery: No user found to display dialog '2', waiting...
    The same problem I have with r&r 4.20
    Any hint what I can do to be able to enter the password?
    many thanks in advance
    Juergen
    Stuttgart/Germany

    when the magic mouse is not connected it seems to work fine, I usually click the trackpad and the system prompts me for a password - I enter my password and go back to work.
    However every time the problem has occurred I have left the computer with the magic mouse connected, when I return I move the magic mouse, the screensaver stops "moving" but I don't see the prompt for my password, it's almost as if the password dialog is behind the screen saver.
    Hope this helps...

  • I have been getting a popup dialog box asking me to update flash player, but I don't know if I should trust it, as the exe file name is "tmp4E11.exe".

    Hi Team,
    I am only sending you an email as I am unable to find the answer to this question anywhere on your web site.
    Just started within the past half an hour, I have been getting an update Flash Player dialog box popping up on my desktop, saying to update now or later or not at all, but I don't recognize it as the standard type of update dialog box that is sent by Adobe.  The file name that is being used to click on for the update is "tmp4E11.exe:, is this a genuine Adobe update.  I just can't stop this dialog box from popping up every ten seconds.  HELP please.
    Thanks.

    Hi,
    if it's popping up every 10 seconds or so it's not official Flash Player update as ours does not display that often.  Can you post a screenshot of it, How to post a screenshot in the forum.
    Maria

  • Labview pauses when dialog box displayed

    When I display a dialog box in LabView, the program waits for the user to click ok. I would like for the program to not wait but keep running after it displays the box. How can I do this and how can I customize the dialog box?

    You drop an Invoke Node from the Application palette onto the block diagram, wire up a reference to the subVI, right click the invoke node and select the method. There's an example here that shows how an invoke node is used to make a front panel visible. There are other examples on the developer zone and several have been posted to this forum. You question seems to pop up once week or so and a little searching of the forum will give you a lot of examples.

  • Attempting to exit a tab in any fashion, the page puts up a dialog box and won't exit.

    When attempting to exit a tabbed page by any means, the page puts up a dialog box that occupies a vertical strip of the entire computer screen. It has a question mark and says "Are you sure you want to navigate away from this page?
    PRESS ESCAPE OR CLOSE THIS ALERT"
    When you press escape or close the alert, the dialog box goes away, but you don't exit the page.
    I suspect a malefactor has somehow captured the page and modified its behavior, so I doubt the reported URL will help.
    I need to find some foolproof way to close the tab.
    Thank you,
    John
    and won't exit.

    try clicking EDIT, on the upper ribbon of your firefox browser, then on the bottom click PREFERENCES, then on the top select the PRIVACY tab. On the right hand side under history there's a couple of buttons that say EXCEPTIONS and show cookies, select EXCEPTIONS and click on the website that is preventing you from closing the tab. Then on the bottom click REMOVE SITE. you can also remove cookies this way. Restart your computer and it should be normal. This worked for me, I hope it works for you!
    oh yeah by the way when you click the PRIVACY tab, make sure the "Firefox will: use custom settings for history" option is selected.

  • G4 AGP Graphics - 2nd display won't work after upgrading from os 10.2

    I have a desktop G4 AGP Graphics with two displays. When I was running os 9-10.2, the second display worked fine, but after upgrading the os (now running 10.4), the second display still works, but has turned gray and pixelated.
    When I take a screen shot, the picture shows that both displays appear clear (and in color).
    Am I missing something? Thanks in advance for any suggestions

    so do you have 2 different video cards driving two different monitors? or is it One video card with 2 displays?
    the info you listed isnt very detailed but it does tell me you got an ATI video card with 16MB VRAM.
    I assume that thats the Stock AGP 2x graphics card that came the The PowerMac G4 AGP graphics model.
    why is your display set to 8bit depth? a stock 2x AGP card with 16MB VRAM should be able to support 16bit or 24bit depth even at 1024 x 768 res.
    the info says also Core image not support as well as Quartz Extreme no supported. Which is significant because it could be why the 2nd Monitor doesnt display properly with Tiger.
    under 10.2 there were less stringent requirements for driving video.
    OSX 10.4 Tiger is much more advanced OS and has higher graphics cards requirements now.
    I could be wrong, but I think you may need a newer video card that supports Quartz Extreme and Core image.
    hopefully someone else will run by this topic and offer some insight aside from my own.

  • Email won't update after ios6 update

    Since I did the iOS6 update, my iphone 4s won't update my emails.  Has anyone else been having this problem?

    Things are working again!!!
    Nataliala, did you delete them completle or shut them off?
    Early this morning three of the four accounts started working again.  I tried deleting the one account that wasn't working eariled and adding it back in but nothing. 
    I just tried shutting off all four accounts without deleting them and restarted the iPad.  after it was up and running I reactivated the four accounts and everythings working.  Hope it stays working!!!

  • Apps won't update after 8.0.2 update

    After experiencing some of the issues reported elsewhere regarding the 8.0.2 update for iPad 2, I was finally able to get it to update via iTunes.  However, now my apps won't update on the iPad 2.  They start to update and then freeze at the start. 

    I too am having some of these problems as well.
    The App Store has now become "unavailable" and two other apps are unable to communicate with their respective networks (in South Korea). Safari has become unresponsive ("Safari could not open the page because the server stopped responding").  The Dolphin browser has also just become unresponsive after having worked for several days!
    The UI has become periodically sluggish in scrolling and zooming.
    I have no music or video on this iPad either and it is not broken.  I updated from 7 to 8.1, thinking any bugs would be squashed but this is clearly not the case.
    Would resetting this device help or would that simply make matters worse? This situation is really bad.  If I can not use my iPad for work, I will be forced to buy and use a Samsung notebook tablet, which I never wanted but I need something that is reliable and this is not.

  • Firefox download dialog box - display program list in combobox

    Ever since the re installation of my OS, whenever I wanted to open a file I always had the option to choose witch program to use from a combobox in the download file dialog box (which was OK, since I use multiple programs for the same file type). But after using Firefox for a month or so it suddenly changed and now instead of the combobox i have the "browse" button. How can I set Firefox to use the combobox again?

    Select one of them, or do a search for the program you want. Then
    select it. Then say what you get. Note that later, you should be able to
    select another program thru the '''Browse''' button if you want to
    change what you are using. Also, '''Do Not''' use the
    '''Do This Automatically''' option. That will lock in the setting.
    While it can be unset, it is hard to do.

  • Compressor 4 insert DVD dialog box does not come up after rendering

    Does anyone know what I might be doing wrong when after rendering a DVD project, the process looks like its finished rendering but the insert DVD dialog box never comes up. 
    Very frustrating, but probably something dumb...
    Thanks

    Everything looks good in the Batch Window.
    I'm guessing permissions or preferences, assuming it's not hardware.
    Run Compressor Repair to flush things out…make sure the Trash Preferences box is checked.
    Run Disk Utlity, select your boot drive and Repair Permissions.
    If that doesn't do it, in Job Action, change output device to Hard Drive and se whether it will make a disk image.
    Good luck.
    Russ

Maybe you are looking for