April 25, 2024, 02:25:36 PM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


skinnedXmesh.src crash

Started by Blue Steel, November 27, 2006, 06:15:20 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Blue Steel

in the example i change from window mode to full screen

   s.CreateFullScreen(800, 600, 32,false);
//   s.CreateWindowed(0,0,800,600,AWS_CAPTION|AWS_VISIBLE|AWS_SIZE|AWS_CENTERED,0,"Skinned X example - ESC exits",NULL,false);


and when i hit the esc key to quit it errors

here is the debug info

Call stack:
ntdll! RtlpWaitForCriticalSection + 91
ntdll! RtlEnterCriticalSection + 70
d3d9! CheckFullscreen + 1457
USER32! GetDC + 109
USER32! GetDC + 335
USER32! IsWindowUnicode + 161
USER32! CallWindowProcW + 27
wblind! HInit + 61253
wbhelp! SetAddr + 1232
DINPUT! DllUnregisterServer + 440
DINPUT! DllUnregisterServer + 1246
DINPUT! DllUnregisterServer + 1357
DINPUT! DirectInputCreateEx + 19835
DINPUT! DllUnregisterServer + 1246
DINPUT! DllUnregisterServer + 1469
USER32! GetDC + 109
USER32! GetDC + 335
USER32! DefWindowProcW + 388
USER32! DefWindowProcW + 464
ntdll! KiUserCallbackDispatcher + 19
skinnedXmesh! <missing symbols>
skinnedXmesh! <missing symbols>
skinnedXmesh! <missing symbols>
skinnedXmesh! <missing symbols>
kernel32! RegisterWaitForInputIdle + 73

  http://www.codingmonkeys.com
Covers many languages including Aurora , IWBasicEbasic (Ebasic, IBasic) , Creative Basic

Ionic Wind Support Team

I'll look into it. 

When you debug an executable be sure to check the box "debug build" before creating.  Then click on the spider to run it so there is more complete information.
Ionic Wind Support Team

Blue Steel

  http://www.codingmonkeys.com
Covers many languages including Aurora , IWBasicEbasic (Ebasic, IBasic) , Creative Basic

Ionic Wind Support Team

Like I said, I will look into it.  The example was designed for windowed mode so I am probably freeing something in the wrong order.
Ionic Wind Support Team

Ionic Wind Support Team

Tried it here and couldn't make it crash full screen.  Do you know off hand which version of DX9 you have installed?   
Ionic Wind Support Team

Blue Steel

Mainboard :   Asus A7N8X2.0
Chipset :   nVidia nForce2 Ultra 400
Processor :   AMD Athlon XP @ 1833 MHz
Physical Memory :   2048 MB (2 x 1024 DDR-SDRAM )
Video Card :   ATI Technologies Inc Radeon 9600 XT - Secondary
Hard Disk :   ST3300622A (300 GB)
Hard Disk :   ST316081 (160 GB)
DVD-Rom Drive :   DVDRW 16X16
Monitor Type :   IBM IBM 6652 P275 - 20 inchs
Network Card :   Nvidia Corp nForce MCP-T Networking Adapter
Network Card :   3COM Corp, Networking Division 3C920B-EMB Integrated Fast Ethernet Controller
Operating System :   Microsoft Windows XP Professional 5.01.2600 Service Pack 2
DirectX :   Version 9.0c


more info from the debug boxes

the dissembly window
xÃÆ'Ã,«xÃÆ'Ã,«ance exception: Address 0x7C918FEA Access Violation.

locals window was empty

and the registers window contains
Integer Registers:
EAX: 0xFEEEFEEE, EBX: 0x00000000
ECX: 0x00000000, EDX: 0x0014FFC4
EDI: 0x00000000, ESI: 0x0014FFC4
ESP: 0x0012FA4C, EBP: 0x0012FAC0
EIP: 0x7C918FEA, EFL: 0x00080286
CS: 0x001B, SS: 0x0023
DS: 0x0023, ES: 0x0023
FS: 0x003B, GS: 0x0000

FP Registers:
ST0: -1.#IND000000000000
ST1: -1.#IND000000000000
ST2: -1.#IND000000000000
ST3: -1.#IND000000000000
ST4: -1.#IND000000000000
ST5: 0.5000000000000000
ST6: 0.0142517816275358
ST7: 0.0000000000000000

the original message was in  the Call stack window

  http://www.codingmonkeys.com
Covers many languages including Aurora , IWBasicEbasic (Ebasic, IBasic) , Creative Basic

Blue Steel

just ran it with that box ticked

Starting debug session...
Loading DLL: ntdll.dll
Loading DLL: C:\WINDOWS\system32\kernel32.dll
Loading DLL: C:\WINDOWS\system32\USER32.DLL
Loading DLL: C:\WINDOWS\system32\GDI32.dll
Loading DLL: C:\WINDOWS\system32\DINPUT.DLL
Loading DLL: C:\WINDOWS\system32\msvcrt.dll
Loading DLL: C:\WINDOWS\system32\ADVAPI32.dll
Loading DLL: C:\WINDOWS\system32\RPCRT4.dll
Loading DLL: C:\WINDOWS\system32\WINMM.dll
Loading DLL: C:\WINDOWS\system32\DX3D9R.DLL
Loading DLL: C:\WINDOWS\system32\d3d9.dll
Loading DLL: C:\WINDOWS\system32\d3d8thk.dll
Loading DLL: C:\WINDOWS\system32\VERSION.dll
Loading DLL: C:\WINDOWS\system32\MSVCP60.dll
Loading DLL: C:\WINDOWS\system32\CRTDLL.DLL
Loading DLL: C:\WINDOWS\system32\IMM32.DLL
Loading DLL: C:\WINDOWS\system32\wbsys.dll
First chance exception: Address 0x7C918FEA Access Violation.
Loading DLL: C:\PROGRA~1\Stardock\OBJECT~1\WINDOW~1\wblind.dll
Loading DLL: C:\WINDOWS\system32\SHELL32.dll
Loading DLL: C:\WINDOWS\system32\SHLWAPI.dll
Loading DLL: C:\WINDOWS\system32\COMCTL32.dll
Loading DLL: C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b641W
Loading DLL: C:\WINDOWS\system32\UXTHEME.DLL
Loading DLL: C:\WINDOWS\system32\msimg32.dll
Loading DLL: C:\PROGRA~1\Stardock\OBJECT~1\WINDOW~1\wbhelp.dll
Loading DLL: C:\WINDOWS\system32\ATL.DLL
Loading DLL: C:\WINDOWS\system32\OLEAUT32.dll
Loading DLL: C:\WINDOWS\system32\ole32.dll
Loading DLL: C:\WINDOWS\system32\MSCTF.dll
Loading DLL: C:\WINDOWS\system32\msctfime.ime
Loading DLL: C:\WINDOWS\system32\ctagent.dll
Loading DLL: C:\WINDOWS\system32\usp10.dll
Loading DLL: C:\WINDOWS\system32\HID.DLL
Loading DLL: C:\WINDOWS\system32\SETUPAPI.DLL
Loading DLL: C:\WINDOWS\system32\WINTRUST.dll
Loading DLL: C:\WINDOWS\system32\CRYPT32.dll
Loading DLL: C:\WINDOWS\system32\MSASN1.dll
Loading DLL: C:\WINDOWS\system32\IMAGEHLP.dll
C:\Program Files\Aurora\examples\d3d\media\Tiny_skin.bmp
The thread 0x328 exited with code: 1
The thread 0x350 exited with code: 1
The thread 0xAE0 exited with code: 1
The program 'C:\Program Files\Aurora\examples\d3d\skinnedXmesh.exe' exited with code: 1
  http://www.codingmonkeys.com
Covers many languages including Aurora , IWBasicEbasic (Ebasic, IBasic) , Creative Basic

Ionic Wind Support Team

Show me the call stack with the box ticked man ;)

It will tell me the class and line number of the error.
Ionic Wind Support Team

Blue Steel

Here you go

Call stack:
ntdll! RtlpWaitForCriticalSection + 91
ntdll! RtlEnterCriticalSection + 70
d3d9! CheckFullscreen + 1457
USER32! GetDC + 109
USER32! GetDC + 335
USER32! IsWindowUnicode + 161
USER32! CallWindowProcW + 27
DINPUT! DllUnregisterServer + 440
DINPUT! DllUnregisterServer + 1246
DINPUT! DllUnregisterServer + 1357
DINPUT! DirectInputCreateEx + 19835
DINPUT! DllUnregisterServer + 1246
DINPUT! DllUnregisterServer + 1469
USER32! GetDC + 109
USER32! GetDC + 335
USER32! DefWindowProcW + 388
USER32! DefWindowProcW + 464
ntdll! KiUserCallbackDispatcher + 19
skinnedXmesh! C3DScreen@CloseScreen + 99
skinnedXmesh! C3DScreen@_C3DScreen + 51
skinnedXmesh! main + 3729
skinnedXmesh! _main + 48
kernel32! RegisterWaitForInputIdle + 73
  http://www.codingmonkeys.com
Covers many languages including Aurora , IWBasicEbasic (Ebasic, IBasic) , Creative Basic

Ionic Wind Support Team

Now you're learning ;)  If you look at the entries the last one that was from the example source file itself is this:

skinnedXmesh! C3DScreen@CloseScreen + 99

Which tells me where to look.  The CloseScreen method of the C3DScreen class, 99 bytes past the start of the method.  So even though there isn't debug information in the libraries themselves, it gives enough info to help.  Since it works fine on my machine I will work under the assumption that there is a driver issue, since we are both using 9.0C.  My machine uses an ATI card.  Which means I'll have to poke around nVidia's site to see what I am doing wrong when terminating the full screen.

Paul.

Ionic Wind Support Team

Blue Steel

November 27, 2006, 07:08:15 AM #10 Last Edit: November 27, 2006, 07:11:50 AM by Blue Steel
i'm using an ati Video card too

Video Card :   ATI Technologies Inc Radeon 9600 XT - Secondary
(Dual monitor support.. and viewing on the second monitor)
My Main  board has the nvidia ..

but i'm using the ATI agp card
  http://www.codingmonkeys.com
Covers many languages including Aurora , IWBasicEbasic (Ebasic, IBasic) , Creative Basic

Ionic Wind Support Team

I still have more than enough to look into it though ;)
Ionic Wind Support Team

Blue Steel

I also have another debugging tool called SmartException.. heres its output

PS: I can probably dig out some more .. lol

[SmartException]
LastEx=SKINNEDXMESH.EXE
File=C:\Program Files\Stardock\SmartException\SKINNEDXMESH.EXE_1164637070.CRA
LastEx2=C:\Program Files\Aurora\examples\d3d\skinnedXmesh.exe
CrashAddr=7c918fea

Stardock SmartException Logging Information
http://www.stardock.com/products/smartexception
-----------------------------------------------

OS version : Windows XP Service Pack 2 - (2600.xpsp_sp2_gdr.050301-1519)
Video card : RADEON 9600 SERIES     
Sound card : SB Audigy Audio [A000]
Date : 11/28/06
Application Exception code: C0000005 ACCESS_VIOLATION
Crash Addr:  7C918FEA 01:00017FEA C:\WINDOWS\system32\ntdll.dll

Processor Registers (x86):
EAX:00000000
EBX:00000000
ECX:000000A8
EDX:0014D7B4
ESI:0014D7A4
EDI:00000000
CS:EIP:001B:7C918FEA
SS:ESP:0023:0012FA90  EBP:0012FB04
DS:0023  ES:0023  FS:003B  GS:0000
Flags:00090246


Current Application Call Stack:

Addr      Frame     Logical addr  Module Name
---------------------------------------------
7C918FEA  0012FB04  0001:00017FEA C:\WINDOWS\system32\ntdll.dll
7C90104B  0012FB28  0001:0000004B C:\WINDOWS\system32\ntdll.dll
4FDF6361  0012FB40  0001:00025361 C:\WINDOWS\system32\d3d9.dll
77D48734  0012FB6C  0001:00007734 C:\WINDOWS\system32\USER32.DLL
77D48816  0012FBD4  0001:00007816 C:\WINDOWS\system32\USER32.DLL
77D4C63F  0012FC04  0001:0000B63F C:\WINDOWS\system32\USER32.DLL
77D4C665  0012FC24  0001:0000B665 C:\WINDOWS\system32\USER32.DLL
7229601D  0012FC40  0001:0001501D C:\WINDOWS\system32\DINPUT.DLL
72296343  0012FC74  0001:00015343 C:\WINDOWS\system32\DINPUT.DLL
722963B2  0012FC98  0001:000153B2 C:\WINDOWS\system32\DINPUT.DLL
7228FF09  0012FCBC  0001:0000EF09 C:\WINDOWS\system32\DINPUT.DLL
72296343  0012FCF0  0001:00015343 C:\WINDOWS\system32\DINPUT.DLL
72296422  0012FD28  0001:00015422 C:\WINDOWS\system32\DINPUT.DLL
77D48734  0012FD54  0001:00007734 C:\WINDOWS\system32\USER32.DLL
77D48816  0012FDBC  0001:00007816 C:\WINDOWS\system32\USER32.DLL
77D4B4C0  0012FE10  0001:0000A4C0 C:\WINDOWS\system32\USER32.DLL
77D4B50C  0012FE38  0001:0000A50C C:\WINDOWS\system32\USER32.DLL
7C90EAE3  0012FE80  0001:0000DAE3 C:\WINDOWS\system32\ntdll.dll
0041779E  0012FE9C  0004:0000379E C:\Program Files\Aurora\examples\d3d\skinnedXmesh.exe
0041772C  0012FEB8  0004:0000372C C:\Program Files\Aurora\examples\d3d\skinnedXmesh.exe
00414EF1  0012FF98  0004:00000EF1 C:\Program Files\Aurora\examples\d3d\skinnedXmesh.exe
00414030  0012FFC0  0004:00000030 C:\Program Files\Aurora\examples\d3d\skinnedXmesh.exe
7C816FD7  0012FFF0  0001:00015FD7 C:\WINDOWS\system32\kernel32.dll
  http://www.codingmonkeys.com
Covers many languages including Aurora , IWBasicEbasic (Ebasic, IBasic) , Creative Basic