-
Jan 17th, 2018, 11:00 AM
#1
Thread Starter
Lively Member
On Win7: Vb6 Initialize Sub runs, form won't load/show gives "unexpected error"
I’m having a very strange result when running my program on a specific user’s Windows 7 64-bit computer. What happens is that the program’s Form_Initalize routine completes successfully. But it appears that when the Sub_Form starts to fire, the program immediately crashes returning an “Unexpected error”. Any suggestions would be much appreciated.
-
Jan 17th, 2018, 12:28 PM
#2
Re: On Win7: Vb6 Initialize Sub runs, form won't load/show gives "unexpected error"
The form is using a custom control. The OCX for this control is in the same folder as the application EXE. The OCX is not registered correctly. VB runtime tries to autoregister the OCX but fails as the process is not run elevated.
Second option, there is no free space in TEMP folder. VB runtime tries to save the form's icon to a file in this TEMP folder before loading it and deleting it in a very fast order but fails on first step.
cheers,
</wqw>
-
Jan 17th, 2018, 02:40 PM
#3
Thread Starter
Lively Member
Re: On Win7: Vb6 Initialize Sub runs, form won't load/show gives "unexpected error"
Originally Posted by wqweto
The form is using a custom control. The OCX for this control is in the same folder as the application EXE. The OCX is not registered correctly. VB runtime tries to autoregister the OCX but fails as the process is not run elevated.
Second option, there is no free space in TEMP folder. VB runtime tries to save the form's icon to a file in this TEMP folder before loading it and deleting it in a very fast order but fails on first step.
cheers,
</wqw>
Thank you for your reply. The only thing that is coming up is what I would consider standard .OCX, as below. The installer is actually "Run as Administrator" as well...any other insight you or others have most welcomed!
-
Jan 18th, 2018, 02:56 AM
#4
Re: On Win7: Vb6 Initialize Sub runs, form won't load/show gives "unexpected error"
Originally Posted by swambast
I’m having a very strange result when running my program on a specific user’s Windows 7 64-bit computer. What happens is that the program’s Form_Initalize routine completes successfully. But it appears that when the Sub_Form starts to fire, the program immediately crashes returning an “Unexpected error”. Any suggestions would be much appreciated.
Make a sample project that reproduce the problem, zip-it and attach here.
-
Jan 20th, 2018, 08:47 AM
#5
Thread Starter
Lively Member
Re: On Win7: Vb6 Initialize Sub runs, form won't load/show gives "unexpected error"
Hi, thanks for your response but honestly that doesn't seem practical to me. I was just looking for some general guidance or advice from others that might have run into this - but was surprised to find so few responses. Perhaps it might be a case of .ocx registration/compatibility issues since the Initialize sub runs but the form won't show...
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
|