Thread: Very strange link error with VS 2005 .NET

  1. #1
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607

    Very strange link error with VS 2005 .NET

    Every time I attempt to run my StarX.exe more than once an error comes up stating it cannot open StarX.exe for writing. Normally this means the process is still up and running. However checking the task manager reveals the process is nowhere to be found. Checking loaded modules in msinfo32 also does not show StarX.exe.

    I believe my problem is a NULL camera pointer but that should not kill the system. Also I totally commented out the render section of my game except for Clear() and BeginScene(), EndScene(), Present(). I'm testing all the pointers as well and showing error messages if they are invalid......and I get nothing - nada - no errors.

    Some time ago I wrote a program that will kill any program it can and if it cannot it will auto-elevate its privilege so that it can. I recompiled this and changed the filename to StarX.exe and my program says cannot terminate process. This means my DLL cannot find the process. So if my program kill DLL cannot find it, Windows does not show it in task manager, and msinfo32 also does not show it.....why the hell is Visual Studio having issues?

    I'm having to reboot after every compile and debug.

    EDIT:

    Ok now I tried it and had some compile errors which means the program DIDN'T link and DIDN'T execute. Yet MSVC is telling me the file is in use by another process. How can this be when the thing never ran?

    UPDATE:

    Fixed it. Code problem was failing to set my camera mode to FREEFLOAT. It was set on cockpit yet was not attached to any spacecraft and so mouse input failed when it attempted to update because m_pCurCamera was NULL.

    Fixed the Visual Studio issue by simply deleting the old debug exe file completely and letting it rebuild. Not sure why it was locking the other file but deleting it fixed the problem. Most certainly a Visual Studio bug.
    Last edited by VirtualAce; 08-26-2007 at 02:29 AM.

  2. #2
    Internet Superhero
    Join Date
    Sep 2006
    Location
    Denmark
    Posts
    964
    Bubba - just wondering. Would it be possible to get some screenshots of your game as it is at the moment? I'm very curious

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Strange results using dnsapi and windns
    By Niara in forum Networking/Device Communication
    Replies: 3
    Last Post: 08-13-2005, 10:21 AM
  2. destructor with a link list
    By Bones in forum C++ Programming
    Replies: 1
    Last Post: 09-24-2003, 12:01 PM
  3. Undefined Structure in Link List
    By _Cl0wn_ in forum C Programming
    Replies: 1
    Last Post: 03-22-2003, 05:57 PM
  4. .lib vs .h vs .dll
    By Shadow12345 in forum C++ Programming
    Replies: 13
    Last Post: 01-01-2003, 05:29 AM
  5. IE 6 status bar
    By DavidP in forum Tech Board
    Replies: 15
    Last Post: 10-23-2002, 05:31 PM