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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Program locked during linking.

Status
Not open for further replies.

salimwng

IS-IT--Management
Mar 11, 2002
134
MU
Hello,

I have successfully installed the Visual c++ on two PC's ( Win2000 Pro - SP 4 ) at work and at home. Both have got the same configuration.

C Programs that i prepared on my work PC works correctly, but when i run it on my home PC, the later get locks....( i have terminate the process on Task Manager. The problem comes when i try to Build ( F7 ). Compiling works fine, it's only the building process which gets locked. Even when i try to stop it ( through the stop building icon ), nothing happens. Got to terminate through Task Manager.

I tried to uninstall the program and re-installed already thrice on my home PC, but problem stays same. Even the simplest C program we learn at the Uni( like Hello world ) does not work at all !

Can anybody please help me how to go about with such problem ?

Please note that the C program runs perfectly on my work PC.

Thank you and best regards,
Salim

 
Hi,

I didn't get any reply for the help i requested.

Did anybody came across such problem.

Please...please..please....i badly need your help.

Thanks
Salim
 
If nobody here is able to answer your question maybe you could start looking for someone to e-mail at Microsoft, perhaps by poking around their website? Unfortunately we can't go by any error messages that would give anyone a clue, and apparently nobody has had the same problem since your post has not recieved a reply. Keep trying to look in different places as well as here. Speaking for us all that don't know the answer -- sorry.

-Bones
 
Just a couple of thoughts (I'm only an occasional VC++ user)...

> Win2000 Pro - SP 4
Did you mean W2K is patched to SP4 or VC++ is?

IIRC, the current SP for VC++ is 5 or 6

> C Programs that i prepared on my work PC works correctly, but when i run it on my home PC
Do you copy just the C files, or the entire project?
Do programs you create on your home machine work (its only those you copy from work which are the problem)?

If you're copying the entire project and your VC++ have different SP's, then perhaps there's a conflict.

Or perhaps it's a path issue - a small difference in the directory structure between the two machines.

Try creating an empty project at home and manually adding your C files to it.

> The problem comes when i try to Build ( F7 ).
Building inevitably involves creating an executable file, which in very strict environments is a privileged operation.
Are you logged into your home machine with right account (I'm guessing anything but Guest would be sufficient)
Do you have a virus checker running - perhaps it's scanning your EXE just as VC++ creates it.

--
 
Thanks for replying.

With reply to the questions, please see below;

1. Win2k is patched to SP4.
2. For VC++, i have got SP5 installed on both machines.
3. I used to copy only the C files ( file with extension .c ), not the entire project.
4. I tried to copy the C program i made at home, but which i couldn't compile. Same program compiles correctly at work.
5. Both machines are IDENTICAL, with Latest Symantec Antivirus 2003 pattern.
6. Logging at home is done with correct rights.

I will try to contact guys of Microsoft, but i can imagine in advance about the reply...., the reason why i posted this info here. Though i tried to search in their QA and Knowledge Section, i got nothing on this type of error.

Thank you everybody for trying to help me somehow,
Keep well.
Salim
 
Hello Salim,

I don't know if you check these posts anymore since it has been a while since the last post and I am sorry but I do not have an answer to your problem. I do however, have the same problem as you. I have visual c++ 6 running on Windows XP and compiling and building just don't seem to want to work most of the time. Every once in a while, the building process finishes as it should and i can then test and debug just fine, but probably 90 percent of the time the building process seems as though it never completes. Even when trying to build simple Hello World programs, visual c++ "locks up". I put it in quotes because it doenst exactly lock up, you can still edit code, open windows, and do almost anything else you want except anything that has to do with compiling/building/debugging. You can't close the program normally either because it says "building in process". I have to terminate through the task manager also. I was wondering if you had any luck through microsoft with this or if you have found any information regarding it. Thanks.

Kelly
 

Hello Kelly,

Sorry, just came back from the States after a long training program.

I am happy you wrote to me about the same problem you are having. I thought that i was the only one that visual C++ was having alergic to.... {joke}.

Unfortunately, i haven't been able to solve the problem. I had to re-format the HD, install the whole bunch of the programs again and finally it worked.

I'll give you a tip....

Once you installed your OS ( either Win2000 or WinXP ), DO NOT install the Service pack at this stage. Have the Visual C++ installed, run it once with any simple programs, like "Hello world" and then have the Service packs installed. Do not ask me why !!!! dunno.... it worked fine for me. Try it and let me know.

My email add is ---> salimwng@bow.intnet.mu
 
Thanks for the tip, although I am not sure I want to go through all that, I'll definately keep it in mind. I did find a way that will compile and build almost always (notice the word 'almost') without error. I simply click 'rebuild all' instead of 'build' or 'compile'. I don't know why, but this works enough of the time for it to be worth using the program. However, I have to be careful, because visual c++ will compile without telling you when, say, you are in debug mode. If you change some code, the program will try to compile automatically and this always results in a lockup. So Im just a little careful and patient...until I can get my hands on visual studio .net for cheap enough. Good luck programming, Mr Salimwng. If you find anything else out, keep in touch...I will.

Kelly - tafobius@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top