Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Process runs, but app window does not display


16 Jun 2010   #1

Windows
 
 
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 System SpecsSystem Spec
.

16 Jun 2010   #2

Win 8 Release candidate 8400
 
 

Quote   Quote: Originally Posted by tmqrichard View Post
(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 System SpecsSystem Spec
16 Jun 2010   #3

Windows 7 32 bit
 
 

Is the registration dll put in System32 folder by any chance? On 64 bit Vista and Windows 7 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 System SpecsSystem Spec
.


16 Jun 2010   #4

Windows
 
 

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 System SpecsSystem Spec
18 Jun 2010   #5

Windows 7 32 bit
 
 

I'm just curious. Have you run it Ok on Vista? The biggest difference, other than drivers and all that, from XP to Vista/Windows 7 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 System SpecsSystem Spec
21 Jun 2010   #6

Windows
 
 

Yes. No problems in Vista.
My System SpecsSystem Spec
22 Jun 2010   #7

Windows 7 32 bit
 
 

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 System SpecsSystem Spec
07 Sep 2010   #8

Windows 7 Home Premium 32 bits
 
 

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 System SpecsSystem Spec
26 Oct 2010   #9

Windows 7 Professional 32bit
 
 

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 System SpecsSystem Spec
27 Oct 2010   #10

Windows 7 Home Premium 32 bits
 
 

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 System SpecsSystem Spec
Reply

 Process runs, but app window does not display




Thread Tools



Similar help and support threads for2: Process runs, but app window does not display
Thread Forum
Solved Windows Stopped Responding+The logon process was unable to display... BSOD Help and Support
Solved Office Runs through the configuration process every time I launch it Microsoft Office
Window 7 display problems Graphic Cards
window host process? General Discussion
BG Process keeps taking over and bumping me out of my active window General Discussion
Solved Make 'close window' button kill the process? General Discussion
Did Process For Changing Window Colors Change? Customization

Our Sites

Site Links

About Us

Find 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 02:44 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33