Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


#Actualmrheisenberg

Posted 28 March 2013 - 10:36 AM

ok I expanded it and same thing happens, it crashes on Release(), but when I remove the line afterwards that sets it to 0/NULL the other error appears.There's

<Unknown function>

Unknown
at the top of the call stack, so I guess there's something wrong in the COM?I don't think I initialized it wrong tho, just used 
EnumOutputs, I check the HRESULT and it's ok

edit: I tried to use IDXGIOutput1 too instead of IDXGIOutput, but I EnumOutputs() doesn't take IDXGIOutput1 as an argument, it wants an IDXGIOutput, or is IDXGIOutput1 a special case and used in a different way?

I check breakpoint by breakpoint the pointer addresses, all of the IDXGI objects seem to be getting created with valid addresses(they're not 
0x00000000 or anything similar)

Ok I fixed it, DXGIOutput outputInterface = DXGIOutput(output); should have been DXGIOutput* outputInterface = new DXGIOutput(output); otherwise it gets destroyed in the end of the frame and then I do adapterOutputs.Add(&outputInterface); I was adding a pointer to an already destroyed object (facepalm).


#4mrheisenberg

Posted 28 March 2013 - 06:28 AM

ok I expanded it and same thing happens, it crashes on Release(), but when I remove the line afterwards that sets it to 0/NULL the other error appears.There's

<Unknown function>

Unknown
at the top of the call stack, so I guess there's something wrong in the COM?I don't think I initialized it wrong tho, just used 
EnumOutputs, I check the HRESULT and it's ok

edit: I tried to use IDXGIOutput1 too instead of IDXGIOutput, but I EnumOutputs() doesn't take IDXGIOutput1 as an argument, it wants an IDXGIOutput, or is IDXGIOutput1 a special case and used in a different way?

I check breakpoint by breakpoint the pointer addresses, all of the IDXGI objects seem to be getting created with valid addresses(they're not 
0x00000000 or anything similar)
 


#3mrheisenberg

Posted 28 March 2013 - 06:05 AM

ok I expanded it and same thing happens, it crashes on Release(), but when I remove the line afterwards that sets it to 0/NULL the other error appears.There's

<Unknown function>

Unknown
at the top of the call stack, so I guess there's something wrong in the COM?I don't think I initialized it wrong tho, just used 
EnumOutputs, I check the HRESULT and it's ok

edit: I tried to use IDXGIOutput1 too instead of IDXGIOutput, but I EnumOutputs() doesn't take IDXGIOutput1 as an argument, it wants an IDXGIOutput, or is IDXGIOutput1 a special case and used in a different way?


#2mrheisenberg

Posted 28 March 2013 - 05:57 AM

ok I expanded it and same thing happens, it crashes on Release(), but when I remove the line afterwards that sets it to 0/NULL the other error appears.There's

<Unknown function>

Unknown
at the top of the call stack, so I guess there's something wrong in the COM?I don't think I initialized it wrong tho, just used 
EnumOutputs

edit: I tried to use IDXGIOutput1 too instead of IDXGIOutput, but I EnumOutputs() doesn't take IDXGIOutput1 as an argument, it wants an IDXGIOutput, or is IDXGIOutput1 a special case and used in a different way?


#1mrheisenberg

Posted 28 March 2013 - 05:37 AM

ok I expanded it and same thing happens, it crashes on Release(), but when I remove the line afterwards that sets it to 0/NULL the other error appears.There's

<Unknown function>

Unknown
at the top of the call stack, so I guess there's something wrong in the COM?I don't think I initialized it wrong tho, just used 
EnumOutputs


PARTNERS