• Create Account

### #Actualmrheisenberg

Posted 27 March 2013 - 08:02 PM

I'm calling

IDXGIOutput* output;
DXGIOutput outputInterface = DXGIOutput(output);


adapter is a DXGIAdapter* that I create with EnumAdapters1 from the factory object, it gives me no problems, I get the description and it properly gives me the GPU name when I take its DXGI_ADAPTER_DESC1.
DXGIOutput is just a thin wrapper that contains an IDXGIOutput* and has a SafeRelease(obj) macro used in it's destructor to release the contained IDXGIOutput*.This is the macro:
#define SafeRelease(obj) {if(obj){(obj)->Release();(obj)=nullptr;}}It's just the standart SafeRelease used across most tutorials, but It kept telling me this when SafeRelease was called:

Unhandled exception at 0x00150138 in Rendering.exe: 0xC0000005: Access violation executing location 0x00150138.

since I was only using DXGIOutput outputInterface temporarily, once it got killed at the end of the function and it's destructor got called.

So I change it to:
#define SafeRelease(obj) {if(obj){(obj)->Release();}}
And now it stopped giving me the error.However, on the call stack it says:

<Unknown function> Unknown

[Frames below may be incorrect and/or missing]

I linked to Microsoft symbol server just in case, but that didn't fix it the [Frames below may be incorrect and/or missing] issue.
So after I fixed the problem with the destructor, the line above it(adapter->EnumOutputs(0, &output);) started to give me an

Unhandled exception at 0x7728A4DE (ntdll.dll) in Rendering.exe: 0xC0000005: Access violation reading location 0xFEEEFEF6.

And on the top of the call stack there's:

ntdll.dll!<Unknown function> Unknown
[Frames below may be incorrect and/or missing, no symbols loaded for ntdll.dll]
dxgi.dll!<Unknown function> Unknown
dxgi.dll!<Unknown function> Unknown
dxgi.dll!<Unknown function> Unknown
dxgi.dll!<Unknown function> Unknown

All if this is really confusing, changing the destructor of an object can't interfere with something that happens before it's called o_O unless the frames really are not in that order, but in that case I have no idea what can be done.Has anyone ever had this problem?It says in MSDN, that the symbol files are included in Windows 7 by default, and even so I tried with the Microsoft symbol server.

### #1mrheisenberg

Posted 27 March 2013 - 08:01 PM

I'm calling

IDXGIOutput* output;
DXGIOutput outputInterface = DXGIOutput(output);


adapter is a DXGIAdapter* that I create with EnumAdapters1 from the factory object, it gives me no problems, I get the description and it properly gives me the GPU name when I take its DXGI_ADAPTER_DESC1.
DXGIOutput is just a thin wrapper that contains an IDXGIOutput* and has a SafeRelease(obj) macro used in it's destructor to release the contained IDXGIOutput*.This is the macro:
#define SafeRelease(obj) {if(obj){(obj)->Release();(obj)=nullptr;}}It's just the standart SafeRelease used across most tutorials, but It kept telling me this when SafeRelease was called:

Unhandled exception at 0x00150138 in Rendering.exe: 0xC0000005: Access violation executing location 0x00150138.

since I was only using DXGIOutput outputInterface temporarily, once it got killed at the end of the function and it's destructor got called.

So I change it to:
#define SafeRelease(obj) {if(obj){(obj)->Release();}}
And now it stopped giving me the error.However, on the call stack it says:

<Unknown function> Unknown

[Frames below may be incorrect and/or missing]

I linked to Microsoft symbol server just in case, but that didn't fix it the [Frames below may be incorrect and/or missing] issue.
So after I fixed the problem with the destructor, the line above it(adapter->EnumOutputs(0, &output);) started to give me an
Unhandled exception at 0x7728A4DE (ntdll.dll) in Rendering.exe: 0xC0000005: Access violation reading location 0xFEEEFEF6.
And on the top of the call stack there's:

ntdll.dll!<Unknown function> Unknown
[Frames below may be incorrect and/or missing, no symbols loaded for ntdll.dll]
dxgi.dll!<Unknown function> Unknown
dxgi.dll!<Unknown function> Unknown
dxgi.dll!<Unknown function> Unknown
dxgi.dll!<Unknown function> Unknown

All if this is really confusing, changing the destructor of an object can't interfere with something that happens before it's called o_O unless the frames really are not in that order, but in that case I have no idea what can be done.Has anyone ever had this problem?It says in MSDN, that the symbol files are included in Windows 7 by default, and even so I tried with the Microsoft symbol server.

PARTNERS