• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.
Sign in to follow this  
Followers 0
lomateron

unhandled exception CreateWindow()

8 posts in this topic

It doesn't matter which directx 10 sample of the 2010 Directx SDK I try to run in debugging mode on visual studio 2013 or 2010 or 2012, I always get an unhandled exception on the CreateWindow() function

I didn't get this exception before and I don't know how it started

anyone with this problem too?

Edited by lomateron
0

Share this post


Link to post
Share on other sites

running the RaycastTerrain sample in the directx 10 samples

 

First-chance exception at 0x1000238E (DestructionView.dll) in RaycastTerrain.exe: 0xC0000005: Access violation writing location 0x00000000.
First-chance exception at 0x1000238E (DestructionView.dll) in RaycastTerrain.exe: 0xC0000005: Access violation writing location 0x00000000.
First-chance exception at 0x1000238E (DestructionView.dll) in RaycastTerrain.exe: 0xC0000005: Access violation writing location 0x00000000.
First-chance exception at 0x73374D66 in RaycastTerrain.exe: 0xC0000005: Access violation reading location 0x00000010.
 
 
 *** An Access Violation occurred in "F:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Samples\C++\Direct3D10\RaycastTerrain\Debug\RaycastTerrain.exe" :
 
The instruction at 0000000073374D66 tried to read from an invalid address, 0000000000000010
 
 *** enter .exr 000000000024B9B0 for the exception record
 ***  enter .cxr 000000000024B4C0 for the context
 *** then kb to get the faulting stack
 
Unhandled exception at 0x73374D66 in RaycastTerrain.exe: 0xC000041D: An unhandled exception was encountered during a user callback.
 

and this is the line that is the same no matter which sample I run

 

HWND hWnd = CreateWindow( L"Direct3DWindowClass", strWindowTitle, WS_OVERLAPPEDWINDOW,
                                                  x, y, ( rc.right - rc.left ), ( rc.bottom - rc.top ), 0,  hMenu, hInstance, 0 );
Edited by lomateron
0

Share this post


Link to post
Share on other sites

You are passing a pointer somewhere that is 0 and shouldnt be zero. This 0xC0000005: Access violation writing location 0x00000000 exception always means you are trying to write to something through a pointer that has value 0.

 

I expect either strWindowTitle, hMenu or hInstance to be 0.

1

Share this post


Link to post
Share on other sites

but I haven't modified those samples, and as I said no matter which random sample I select, It allways gets that exception

0

Share this post


Link to post
Share on other sites

You are passing a pointer somewhere that is 0 and shouldnt be zero. This 0xC0000005: Access violation writing location 0x00000000 exception always means you are trying to write to something through a pointer that has value 0.
 
I expect either strWindowTitle, hMenu or hInstance to be 0.


Actually, considering the text

Unhandled exception at 0x73374D66 in RaycastTerrain.exe: 0xC000041D: An unhandled exception was encountered during a user callback.


I would be more inclined to believe the window procedure is null or does something with something null.
0

Share this post


Link to post
Share on other sites

Although the last error occurs during the execution of the CreateWindow function, that may just be the culmination of the previous errors. I.e., something else may be getting trashed before that line.

 

I would start by looking at the exceptions before that line.

 

E.g., googling indicates DestructionView.dll is a part of NVIDIA PhysX. That library looks suspicious to be part of an SDK example. Have you been working with that library before? Driver libraries do get loaded, but I would look at those errors before worrying about a CreateWindow function.

 

I don't know what IDE you're working in (Visual Studio?), but (just a guess) it appears that you may be loading a foreign (foreign to the example) library for some reason. When you start the app, your output window (or debug window) should be displaying lots of information about what libraries are being loaded. Take a look through that info for dlls, etc., that don't come from Windows or the SDK directories. EDIT: don't worry about "Cannot find or open the PDB file" - that's just an indication that debug builds for those libraries aren't available.

Edited by Buckeye
1

Share this post


Link to post
Share on other sites
I solved the problem
there is this folder named F:\Users\AppData\Local\Owfics which has two files, one is DestructionView.dll and the other is DestructionView.2
when I run a sample in debig mode the last loaded line loads that DestructionView.dll and from there the errors start
I tried deleting that folder but it said that it was being used by a program, then I made myself sure that there was no program running and then tried deleteng it and it said the same, so I rename the folder and the files then restarted my computer and the first message that appears in my screen is this error message
RegSvr32
The module F:\Users\AppData\Local\Owfics\DestructionView.dll failed to load
Make sure the binary is stored at the specified path or debug it to check for problems with the binary or dependent .DLL files.
The specified module could not be found.
 
I pressed ok to the message
Then I opened a random sample to run it in debug mode and IT WORKED!!!
the last loaded lines no longer is a load to DestructionView.dll
 
but now every time I turn on my PC the RegSvr32 error message appears
Edited by lomateron
0

Share this post


Link to post
Share on other sites

FYI - as mentioned, it appears that destructionview.dll is an NVIDIA Physx Lab file. You didn't mention whether you'd ever played around with Physx.

 

If you can verify for yourself that you don't need that dll running, you may want to take a look at some RegSrvr32 info. Just for fun, you may want to scan the files with your antivirus program - just in case.

Edited by Buckeye
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0