Jump to content

Strange extra window


Recommended Posts

I've been working on a timer gui for about four months now. I'm actually finished with it and have a fix for the issue I'm going to bring up, but I'd like to know if anyone else has happened across this.

I've been naming my application "ReadAid.exe" for the past many months. All the builds went just fine and produced GUIs that I've come to expect.

Just recently, if the final name is compiled as, or is renamed as, "ReadAid.exe" (the name I've used for the past many months) I get this strange extra window when I run the executable and the first GUI starts. If I run "StudyAid.au3" with any name it runs just fine. If I rename the executable anything but "ReadAid" then the first GUI starts just fine, otherwise I get this weird extra window.

Here's the extra window, as you can see the icon for my app shows up.

Posted Image

There is no other content in the window. I included the folder so you could get an idea of size.

If I close the extra window it closes the whole app. I deleted all of the executables and shortcuts in my computer that have the name "StudyAid.exe". I copied the text of the script and pasted it into a new Scite file. I think the problem might be in some residual code left somewhere, or maybe something left over in the compile program.

The script itself is really long, and not terribly pretty, and not really relevant (as far as I can see) to the problem.

No big deal if no one knows what it is, because I decided to rename my application ReadAid2.exe which completely solves the problem.

Link to comment
Share on other sites

The script itself is really long, and not terribly pretty, and not really relevant (as far as I can see) to the problem.

I'd guess that your code is entirely relevant, as were such a bug to exist, it would have been uncovered long ago.

Are you somewhere in your code testing for the existance of a process or window or file named ReadAid and then performing actions depending upon the result?

Edit: If you have "ReadAid" hardcoded anywhere in your program, I'd start by looking into that.

Edited by Spiff59
Link to comment
Share on other sites

Thanks for the response Spiff59.

I reduced my script down to the most basic component, one piece at a time, until I got to this:

#AutoIt3Wrapper_Outfile=StudyAid.exe

$GUIMain = GUICreate("StudyAid", 135, 100)
GUISetState(@SW_SHOW)

MsgBox(0, "", "Exit")
Exit

And when compiled it still showed that extra window.

Then I uninstalled and reinstalled both the latest AutoIt3 and Scite, and renamed the folder remaining after uninstall, on the off chance it's something sitting a folder somewhere..

I still get that extra window when I compiled the most basic version shown above.

Note: I did stop a build process (using XP Task Manager) that was taking a very long time to complete sometime prior to this extra window appearing. My best guess at this point is that ending those processes left some residue somewhere. Not the brightest thing to do, now I see in retrospect, but it was taking 10 minutes and I'd never seen any of my scripts take that long to build (using tidy and obfuscator).

Oh, and just so we know, the compiled StudyAid works just find on any other computer I run it on.

Edited by OregonJohn
Link to comment
Share on other sites

All I get when I run that code is a blank window named StudyAid, and a message box dialog.

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Link to comment
Share on other sites

Have you tried renaming any other non-AutoIt exe to StudyAid.exe? Also, have you tried compiling it with AutoIt's included compiler, without SCiTe or any of AutoIt3Wrapper directives?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...