locked
visual studio 2010 method reflection causing debug crashes RRS feed

  • Question

  • Whenever i create a new project  in XNA(C#) or c# visual , (have not tried VB) the debug compiler falls over immediately with  "uncaught exception called by method called through reflection"  i changed my debug properties to allow unmanaged code (i'm not using any unmanaged code) and it now runs debug fine, however i cannot load any images into my projects using a standard rectangle as a renderpoint

     

     

    Rectangle screenRectangle = new Rectangle(0, 0, screenWidth, screenHeight);

    spriteBatch.Draw(bgimge, screenRectangle,

     

     

    Color.White);


    and get a plethora of errors in the stack trace, its telling me i t can't / is not allowed to read the memory reference for the image??

     Loaded 'ImageAtBase0x5fdf0000', Loading disabled by Include/Exclude setting.

    This randomly started happening after i restarted my windows box after a windows update;  Logs and compiler errors as follows  (working on a XNA project at the moment and all the code is standard stuff) Even if i start a new project with nothing in it now and hit debug it falls over.

     

    Compile errors as follows:  (lots of failure to mount pbd errors??)

     As below shows this is a 64 bit box:

     

    'rockets.exe': Loaded 'C:\Users\Silver-box\Desktop\game1\rockets\rockets\rockets\bin\x86\Debug\rockets.exe', No native symbols in symbol file.

    'rockets.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file

    'rockets.exe': Loaded 'C:\Windows\SysWOW64\mscoree.dll', Cannot find or open the PDB file

    'rockets.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB file

    'rockets.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file

    'rockets.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll', Cannot find or open the PDB file

    'rockets.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll', Cannot find or open the PDB file

    'rockets.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll', Cannot find or open the PDB file

    'rockets.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll', Cannot find or open the PDB file

    'rockets.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll', Cannot find or open the PDB file

    'rockets.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll', Cannot find or open the PDB file

    'rockets.exe': Loaded 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscoreei.dll', Cannot find or open the PDB file

    'rockets.exe': Loaded 'C:\Windows\SysWOW64\shlwapi.dll', Cannot find or open the PDB file

    'rockets.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll', Cannot find or open the PDB file

    'rockets.exe': Loaded 'C:\Windows\SysWOW64\user32.dll', Cannot find or open the PDB file

    'rockets.exe': Loaded 'C:\Windows\SysWOW64\lpk.dll', Cannot find or open the PDB file

    'rockets.exe': Loaded 'C:\Windows\SysWOW64\usp10.dll', Cannot find or open the PDB file

    'rockets.exe': Loaded 'C:\Windows\SysWOW64\imm32.dll', Cannot find or open the PDB file

    'rockets.exe': Loaded 'C:\Windows\SysWOW64\msctf.dll', Cannot find or open the PDB file

    'rockets.exe': Loaded 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll', Cannot find or open the PDB file

    'rockets.exe': Loaded 'C:\Windows\SysWOW64\msvcr100_clr0400.dll', Cannot find or open the PDB file

    'rockets.exe': Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\mscorlib\4ff1f12a08d455f195ba996fe77497c6\mscorlib.ni.dll', Cannot find or open the PDB file

    'rockets.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

    'rockets.exe': Loaded 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\nlssorting.dll', Cannot find or open the PDB file

    'rockets.exe': Loaded 'C:\Windows\SysWOW64\ole32.dll', Cannot find or open the PDB file

    'rockets.exe' (Managed (v4.0.30319)): Loaded 'C:\Users\Silver-box\Desktop\game1\rockets\rockets\rockets\bin\x86\Debug\rockets.exe', Symbols loaded.

    'rockets.exe': Loaded 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\clrjit.dll', Cannot find or open the PDB file

    'rockets.exe': Loaded 'ImageAtBase0x5fdf0000', Loading disabled by Include/Exclude setting.

    'rockets.exe': Loaded 'ImageAtBase0x2e0000', Loading disabled by Include/Exclude setting.

    'rockets.exe': Unloaded 'ImageAtBase0x5fdf0000'

    'rockets.exe': Loaded 'C:\Windows\SysWOW64\cryptsp.dll', Cannot find or open the PDB file

    'rockets.exe': Loaded 'C:\Windows\SysWOW64\rsaenh.dll', Cannot find or open the PDB file

    'rockets.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\Microsoft.Xna.Framework.Game\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.Game.dll'

    'rockets.exe': Loaded 'ImageAtBase0x5ca30000', Loading disabled by Include/Exclude setting.

    'rockets.exe': Loaded 'ImageAtBase0xb10000', Loading disabled by Include/Exclude setting.

    'rockets.exe': Unloaded 'ImageAtBase0x5ca30000'

    'rockets.exe': Loaded 'C:\Windows\Microsoft.NET\assembly\GAC_32\Microsoft.Xna.Framework.Graphics\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.Graphics.dll', Cannot find or open the PDB file

    'rockets.exe': Loaded 'C:\Windows\SysWOW64\msvcr100.dll', Symbols loaded.

    'rockets.exe': Loaded 'C:\Windows\SysWOW64\D3DX9_41.dll', Cannot find or open the PDB file

    'rockets.exe': Loaded 'C:\Windows\SysWOW64\d3d9.dll', Cannot find or open the PDB file

    'rockets.exe': Loaded 'C:\Windows\SysWOW64\version.dll', Cannot find or open the PDB file

    'rockets.exe': Loaded 'C:\Windows\SysWOW64\d3d8thk.dll', Cannot find or open the PDB file

    'rockets.exe': Loaded 'C:\Windows\SysWOW64\dwmapi.dll', Cannot find or open the PDB file

    'rockets.exe': Loaded 'ImageAtBase0x5cac0000', Loading disabled by Include/Exclude setting.

    'rockets.exe': Loaded 'ImageAtBase0xdf0000', Loading disabled by Include/Exclude setting.

    'rockets.exe': Unloaded 'ImageAtBase0x5cac0000'

    'rockets.exe': Loaded 'C:\Windows\Microsoft.NET\assembly\GAC_32\Microsoft.Xna.Framework\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.dll', Cannot find or open the PDB file

    'rockets.exe': Loaded 'C:\Windows\SysWOW64\oleaut32.dll', Cannot find or open the PDB file

    'rockets.exe': Loaded 'C:\Windows\SysWOW64\X3DAudio1_7.dll', Cannot find or open the PDB file

    'rockets.exe': Loaded 'C:\Windows\SysWOW64\msvcp100.dll', Symbols loaded.

    'rockets.exe': Loaded 'C:\Windows\SysWOW64\WindowsCodecs.dll', Cannot find or open the PDB file

    'rockets.exe': Loaded 'C:\Windows\SysWOW64\winmm.dll', Cannot find or open the PDB file

    'rockets.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\Microsoft.Xna.Framework.Graphics\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.Graphics.dll'

    'rockets.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\Microsoft.Xna.Framework\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.dll'

    'rockets.exe': Loaded 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\diasymreader.dll', Cannot find or open the PDB file

    'rockets.exe': Loaded 'ImageAtBase0x600f0000', Loading disabled by Include/Exclude setting.

    'rockets.exe': Loaded 'ImageAtBase0x6e0000', Loading disabled by Include/Exclude setting.

    'rockets.exe': Unloaded 'ImageAtBase0x600f0000'

    'rockets.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.Xna.Framework.Input.Touch\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.Input.Touch.dll'

    'rockets.exe': Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\System\161c6f80ad93b0505054d244f1c6243c\System.ni.dll', Cannot find or open the PDB file

    'rockets.exe': Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Drawing\2fe09cc54a8390b20e380239db34228f\System.Drawing.ni.dll', Cannot find or open the PDB file

    'rockets.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

    'rockets.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

    'rockets.exe': Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Windows.Forms\f3cdd09fc0acc85c7febbd2e2ef9c4e5\System.Windows.Forms.ni.dll', Cannot find or open the PDB file

    'rockets.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

    'rockets.exe': Loaded 'C:\Windows\SysWOW64\uxtheme.dll', Cannot find or open the PDB file

    'rockets.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7600.16661_none_ebfb56996c72aefc\comctl32.dll', Cannot find or open the PDB file

    'rockets.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7600.16385_none_72fc7cbf861225ca\GdiPlus.dll', Cannot find or open the PDB file

    'rockets.exe': Loaded 'C:\Windows\SysWOW64\shell32.dll', Cannot find or open the PDB file

    *** HR originated: -2147024774

    *** Source File: d:\iso_whid\x86fre\base\isolation\com\copyout.cpp, line 1302

     

    *** HR propagated: -2147024774

    *** Source File: d:\iso_whid\x86fre\base\isolation\com\enumidentityattribute.cpp, line 144

     

    *** HR originated: -2147024774

    *** Source File: d:\iso_whid\x86fre\base\isolation\com\copyout.cpp, line 1302

     

    *** HR propagated: -2147024774

    *** Source File: d:\iso_whid\x86fre\base\isolation\com\enumidentityattribute.cpp, line 144

     

    *** HR originated: -2147024774

    *** Source File: d:\iso_whid\x86fre\base\isolation\com\copyout.cpp, line 1302

     

    *** HR propagated: -2147024774

    *** Source File: d:\iso_whid\x86fre\base\isolation\com\enumidentityattribute.cpp, line 144

     

    *** HR originated: -2147024774

    *** Source File: d:\iso_whid\x86fre\base\isolation\com\copyout.cpp, line 1302

     

    *** HR propagated: -2147024774

    *** Source File: d:\iso_whid\x86fre\base\isolation\com\enumidentityattribute.cpp, line 144

     

    *** HR originated: -2147024774

    *** Source File: d:\iso_whid\x86fre\base\isolation\com\copyout.cpp, line 1302

     

    *** HR propagated: -2147024774

    *** Source File: d:\iso_whid\x86fre\base\isolation\com\enumidentityattribute.cpp, line 144

     

    *** HR originated: -2147024774

    *** Source File: d:\iso_whid\x86fre\base\isolation\com\copyout.cpp, line 1302

     

    *** HR propagated: -2147024774

    *** Source File: d:\iso_whid\x86fre\base\isolation\com\enumidentityattribute.cpp, line 144

     

    *** HR originated: -2147024774

    *** Source File: d:\iso_whid\x86fre\base\isolation\com\copyout.cpp, line 1302

     

    *** HR propagated: -2147024774

    *** Source File: d:\iso_whid\x86fre\base\isolation\com\enumidentityattribute.cpp, line 144

     

    *** HR originated: -2147024774

    *** Source File: d:\iso_whid\x86fre\base\isolation\com\copyout.cpp, line 1302

     

    *** HR propagated: -2147024774

    *** Source File: d:\iso_whid\x86fre\base\isolation\com\enumidentityattribute.cpp, line 144

     

    *** HR originated: -2147024774

    *** Source File: d:\iso_whid\x86fre\base\isolation\com\copyout.cpp, line 1302

     

    *** HR propagated: -2147024774

    *** Source File: d:\iso_whid\x86fre\base\isolation\com\enumidentityattribute.cpp, line 144

     

    *** HR originated: -2147024774

    *** Source File: d:\iso_whid\x86fre\base\isolation\com\copyout.cpp, line 1302

     

    *** HR propagated: -2147024774

    *** Source File: d:\iso_whid\x86fre\base\isolation\com\enumidentityattribute.cpp, line 144

    'rockets.exe': Loaded 'C:\Windows\SysWOW64\nvd3dum.dll', Cannot find or open the PDB file

    'rockets.exe': Loaded 'C:\Windows\SysWOW64\powrprof.dll', Cannot find or open the PDB file

    'rockets.exe': Loaded 'C:\Windows\SysWOW64\setupapi.dll', Cannot find or open the PDB file

    'rockets.exe': Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll', Cannot find or open the PDB file

    'rockets.exe': Loaded 'C:\Windows\SysWOW64\devobj.dll', Cannot find or open the PDB file

    'rockets.exe': Loaded 'C:\Windows\SysWOW64\xinput1_3.dll', Cannot find or open the PDB file

    'rockets.exe': Loaded 'C:\Windows\SysWOW64\wintrust.dll', Cannot find or open the PDB file

    'rockets.exe': Loaded 'C:\Windows\SysWOW64\crypt32.dll', Cannot find or open the PDB file

    'rockets.exe': Loaded 'C:\Windows\SysWOW64\msasn1.dll', Cannot find or open the PDB file

    'rockets.exe': Loaded 'ImageAtBase0x600d0000', Loading disabled by Include/Exclude setting.

    'rockets.exe': Loaded 'ImageAtBase0x1020000', Loading disabled by Include/Exclude setting.

    'rockets.exe': Unloaded 'ImageAtBase0x600d0000'

    'rockets.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.Xna.Framework.GamerServices\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.GamerServices.dll'

    'rockets.exe': Unloaded 'C:\Windows\SysWOW64\powrprof.dll'

    The thread 'Win32 Thread' (0x2b10) has exited with code 0 (0x0).

    The thread 'Win32 Thread' (0x2b00) has exited with code 0 (0x0).

    The thread 'Win32 Thread' (0x2af4) has exited with code 0 (0x0).

    The thread 'Win32 Thread' (0x2afc) has exited with code 0 (0x0).

    'rockets.exe': Unloaded 'C:\Windows\SysWOW64\nvd3dum.dll'

    The thread 'Win32 Thread' (0x2af0) has exited with code 0 (0x0).

    The thread 'Win32 Thread' (0x2aec) has exited with code 0 (0x0).

    The thread 'Win32 Thread' (0x2ae8) has exited with code 0 (0x0).

    The thread 'Win32 Thread' (0x2af8) has exited with code 0 (0x0).

    The program '[10952] rockets.exe: Native' has exited with code 0 (0x0).

    The program '[10952] rockets.exe: Managed (v4.0.30319)' has exited with code 0 (0x0).

     

     

    • Edited by Joshua Holden Tuesday, February 8, 2011 1:19 PM typos (kb batteries low)
    • Moved by Jesse Jiang Thursday, February 10, 2011 3:45 AM (From:Visual C++ General)
    Tuesday, February 8, 2011 1:17 PM

All replies

  •  

    Hi Joshua Holden 

     

    I think your issue should be raised in the XNA Framework Forum. I believe they will know more information of this issue than us, and I will move this one to off-tpoic.

     

    Thanks for your understanding,

    Jesse

     


    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Thursday, February 10, 2011 3:45 AM