Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


keiokrysha

Member Since 12 Sep 2012
Offline Last Active Sep 26 2012 08:06 AM

Topics I've Started

D3D11: CORRUPTION: ID3D11DeviceContext::ClearRenderTargetView: First parameter is corru...

13 September 2012 - 08:36 AM

Hi, I am encountering a problem in my program, the program can be built sucessfully, but if I try to run it, it pops up a window says "Unhandled exception at 0x77ad15de in akatsuki.exe: 0x0000087D: 0x87d."

And the related output message is:
[source lang="cpp"]D3D11: CORRUPTION: ID3D11DeviceContext::ClearRenderTargetView: First parameter is corrupt or NULL. [ MISCELLANEOUS CORRUPTION #13: CORRUPTED_PARAMETER1 ]First-chance exception at 0x7689b9bc in akatsuki.exe: 0x0000087D: 0x87d.Unhandled exception at 0x77ad15de in akatsuki.exe: 0x0000087D: 0x87d.[/source]
The related code to the "CelarRenderTargetView" is:
[source lang="cpp"] g_pImmediateContext->ClearRenderTargetView( g_pRenderTargetView, ClearColor );[/source]
I cannot see any problem here.
And the Visual Studio 2010 automatically opens a new tab with the title "xnamathmatrix.inl(Please see attach files)
Please help, thanks!

D3D11 SDK Tutorial question

13 September 2012 - 01:32 AM

In the SDK tutorials, some of them use .fx files to store shaders information, take Tutorial04 as an example, it has the .fx file "Tutorial04.fx",
Can anybody tell me why if I create a .fx file with the same content(copy/paste from "Turotial04.fx") but different title, then change the two places in the code where the file title are used:
[source lang="cpp"]hr = CompileShaderFromFile( L"Tutorial04.fx", "PS", "ps_4_0", &pPSBlob );[/source]
Change L"Tutorial04.fx" to new .fx file tile
[source lang="cpp"]hr = CompileShaderFromFile( L"Tutorial04.fx", "VS", "vs_4_0", &pVSBlob );[/source]
Change L"Tutorial04.fx" to new .fx file title
Then the program pops up an error message? "
[source lang="java"]if( FAILED( hr ) ) { MessageBox( NULL, L"The FX file cannot be compiled. Please run this executable from the directory that contains the FX file.", L"Error", MB_OK ); return hr; }[/source]

That says only a .fx file with title "Tutorial04" will work here, I guess it has something to do with the resource.h and Tutorial04.rc files, but I do not know what it is. Can anybody help? Thanks.

Cannot open the .fx shader file?

12 September 2012 - 12:44 PM

Hi
I tried to write some D3D11 code, "build" is successful, information see below:

[source lang="cpp"]1>------ Rebuild All started: Project: akatsuki, Configuration: Debug Win32 ------1>Build started 9/13/2012 9:43:23 PM.1>_PrepareForClean:1> Deleting file "Debug\akatsuki.lastbuildstate".1>InitializeBuildStatus:1> Creating "Debug\akatsuki.unsuccessfulbuild" because "AlwaysCreate" was specified.1>ClCompile:1> stdafx.cpp1> akatsuki.cpp1>Manifest:1> Deleting file "Debug\akatsuki.exe.embed.manifest".1>LinkEmbedManifest:1> akatsuki.vcxproj -> C:\Users\kai\Documents\Visual Studio 2010\Projects\akatsuki\Debug\akatsuki.exe1>FinalizeBuildStatus:1> Deleting file "Debug\akatsuki.unsuccessfulbuild".1> Touching "Debug\akatsuki.lastbuildstate".1>1>Build succeeded.1>1>Time Elapsed 00:00:01.53========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========[/source]

but when "start debugging", the program stops at opening the .fx shader file, information see below:

[source lang="cpp"]'akatsuki.exe': Loaded 'C:\Users\kai\Documents\Visual Studio 2010\Projects\akatsuki\Debug\akatsuki.exe', Symbols loaded.'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB file'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\d3d11.dll', Cannot find or open the PDB file'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll', Cannot find or open the PDB file'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\dxgi.dll', Cannot find or open the PDB file'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\user32.dll', Cannot find or open the PDB file'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll', Cannot find or open the PDB file'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\lpk.dll', Cannot find or open the PDB file'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\usp10.dll', Cannot find or open the PDB file'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll', Cannot find or open the PDB file'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll', Cannot find or open the PDB file'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll', Cannot find or open the PDB file'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll', Cannot find or open the PDB file'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll', Cannot find or open the PDB file'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\version.dll', Cannot find or open the PDB file'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\dwmapi.dll', Cannot find or open the PDB file'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\D3DX11d_43.dll', Cannot find or open the PDB file'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\ole32.dll', Cannot find or open the PDB file'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\msvcr100d.dll', Symbols loaded.'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\imm32.dll', Cannot find or open the PDB file'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\msctf.dll', Cannot find or open the PDB file'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\uxtheme.dll', Cannot find or open the PDB file'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\clbcatq.dll', Cannot find or open the PDB file'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\oleaut32.dll', Cannot find or open the PDB file'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\setupapi.dll', Cannot find or open the PDB file'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll', Cannot find or open the PDB file'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\devobj.dll', Cannot find or open the PDB file'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\wintrust.dll', Cannot find or open the PDB file'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\crypt32.dll', Cannot find or open the PDB file'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\msasn1.dll', Cannot find or open the PDB file'akatsuki.exe': Unloaded 'C:\Windows\SysWOW64\setupapi.dll''akatsuki.exe': Unloaded 'C:\Windows\SysWOW64\devobj.dll''akatsuki.exe': Unloaded 'C:\Windows\SysWOW64\cfgmgr32.dll''akatsuki.exe': Loaded 'C:\Windows\SysWOW64\igd10umd32.dll', Cannot find or open the PDB file'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\d3dx10_40.dll', Cannot find or open the PDB file'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\D3D11SDKLayers.dll', Cannot find or open the PDB fileD3DX11: ID3DX11DataLoader::Load - can't open Akatsuki.fx[/source]

Please help, thanks!
And can anybody tell me what are all those "Cannot find or open the PDB file" about?

PARTNERS