ProcessShellCommand () crashes after migrating an application which was originally written in VC 6.0 to VS2010
-
We have migrated our application which was written in VC 6.0 to VS2010. The application crashes on launching it. The crash occurs at ProcessShellCommand( ). On debugging got this error "Unhandled exception at 0x7575d36f in MyApp.exe: Microsoft c++ exception CInvalidArgException at memory location 0x0012fb98" What could be the problem and possible fix for this. Thanks in Advance.
-
We have migrated our application which was written in VC 6.0 to VS2010. The application crashes on launching it. The crash occurs at ProcessShellCommand( ). On debugging got this error "Unhandled exception at 0x7575d36f in MyApp.exe: Microsoft c++ exception CInvalidArgException at memory location 0x0012fb98" What could be the problem and possible fix for this. Thanks in Advance.
V K 2 wrote:
What could be the problem
The problem is that you are trying to use an arguement that the function will not accept.
V K 2 wrote:
possible fix for this
One possible fix is to use an argement that the function will accept.
Why is common sense not common? Never argue with an idiot. They will drag you down to their level where they are an expert. Sometimes it takes a lot of work to be lazy Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
-
V K 2 wrote:
What could be the problem
The problem is that you are trying to use an arguement that the function will not accept.
V K 2 wrote:
possible fix for this
One possible fix is to use an argement that the function will accept.
Why is common sense not common? Never argue with an idiot. They will drag you down to their level where they are an expert. Sometimes it takes a lot of work to be lazy Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
Sheer poetry. :laugh:
-
We have migrated our application which was written in VC 6.0 to VS2010. The application crashes on launching it. The crash occurs at ProcessShellCommand( ). On debugging got this error "Unhandled exception at 0x7575d36f in MyApp.exe: Microsoft c++ exception CInvalidArgException at memory location 0x0012fb98" What could be the problem and possible fix for this. Thanks in Advance.
V K 2 wrote:
The crash occurs at ProcessShellCommand( ).
Which is called how?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
-
V K 2 wrote:
The crash occurs at ProcessShellCommand( ).
Which is called how?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
-
Sheer poetry. :laugh:
We can but try.... :)
Why is common sense not common? Never argue with an idiot. They will drag you down to their level where they are an expert. Sometimes it takes a lot of work to be lazy Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
-
CCommandLineInfo cmdInfo; ParseCommandLine( cmdInfo ); // Dispatch commands specified on the command line if( !ProcessShellCommand( cmdInfo ) ) return FALSE;
Have you stepped into
ProcessShellCommand()
(to find the statement that is throwing the exception)?"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
-
Have you stepped into
ProcessShellCommand()
(to find the statement that is throwing the exception)?"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
It crashes at EnterCriticalSection in below function of C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\src\mfc\afxcrit.cpp void AFXAPI AfxLockGlobals(int nLockType) { ---- ---- // lock specific resource EnterCriticalSection(&_afxResourceLock[nLockType]); ----- }
-
We have migrated our application which was written in VC 6.0 to VS2010. The application crashes on launching it. The crash occurs at ProcessShellCommand( ). On debugging got this error "Unhandled exception at 0x7575d36f in MyApp.exe: Microsoft c++ exception CInvalidArgException at memory location 0x0012fb98" What could be the problem and possible fix for this. Thanks in Advance.
V K 2 wrote:
What could be the problem and possible fix for this.
A bug in your code probably caused by the migration itself. Keep in mind also that although the crash originates from that call that doesn't not insure that the cause is specifically there. Pointer bugs can cause problems long after the problem code was executed.