Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem setting up CBuilder for a new user 1

Status
Not open for further replies.

BorlandDave

Programmer
Jun 13, 2005
86
GB
I have Borland CBuilder 5 working for a particular user on my computer. However, when I log in as someone else and try and open a (previously working!) project group, I get errors every time I try to open a dialog class file complaining of missing components...

Class TPageControl not found
Class TEdit not found

How come CBuilder can find these components under one user and not under another?

Thanks.
 
I've narrowed it down a bit...

If in CBuilder, I go to "Component->Install Packages", with the working user I have a huge list of packages displayed. For the non-working user, the list is empty...

Why is this user specific? Can I somehow import the settings from one user to the other?
 
I don't know how to do it en-mass so you may have to do it one by one. I suspect that each user's desktop is being save in the user's documents and settings someplace.


James P. Cottingham
[sup]I'm number 1,229!
I'm number 1,229![/sup]
 
Ok, I manually added all the packages for the new user and I'm no longer getting any errors of missing components. The project group seems to compile and run correctly.

I have a new error when I try to save though...

Access violation at address 520FC5DE in module 'CorIde50.bpl'. Read of address 00000000

I've done a quick google search on this error but haven't as yet come up with a solution.

Any ideas?

Thanks.
 
Access violations are a pain to diagnose. Usually it means that some code is trying to access an object (or memory place holder) that no longer exists. Sometimes that means you have deleted an object and not nulled its address, sometimes it means that an object has gone out of scope, sometimes it means that an object's address has changed, etc., etc.

I'm at a loss, sorry. Is is possible that the path to that module isn't correctly set up for that user? Check the environment variables between the you and the other user. I suspect that you may have to recompile that module or you may have to re-install BCB5 under that user.


James P. Cottingham
[sup]I'm number 1,229!
I'm number 1,229![/sup]
 
I already checked the environment variables and there were no differences between the users. I also checked in the user's documents and settings and couldn't find anything Borland related. I was just about to give up and reinstall when I suddenly remembered the registry...

I ended up copying the whole directory of HKCU\Software\Borland\C++Builder\5.0 from the user that worked into the user that didn't...

Now everything works fine. Why on Earth does Borland use the HKCU branch instead of the HKLM????

Thanks for the help!
 
MS has been pushing the use of HKCU instead of HKLM for some time. There was even a warning that Vista may only allow a certain size/number of HKLM values thus forcing you to use the HKCU. I never followed up on that to verify it, though.


James P. Cottingham
[sup]I'm number 1,229!
I'm number 1,229![/sup]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top