|
-
Feb 5th, 2019, 05:29 PM
#1
Thread Starter
New Member
VB6 program's Unload Me crashing in Windows 10
Hello all,
I am trying to solve an annoying problem with a legacy application, but every solution I've tried so far has been useless.
The scenario is this: I am trying to install a VB6 application in a Windows 10 environment. (client's requirement, I am not exactly thrilled). I have tried this in 2 computers:
The installation package finished smoothly, installation and configuration done with no problems as well. The thing is that if I load any child form and then try to unload it, the application crashes. I tried debugging one of them the JS-way: placing Message Boxes before and after the Unload Me function and one in the Error handler. Surprisingly, the Error Number is 0 but the program still crashes!
However, if I start the program as Administrator FROM THE SHORTCUT, the forms unload without issues.
Sooo, I think in order, these were my next steps:
- Start the .exe directly as Administrator. Nope.
- Check the Run As Administrator checkbox in the contextual menu (Properties - Compatibility) of the .exe. No good.
- Create a .reg file to affect the HLKM\ ... \AppCompatFlags\Layers keys. Nada.
- Affect both the HKLM AND HKCU keys. Thank you, next.
- Check if some Recordset or variable was filled or active. Everything empty.
- Tried Unload [name of the form] instead of Unload Me. Same result.
Needless to say, installations in Windows XP (D: ) work perfectly, so I am thinking it's something to do with Win10's security policies OR the way the installation package is being created.
Additional info:
- No, code's not mine.
- Code is not crashing (can test from A to Z in the IDE.)
- I am not using manifests (yet.)
- The client is using a waaaay old third party component without license, launching a "This application was created with an EVAL ~~~" Message Box every 0.5 seconds, but it is required for some functions, so stop using it is out of the question.
If someone can at least guide me in the right direction, it will be very much appreciated.
Do you know (or help me guess) what's the cause of all this and how can I prevent it?
Thanks again,
Tony.
UPDATE: I made the application a Manifest about 30 minutes ago, but didn't work, just in case you were wondering.
Last edited by oishii; Feb 6th, 2019 at 06:07 PM.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|