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 );