rate up
0
rate down
Problem with InitD2D_D3D101_DWrite
Ok, i tried to split all code to classes, i did it, no error's. But, then game runs, it breaks at InitD2D_D3D101_DWrite. I just don't know what happened :/ I would be really thankfull if you download all of code, fix it, and send me link to it. Thanks! This splitted code is from LoadObjModels tutorial. http://www2.zippyshare.com/v/gyjxSOrf/file.html
Comments
could you please say what the error is? and give code around that line?
on Nov 07 `15
iedoc
First of all, please don't ask me to download all your code and fix a problem. Next time please post the exact error you get, and any code around the spot that breaks. I did end up downloading your code and found you have InitD2D_D3D101_DWrite declared twice, once at the top of the Initialize.cpp, and another in Initialize.h. remove the declaration at the top of the Initialize.h. I didn't run your code, so i'm not sure if that fixes the issue or not
on Nov 07 `15
iedoc
problem : Exception thrown at 0x013B9AB7 in d3d11NormalMap.exe: 0xC0000005: Access violation reading location 0x00000000. If there is a handler for this exception, the program may be safely continued. breaks right here : hr = d3d11Device->CreateTexture2D(&sharedTexDesc, NULL, &sharedTex11); i have declared function twice, but it didn't fix the problem :/
on Nov 07 `15
IamU4
i have declared function twice, i removed function declaration in initialaizing.cpp but it didn't fix the problem :/*
on Nov 07 `15
IamU4
put a breakpoint on that line. check d3d11Device and sharedTexDesc to make sure they are good pointers. you are having a problem because either d3d11Device or sharedTexDesc is an invalid pointer. a pointer to 0x00000000 is a null pointer, which probably means that either d3d11Device was not initialized correctly, or sharedTexDesc was not set up right
on Nov 08 `15
iedoc
Chosen Answer
rate up
0
rate down
I found out that problem is with D3DDevice, still can't find a solution.
Comments
walk through your code. put a breakpoint where you start initializing your device, and continue through your code until you find a problem. check the address that d3ddevice points to as you walk through the code. does it get released? is it ever anything other than a null pointer?
on Nov 08 `15
iedoc
I already deleted whole project. Problem was in the line : CreateSwapChainAndDevice(not sure if it's how you write it).
on Nov 08 `15
IamU4
Glad you found the problem, why did you delete your whole project though?
on Nov 09 `15
iedoc
this project was just a test. I wanted to see if i can split code into classes (as i can see i don\'t)...
on Nov 09 `15
IamU4
after i finish the directx 12 tutorials, i\'m thinking of making a couple tutorials on game code architecture, so you might find those useful. it\'ll be quite a while though, so in the meantime you might want to read up on some game engine designs
on Nov 10 `15
iedoc
I\'m a little bit confused, so all companies (Rockstar, Dice) uses not their own 3rd party engines like Unity or unreal engine, but a with who you can easiely create objects and other things?
on Nov 10 `15
IamU4
Some mistakes were made : I\\\'m a little bit confused, so all companies (Rockstar, Dice) uses not their own 3rd party engines like Unity or unreal engine, but a engine who with you can easiely create objects and other things?
on Nov 10 `15
IamU4
there are many many ways companies do it. some use 3rd party software, others roll their own
on Nov 11 `15
iedoc
Sign in to answer!