Process runs, but app window does not display

Page 1 of 2 12 LastLast

  1. Posts : 3
    Windows
       #1

    Process runs, but app window does not display


    (First, sorry, I am very new to version 7)

    I have an application that has worked pretty well on all previous versions of Windows, but now have a user on Windows 7 that is reporting the following behavior. I dont know if this is 7 issue or not, as the app is running on 7 systems also, tho not very many.

    When they launch the program by doubleclicking the icon, an expected pop-up message appears (pertaining to software registration), and then instead of the main program window appearing, nothing does. But there is an icon for the program on the taskbar (clicking does nothing) and the process is running in the task list.

    Internally, before the main program shows its form, it calls a registration DLL to check that out (hence the pop-up), and then continues with its start-up sequence.

    Is there some situation peculiar to 7 that might be blocking the program from starting correctly?
      My Computer


  2. Posts : 28,845
    Win 8 Release candidate 8400
       #2

    tmqrichard said:
    (First, sorry, I am very new to version 7)

    I have an application that has worked pretty well on all previous versions of Windows, but now have a user on Windows 7 that is reporting the following behavior. I dont know if this is 7 issue or not, as the app is running on 7 systems also, tho not very many.

    When they launch the program by doubleclicking the icon, an expected pop-up message appears (pertaining to software registration), and then instead of the main program window appearing, nothing does. But there is an icon for the program on the taskbar (clicking does nothing) and the process is running in the task list.

    Internally, before the main program shows its form, it calls a registration DLL to check that out (hence the pop-up), and then continues with its start-up sequence.

    Is there some situation peculiar to 7 that might be blocking the program from starting correctly?
    Win 7 does have some additional security measures. We could tell you more if we knew something about the app.

    win 7 has UAC (user account control) it may be interfering

    Your app may need to be run (or installed) in compatibility mode.
    (right click the installer>properties>compatibility>pick correct OS)

    Let us know if you need help

    Ken
      My Computer


  3. Posts : 5,092
    Windows 7 32 bit
       #3

    Is the registration dll put in System32 folder by any chance? On 64 bit Vista and W7 the 64 bit stuff is in System32 and the 32 bit stuff is in SysWow64.

    If your installer manually tries to copy a 32 bit dll to System32 I'm not sure what happens, but it's not likely to work correctly.

    If your installer is 64 bit aware then it's likely not the issue.
      My Computer


  4. Posts : 3
    Windows
    Thread Starter
       #4

    Miles: No, the registration dll goes in Program Files with the other distributables.
    Ken: The support person on the other end seems to favor a permissions issue, so we might try disabling UAC tomorrow. I've tried Compatibility mode (on my laptop, which has 7); the program doesn't seem to need it.

    The first time the App runs, it hopes to copy a bunch of option files (text) from the distrib area into the users personal folder under the program name etc. I think that is taking place w/o problem, (ie we can make the folder, copy the files, etc) but I need to check it more carefully. Certainly we are not getting any UAC pop-ups.
      My Computer


  5. Posts : 5,092
    Windows 7 32 bit
       #5

    I'm just curious. Have you run it Ok on Vista? The biggest difference, other than drivers and all that, from XP to Vista/W7 is the composition and way graphics is handled. I haven't gotten into it that much myself. I just write small utilities. But the Aero/Composition/Glass stuff sometimes can raise havoc with apps that run fine in XP. Just a thought. :)
      My Computer


  6. Posts : 3
    Windows
    Thread Starter
       #6

    Yes. No problems in Vista.
      My Computer


  7. Posts : 5,092
    Windows 7 32 bit
       #7

    Seems like a weirdie. The dude doesn't have a dongle on his machine by any chance? There's got to be something bizarre he's not telling you. :)
      My Computer


  8. Posts : 2
    Windows 7 Home Premium 32 bits
       #8

    Hello,

    I have a similar problem. My app is launched from another, also written by me. When launched from this other application, the main window is not displayed. When directly launched, it is executing without any problem.

    This application is running without any problem on both Windows Vista and XP

    Did you find something to solve your problem ?

    Best Regards,
    Brice
      My Computer


  9. Posts : 2
    Windows 7 Professional 32bit
       #9

    Like the original poster, my application runs, i.e. shows up on task bar, in task manager, and even writes a log file - but the GUI does not display.

    But even stranger, it had been working fine on Windows 7 until suddenly the GUI stopped displaying on one user's computer.

    And even stranger still... if I copy the executable to a different directory on the same computer and run it from there, it works fine, GUI displays, everything.

    As far as I know, there have been no changes to the setup of the computer in question.

    Any ideas would be very much appreciated.

    Thanks!
    Harry
      My Computer


  10. Posts : 2
    Windows 7 Home Premium 32 bits
       #10

    Hello HarryO,

    I finally found the origin of my problem. The answer is described there:
    wxWidgets Discussion Forum :: View topic - wxMSW : main frame not displayed

    This problem is not specific to wxWidgets. In fact, in my case, it depended the way the process is launched. It was launched from another application, and this application was launching my main app with hide parameters (I don't remember the name of this parameter, but you can find it on MSDN).

    On nearly all computers, this had no effect. And, when the main app was requesting to go in full-screen, this flag was overriden. But, sometimes, on Win-7, the strange behaviour descibed above happend.

    I simply changed the parameters of the app laucnhing my main app and this now works fine.

    I hope this will help you

    BR,
    Brice
      My Computer


 
Page 1 of 2 12 LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 14:15.
Find Us