|
Prev: Want to buy VB6 compatible Farpoint Spread OCX software. (NOT the .NET version)
Next: Text search in VBA/Excel
From: Tony McGee on 16 Apr 2008 22:43 Hello all I have a rather large VB6 app that works perfectly in the IDE & closes OK. However, when I compile the app & run the exe, it works OK but hangs when I try to close it. This is an app that has been previously compiled & packaged OK & worked without any problems. I have now seriuusly modified it & now hangs when run as an exe when I try to close it. Windows task manager gives me the "Not Responding" message. Is there anything I can do to help pinpoint the problem when running the exe? Thanks in advance Tony McGee -- Tony McGee St Agnes Catholic Parish Port Macquarie NSW 2444 Phone (02) 6588 7444
From: BeastFish on 17 Apr 2008 02:25 When testing/running it in the IDE, how do you close it? With the "stop" button on the IDE's toolbar or by clicking the form's close button (the "X")? Or does the app terminate itself in code? Not knowing the details or archetecture of your app, my first guess is something is still loaded (like a form). "Tony McGee" <tonym(a)priority1.com.au> wrote in message news:4806b99b$0$70803$c30e37c6(a)pit-reader.telstra.net... > Hello all > > I have a rather large VB6 app that works perfectly in the IDE & closes OK. > However, when I compile the app & run the exe, it works OK but hangs when I > try to close it. > > This is an app that has been previously compiled & packaged OK & worked > without any problems. I have now seriuusly modified it & now hangs when run > as an exe when I try to close it. Windows task manager gives me the "Not > Responding" message. > > Is there anything I can do to help pinpoint the problem when running the > exe? > > Thanks in advance > Tony McGee > > > -- > > > Tony McGee > St Agnes Catholic Parish > Port Macquarie NSW 2444 > Phone (02) 6588 7444 > >
From: Mike Williams on 17 Apr 2008 03:26 On 17 Apr, 03:43, "Tony McGee" <to...(a)priority1.com.au> wrote: > I have a rather large VB6 app that works > perfectly in the IDE & closes OK. However, > when I compile the app & run the exe, it > works OK but hangs when I try to close it. Are you closing it in the IDE using the Run / End menu? If so then your app will close immediately, without allowing any of the Unload or QueryUnload events in any of your Forms to execute. So, if it closes okay in the IDE and causes the problem only when you close the running exe in the normal manner then the Unload and QueryUnload events are the first place to look for your problem. Also, are you doing anything a bit "scary" in your code, such as subclassing or using CopyMemory or anything like that? Mike
From: Jan Hyde (VB MVP) on 17 Apr 2008 06:24 "Tony McGee" <tonym(a)priority1.com.au>'s wild thoughts were released on Thu, 17 Apr 2008 12:43:24 +1000 bearing the following fruit: >Hello all > >I have a rather large VB6 app that works perfectly in the IDE & closes OK. >However, when I compile the app & run the exe, it works OK but hangs when I >try to close it. > >This is an app that has been previously compiled & packaged OK & worked >without any problems. I have now seriuusly modified it & now hangs when run >as an exe when I try to close it. Windows task manager gives me the "Not >Responding" message. > >Is there anything I can do to help pinpoint the problem when running the >exe? Put some logging in, so you can find out exactly what is happening. IDE and compliled are two different animals and behaviour will vary. -- Jan Hyde https://mvp.support.microsoft.com/profile/Jan.Hyde
From: abulsari on 19 Apr 2008 09:28
In article <d89e04lkilm6i3a28flbcols9bfef3of5n(a)4ax.com>, Jan Hyde (VB MVP) <StellaDrinker(a)REMOVE.ME.uboot.com> wrote: >"Tony McGee" <tonym(a)priority1.com.au>'s wild thoughts were >released on Thu, 17 Apr 2008 12:43:24 +1000 bearing the >following fruit: > >>Hello all >> >>I have a rather large VB6 app that works perfectly in the IDE & closes OK. >>However, when I compile the app & run the exe, it works OK but hangs when I >>try to close it. >> >>Is there anything I can do to help pinpoint the problem when running the >>exe? Are you using the timer? In our code, I had noticed the same problem years back when the timer does not close down when the *.exe is ended, and a wowexec.exe is left running - as seen from the Task Manager. A. Bulsari > >Put some logging in, so you can find out exactly what is >happening. IDE and compliled are two different animals and >behaviour will vary. > > >-- >Jan Hyde > >https://mvp.support.microsoft.com/profile/Jan.Hyde |