Hi All

I have encounter really confusing problem which makes me sick after
three days of research.
I just migrate my project from visual C++ 2003 to visual C++ 2008
express.
My application is ment to be executed by shellExecute function by
other process (other application).
After migration my app finishes immidiatly with 0xc0000034 error code
(other words app builded with vc 7.1 works fine and app builded with
vc 9.0 failed to initialize).
Interesting thing is when I doubleclick my app (vc9.0 builded) it
works just fine (watch second windbg log).

Please help me. Thanks in advance.

Marcin

*** wait with pending attach
Symbol search path is: *** Invalid ***
****************************************************************************
* Symbol loading may be unreliable without a symbol search
path. *
* Use .symfix to have the debugger choose a symbol
path. *
* After setting your symbol path, use .reload to refresh symbol
locations. *
****************************************************************************
Executable search path is:
ModLoad: 00400000 007db000 C:\Program Files\co3.pl\plv\plv.exe
ModLoad: 7c900000 7c9b2000 C:\WINDOWS\system32\ntdll.dll
ModLoad: 7c800000 7c8fb000 C:\WINDOWS\system32\kernel32.dll
ModLoad: 71a50000 71a67000 C:\WINDOWS\system32\WS2_32.dll
ModLoad: 77c00000 77c58000 C:\WINDOWS\system32\msvcrt.dll
ModLoad: 71a40000 71a48000 C:\WINDOWS\system32\WS2HELP.dll
ModLoad: 77dc0000 77e6c000 C:\WINDOWS\system32\ADVAPI32.dll
ModLoad: 77e70000 77f01000 C:\WINDOWS\system32\RPCRT4.dll
ModLoad: 5f190000 5f25c000 C:\WINDOWS\system32\OPENGL32.dll
ModLoad: 77f10000 77f56000 C:\WINDOWS\system32\GDI32.dll
ModLoad: 77d30000 77dc0000 C:\WINDOWS\system32\USER32.dll
ModLoad: 5c8f0000 5c911000 C:\WINDOWS\system32\GLU32.dll
ModLoad: 736f0000 73739000 C:\WINDOWS\system32\DDRAW.dll
ModLoad: 73b50000 73b56000 C:\WINDOWS\system32\DCIMAN32.dll
ModLoad: 10000000 10050000 C:\Program Files\co3.pl\plv\physfs_d.dll
ModLoad: 10200000 10323000 C:\Program Files\co3.pl\plv\MSVCR90D.dll
ModLoad: 007e0000 00d7e000 C:\Program Files\co3.pl\plv\coGUI_d.dll
ModLoad: 7c9c0000 7d1db000 C:\WINDOWS\system32\SHELL32.dll
ModLoad: 77f60000 77fd6000 C:\WINDOWS\system32\SHLWAPI.dll
ModLoad: 00d80000 00e20000 C:\Program Files\co3.pl\plv\coNET_d.dll
ModLoad: 6ff40000 6ff94000 C:\WINDOWS\system32\NETAPI32.dll
ModLoad: 10480000 10556000 C:\Program Files\co3.pl\plv\MSVCP90D.dll
ModLoad: 76b20000 76b4e000 C:\WINDOWS\system32\WINMM.dll
ModLoad: 00e20000 00f22000 C:\Program Files\co3.pl\plv\DevIL.dll
ModLoad: 003c0000 003f6000 C:\Program Files\co3.pl\plv\libpng13.dll
ModLoad: 78520000 785c3000 C:\Program Files\co3.pl\plv\MSVCR90.dll
ModLoad: 00f40000 00f52000 C:\Program Files\co3.pl\plv\DevILU.dll
ModLoad: 00f70000 00f7a000 C:\Program Files\co3.pl\plv\DevILUT.dll
ModLoad: 771a0000 77247000 C:\WINDOWS\system32\WININET.dll
ModLoad: 77a70000 77b05000 C:\WINDOWS\system32\CRYPT32.dll
ModLoad: 77b10000 77b22000 C:\WINDOWS\system32\MSASN1.dll
ModLoad: 77110000 7719c000 C:\WINDOWS\system32\OLEAUT32.dll
ModLoad: 774d0000 7760c000 C:\WINDOWS\system32\ole32.dll
ModLoad: 76380000 763c9000 C:\WINDOWS\system32\COMDLG32.dll
ModLoad: 5d520000 5d5b7000 C:\WINDOWS\system32\COMCTL32.dll
(810.f58): Break instruction exception - code 80000003 (first chance)
eax=7ffda000 ebx=00000001 ecx=00000002 edx=00000003 esi=00000004
edi=00000005
eip=7c901230 esp=00f9ffcc ebp=00f9fff4 iopl=0 nv up ei pl zr
na pe nc
cs=001b ss=0023 ds=0023 es=0023 fs=0038 gs=0000
efl=00000246
*** ERROR: Symbol file could not be found. Defaulted to export
symbols for C:\WINDOWS\system32\ntdll.dll -
ntdll!DbgBreakPoint:
7c901230 cc int 3
0:001> g
(810.670): Unknown exception - code c0000034 (first chance)
(810.670): Unknown exception - code c0000034 (!!! second chance !!!)
eax=0012fc54 ebx=00000000 ecx=0012fc80 edx=7c90eb94 esi=7ffda000
edi=c0000034
eip=7c964ed1 esp=0012fc54 ebp=0012fca4 iopl=0 nv up ei pl zr
na pe nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000
efl=00000246
ntdll!RtlRaiseStatus+0x26:
7c964ed1 c9 leave
0:000> !analyze -v
*******************************************************************************
*
*
* Exception
Analysis *
*
*
*******************************************************************************

***** OS symbols are WRONG. Please fix symbols to do analysis.

*************************************************************************
***
***
***
***
*** Your debugger is not using the correct symbols
***
***
***
*** In order for this command to work properly, your symbol path
***
*** must point to .pdb files that have full type information.
***
***
***
*** Certain .pdb files (such as the public OS symbols) do not
***
*** contain the required information. Contact the group that
***
*** provided you with these symbols if you need this command to
***
*** work.
***
***
***
*** Type referenced: ntdll!_PEB
***
***
***
*************************************************************************
*** ERROR: Symbol file could not be found. Defaulted to export
symbols for C:\WINDOWS\system32\kernel32.dll -
*********************************************************************
* Symbols can not be loaded because symbol path is not initialized. *
* *
* The Symbol Path can be set by: *
* using the _NT_SYMBOL_PATH environment variable. *
* using the -y <symbol_path> argument when starting the debugger. *
* using .sympath and .sympath+ *
*********************************************************************
*************************************************************************
***
***
***
***
*** Your debugger is not using the correct symbols
***
***
***
*** In order for this command to work properly, your symbol path
***
*** must point to .pdb files that have full type information.
***
***
***
*** Certain .pdb files (such as the public OS symbols) do not
***
*** contain the required information. Contact the group that
***
*** provided you with these symbols if you need this command to
***
*** work.
***
***
***
*** Type referenced: ntdll!_PEB
***
***
***
*************************************************************************
*************************************************************************
***
***
***
***
*** Your debugger is not using the correct symbols
***
***
***
*** In order for this command to work properly, your symbol path
***
*** must point to .pdb files that have full type information.
***
***
***
*** Certain .pdb files (such as the public OS symbols) do not
***
*** contain the required information. Contact the group that
***
*** provided you with these symbols if you need this command to
***
*** work.
***
***
***
*** Type referenced: kernel32!pNlsUserInfo
***
***
***
*************************************************************************
*************************************************************************
***
***
***
***
*** Your debugger is not using the correct symbols
***
***
***
*** In order for this command to work properly, your symbol path
***
*** must point to .pdb files that have full type information.
***
***
***
*** Certain .pdb files (such as the public OS symbols) do not
***
*** contain the required information. Contact the group that
***
*** provided you with these symbols if you need this command to
***
*** work.
***
***
***
*** Type referenced: kernel32!pNlsUserInfo
***
***
***
*************************************************************************

FAULTING_IP:
ntdll!RtlRaiseStatus+26
7c964ed1 c9 leave

EXCEPTION_RECORD: ffffffff -- (.exr 0xffffffffffffffff)
ExceptionAddress: 7c964ed1 (ntdll!RtlRaiseStatus+0x00000026)
ExceptionCode: c0000034
ExceptionFlags: 00000001
NumberParameters: 0

FAULTING_THREAD: 00000670

BUGCHECK_STR: c0000034

DEFAULT_BUCKET_ID: WRONG_SYMBOLS

PROCESS_NAME: plv.exe

MODULE_NAME: ntdll

FAULTING_MODULE: 7c900000 ntdll

DEBUG_FLR_IMAGE_TIMESTAMP: 411093b2

ERROR_CODE: (NTSTATUS) 0xc0000034 - Nie odnaleziono nazwy obiektu.

LAST_CONTROL_TRANSFER: from 7c93f8fb to 7c964ed1

STACK_TEXT:
WARNING: Stack unwind information not available. Following frames may
be wrong.
0012fca4 7c93f8fb c0000034 0012fd30 00390038 ntdll!RtlRaiseStatus+0x26
0012fd1c 7c90eac7 0012fd30 7c900000 00000000 ntdll!
RtlInitializeSListHead+0x68eb
00000000 00000000 00000000 00000000 00000000 ntdll!KiUserApcDispatcher
+0x7

FOLLOWUP_IP:
ntdll!RtlRaiseStatus+26
7c964ed1 c9 leave

SYMBOL_STACK_INDEX: 0

SYMBOL_NAME: ntdll!RtlRaiseStatus+26

FOLLOWUP_NAME: MachineOwner

IMAGE_NAME: ntdll.dll

STACK_COMMAND: ~0s ; kb

BUCKET_ID: WRONG_SYMBOLS

FAILURE_BUCKET_ID: ntdll.dll!base_address_c0000034_WRONG_SYMBOLS

Followup: MachineOwner
---------

-------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------

*** wait with pending attach
Symbol search path is: *** Invalid ***
****************************************************************************
* Symbol loading may be unreliable without a symbol search
path. *
* Use .symfix to have the debugger choose a symbol
path. *
* After setting your symbol path, use .reload to refresh symbol
locations. *
****************************************************************************
Executable search path is:
ModLoad: 00400000 007db000 c:\Program Files\Casino3.pl\plv\plv.exe
ModLoad: 7c900000 7c9b2000 C:\WINDOWS\system32\ntdll.dll
ModLoad: 7c800000 7c8fb000 C:\WINDOWS\system32\kernel32.dll
ModLoad: 71a50000 71a67000 C:\WINDOWS\system32\WS2_32.dll
ModLoad: 77c00000 77c58000 C:\WINDOWS\system32\msvcrt.dll
ModLoad: 71a40000 71a48000 C:\WINDOWS\system32\WS2HELP.dll
ModLoad: 77dc0000 77e6c000 C:\WINDOWS\system32\ADVAPI32.dll
ModLoad: 77e70000 77f01000 C:\WINDOWS\system32\RPCRT4.dll
ModLoad: 5f190000 5f25c000 C:\WINDOWS\system32\OPENGL32.dll
ModLoad: 77f10000 77f56000 C:\WINDOWS\system32\GDI32.dll
ModLoad: 77d30000 77dc0000 C:\WINDOWS\system32\USER32.dll
ModLoad: 5c8f0000 5c911000 C:\WINDOWS\system32\GLU32.dll
ModLoad: 736f0000 73739000 C:\WINDOWS\system32\DDRAW.dll
ModLoad: 73b50000 73b56000 C:\WINDOWS\system32\DCIMAN32.dll
ModLoad: 10000000 10050000 c:\Program Files\Casino3.pl\plv
\physfs_d.dll
ModLoad: 10200000 10323000 c:\Program Files\Casino3.pl\plv
\MSVCR90D.dll
ModLoad: 007e0000 00d7e000 c:\Program Files\Casino3.pl\plv
\CasinoGUI_d.dll
ModLoad: 7c9c0000 7d1db000 C:\WINDOWS\system32\SHELL32.dll
ModLoad: 77f60000 77fd6000 C:\WINDOWS\system32\SHLWAPI.dll
ModLoad: 00d80000 00e20000 c:\Program Files\Casino3.pl\plv
\CasinoNET_d.dll
ModLoad: 6ff40000 6ff94000 C:\WINDOWS\system32\NETAPI32.dll
ModLoad: 10480000 10556000 c:\Program Files\Casino3.pl\plv
\MSVCP90D.dll
ModLoad: 76b20000 76b4e000 C:\WINDOWS\system32\WINMM.dll
ModLoad: 00e20000 00f22000 c:\Program Files\Casino3.pl\plv\DevIL.dll
ModLoad: 003c0000 003f6000 c:\Program Files\Casino3.pl\plv
\libpng13.dll
ModLoad: 78520000 785c3000 c:\Program Files\Casino3.pl\plv
\MSVCR90.dll
ModLoad: 00f40000 00f52000 c:\Program Files\Casino3.pl\plv
\DevILU.dll
ModLoad: 00f70000 00f7a000 c:\Program Files\Casino3.pl\plv
\DevILUT.dll
ModLoad: 771a0000 77247000 C:\WINDOWS\system32\WININET.dll
ModLoad: 77a70000 77b05000 C:\WINDOWS\system32\CRYPT32.dll
ModLoad: 77b10000 77b22000 C:\WINDOWS\system32\MSASN1.dll
ModLoad: 77110000 7719c000 C:\WINDOWS\system32\OLEAUT32.dll
ModLoad: 774d0000 7760c000 C:\WINDOWS\system32\ole32.dll
ModLoad: 76380000 763c9000 C:\WINDOWS\system32\COMDLG32.dll
ModLoad: 5d520000 5d5b7000 C:\WINDOWS\system32\COMCTL32.dll
ModLoad: 773c0000 774c2000 C:\WINDOWS\WinSxS
\x86_Microsoft.Windows.Common-
Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\comctl32.dll
ModLoad: 769a0000 76a54000 C:\WINDOWS\system32\userenv.dll
ModLoad: 719f0000 71a30000 C:\WINDOWS\system32\mswsock.dll
ModLoad: 66780000 667d8000 C:\WINDOWS\system32\hnetcfg.dll
ModLoad: 71a30000 71a38000 C:\WINDOWS\System32\wshtcpip.dll
(dac.9e4): Break instruction exception - code 80000003 (first chance)
eax=7ffd6000 ebx=00000001 ecx=00000002 edx=00000003 esi=00000004
edi=00000005
eip=7c901230 esp=0196ffcc ebp=0196fff4 iopl=0 nv up ei pl zr
na pe nc
cs=001b ss=0023 ds=0023 es=0023 fs=0038 gs=0000
efl=00000246
*** ERROR: Symbol file could not be found. Defaulted to export
symbols for C:\WINDOWS\system32\ntdll.dll -
ntdll!DbgBreakPoint:
7c901230 cc int 3