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
tmqrichard

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
zigzag3143

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
MilesAhead

Windows 7 32 bit
 
 

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

16 Jun 2010   #4
tmqrichard

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
MilesAhead

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/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 System SpecsSystem Spec
21 Jun 2010   #6
tmqrichard

Windows
 
 

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

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
brice

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
HarryO

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
brice

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
Thread Forum
Windows Stopped Responding+The logon process was unable to display...
I've done some reading about these two issues , and I have tried doing a disk check, and a clean boot. Both failed, however I CAN boot into safe mode, even with networking. Any suggestions on how to go about troubleshooting this issue? I can access all of my Windows files via Debian if I really...
BSOD Help and Support
Office Runs through the configuration process every time I launch it
Hi guys. I have this error where, when trying to run an office program (Example: Word), it runs through the configuration process for a few minutes. I don't quite know what's going on? Closing word and re-opening does the same thing over and over. Once the configuration process finishes, it...
Microsoft Office
window host process?
what is 'window host process ' in notification area?
General Discussion
BG Process keeps taking over and bumping me out of my active window
I can be in MS Word, After Effects, Surfing or ANY OTHER PROGRAM, and not click out, but be just working away and all the sudden SOMETHING (your part) causes my active window/program to go like it was a background process. I could be in the middle of typing an email, and in the middle of a...
General Discussion
Make 'close window' button kill the process?
One of the forever most annoying things about Windows, is that if a program stalls and you want to kill it, clicking the 'x' button for closing the window, actually does nothing. Is there a way to make this button forcibly kill the process, without having the wait ages for the "This program...
General Discussion
Did Process For Changing Window Colors Change?
May sound like a DUMB question, but I could have sworn when I first installed Windows 7 it was easy to customize the Window Colors. I thought I could click on 1: Control Panel 2. Appear and Personalization 3. Change Theme 4. Then Window Color What I mean is now when I click on Window Color,...
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 04:48.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App