Link to home
Start Free TrialLog in
Avatar of cocosteel
cocosteel

asked on

IDE crashes when open a VBP


I have built a vbp on machineA in visual basic 6
I want to look at this vbp on machineB (which also has visual basic 6 installed)


when i open the vbp on machineB it immediately crashes out of the project and shuts down the whole visual studio IDE.

why is this?
Avatar of MrPan
MrPan

Sounds like an installation problem try reinstall VB on machine B
Do you get an error message?

Do both machines have the same VB service pack installed?
Avatar of GrahamSkan
A get-round, and possible a diagnostic, would be to create a new project an the target machine and to add all the references , then the components and the files in one by one.
Avatar of cocosteel

ASKER

i have a progress bar on the application

and the vbp crashes out of the ide when it comes to reference this progress bar component.

The log says " Line 26: Class ComctlLib.ProgressBar of control ProgressBar1 was not a loaded control class."

any ideas

thanks
Check the components, must be missing a component or missing reference!

i just tried to create a new project on machineB  and it was fine until i tried to reference windows common controls 5.0.  

When i did this i just crashed out of the IDE.

But on machineA i have no problem referencing the windows common controls 5.0




What are the Operating Systems?
Is the Windows Common Comtrols 5.0 correctly registered?
What if you add a reference to Windows Common Controls 6?
both windows 2k professional

machineA had SP2
then had visual studio6 installed
then had SP3 applied

machineB had SP3 applied
then had visual studio6 installed
Maybe upgrade them both to SP4?

Is the Windows Common Comtrols 5.0 correctly registered?
What if you add a reference to Windows Common Controls 6?
May be you try to copy the file comct232.ocx from working machine to the other and registry


Also you have want to try sp5 for VB6
eddkyt

how do i register ocx from the command line? is it regsvr32?



regsvr32 c:/Winnt/system32/comct232.ocx

Or just open the ocx file with regsvr32 in the windows explorer
The original VBP contains a reference to COMCTL32.OCX

This works fine on machineA
But on machineB it crashes out of the IDE when i open the VBP.

----------------------------

So i started a new project on MachineB and one at a time tried to reference

1. microsoft windows common controls 5.0 (SP2)
-COMCTL32.ocx
2. microsoft windows common controls 6.0 (SP3)
-MSCOMCTL.ocx
3. microsoft windows common controls-2 5.0 (SP2)
-COMCT232.ocx
4. microsoft windows common controls-2 6.0 (SP3)
-MSCOMCT2.ocx
5. microsoft windows common controls-3 6.0 (SP3)
-COMCT332.ocx

every one made me immediately crash out of the IDE.

-----------------------------------------

so then i regsvr32 c:/Winnt/system32/comct232.ocx this was successful BUT did not change anything.

---------------------

i was unable to register any of the other ocx's as it returned an error.


thanks
ASKER CERTIFIED SOLUTION
Avatar of p_sie
p_sie
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Problem solved?
Greetings P_Sie