2
votes

I am using the following command from command line

"C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe"  C:\testlocation\testsolution.sln /Rebuild "Debug" /project "testproject" /projectconfig "Debug" /out C:\test.sln.log

this command however makes devenv to crash. Nothing is being written to the test.sln.log file. Can somebody please point out what the case might be ?

[Update 1]

Crash Image is here. If I click the view problem details this is the information that i get

Problem signature: Problem Event Name: APPCRASH Application Name: devenv.exe Application Version: 10.0.30319.1 Application Timestamp: 4ba1fab3 Fault Module Name: msenv.dll Fault Module Version: 10.0.30319.1 Fault Module Timestamp: 4ba1fd94 Exception Code: c0000005 Exception Offset: 0030df30 OS Version: 6.0.6001.2.1.0.256.1 Locale ID: 1033 Additional information about the problem: LCID: 1033 Read our privacy statement: http://go.microsoft.com/fwlink/?linkid=50163&clcid=0x0409

[Update 2] I found out from the solution file that this is the configuration

  Debug|Win32 = Debug|Win32
    Debug|x64 = Debug|x64
    Release|Win32 = Release|Win32
    Release|x64 = Release|x64

so if I am building it for Debug only (without the platform) is devenv supposed to crash like it does for me ?

thanks

2
Define "crash". What exactly happens? Error message? BSOD?Eric J.
have you tried it without the log parameter? I wonder if it's having trouble creating the log fileAlastair Pitts
Tried it but the problem still persists.Gagan

2 Answers

1
votes

I had the same issue. Looks like /projectconfig needs "Debug|Win32", so the name of a configuration and a platform, separated by a pipe character.

0
votes

Using err.exe appears to be a security problem:

for hex 0xc0000005 / decimal -1073741819 :
STATUS_ACCESS_VIOLATION ntstatus.h
The instruction at "0x%08lx" referenced memory at
"0x%08lx". The memory could not be "%s".
USBD_STATUS_DEV_NOT_RESPONDING usb.h
2 matches found for "c0000005"

Confirm you are running the Visual Studio command line prompt as administrator.