Hi.
I’m having problems with fullscreen exclusive mode, when changing display mode. I’m using two windows, one that is windowed all the time, the other is used in fullscreen mode.
The problem is, every time I switch back from fullscreen mode to windowed mode, I get this exception:
"An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x0
Function=[Unknown.]
Library=(N/A)
NOTE: We are unable to locate the function name symbol for the error
just occurred. Please refer to release documentation for possible
reason and solutions.
Current Java thread:
at sun.java2d.DefaultDisposerRecord.invokeNativeDispose(Native Method)
at sun.java2d.DefaultDisposerRecord.dispose(DefaultDisposerRecord.java:25)
at sun.java2d.Disposer.run(Disposer.java:102)
at java.lang.Thread.run(Thread.java:534)
Dynamic libraries:
0x00400000 - 0x00406000 C:\j2sdk1.4.2_01\bin\java.exe
0x77F50000 - 0x77FF7000 C:\WINDOWS\System32\ntdll.dll
0x77E60000 - 0x77F46000 C:\WINDOWS\system32\kernel32.dll
0x77DD0000 - 0x77E5D000 C:\WINDOWS\system32\ADVAPI32.dll
0x78000000 - 0x78086000 C:\WINDOWS\system32\RPCRT4.dll
0x77C10000 - 0x77C63000 C:\WINDOWS\system32\MSVCRT.dll
0x08000000 - 0x08136000 C:\j2sdk1.4.2_01\jre\bin\client\jvm.dll
0x77D40000 - 0x77DCC000 C:\WINDOWS\system32\USER32.dll
0x77C70000 - 0x77CB0000 C:\WINDOWS\system32\GDI32.dll
0x76B40000 - 0x76B6C000 C:\WINDOWS\system32\WINMM.dll
0x10000000 - 0x10007000 C:\j2sdk1.4.2_01\jre\bin\hpi.dll
0x003E0000 - 0x003EE000 C:\j2sdk1.4.2_01\jre\bin\verify.dll
0x008A0000 - 0x008B8000 C:\j2sdk1.4.2_01\jre\bin\java.dll
0x003F0000 - 0x003FD000 C:\j2sdk1.4.2_01\jre\bin\zip.dll
0x02CA0000 - 0x02DAF000 C:\j2sdk1.4.2_01\jre\bin\awt.dll
0x73000000 - 0x73023000 C:\WINDOWS\System32\WINSPOOL.DRV
0x76390000 - 0x763AC000 C:\WINDOWS\system32\IMM32.dll
0x771B0000 - 0x772D1000 C:\WINDOWS\system32\ole32.dll
0x5AD70000 - 0x5ADA4000 C:\WINDOWS\System32\uxtheme.dll
0x03010000 - 0x03060000 C:\j2sdk1.4.2_01\jre\bin\fontmanager.dll
0x51000000 - 0x51047000 C:\WINDOWS\System32\ddraw.dll
0x73BC0000 - 0x73BC6000 C:\WINDOWS\System32\DCIMAN32.dll
0x5C000000 - 0x5C0C8000 C:\WINDOWS\System32\D3DIM700.DLL
0x030F0000 - 0x030FD000 C:\WINDOWS\system32\PGPhk.dll
0x03110000 - 0x03119000 C:\Program Files\Samsung\Highlight Zone II\Highlight.dll
0x73DD0000 - 0x73EC2000 C:\WINDOWS\System32\MFC42.DLL
0x74720000 - 0x74764000 C:\WINDOWS\System32\MSCTF.dll
0x03170000 - 0x03193000 C:\j2sdk1.4.2_01\jre\bin\jsound.dll
0x72D20000 - 0x72D29000 C:\WINDOWS\System32\wdmaud.drv
0x72D10000 - 0x72D18000 C:\WINDOWS\System32\msacm32.drv
0x77BE0000 - 0x77BF4000 C:\WINDOWS\System32\MSACM32.dll
0x77BD0000 - 0x77BD7000 C:\WINDOWS\System32\midimap.dll
0x6FA00000 - 0x6FA07000 C:\Program Files\Gaim\idletrack.dll
0x76C90000 - 0x76CB2000 C:\WINDOWS\system32\imagehlp.dll
0x6D510000 - 0x6D58D000 C:\WINDOWS\system32\DBGHELP.dll
0x77C00000 - 0x77C07000 C:\WINDOWS\system32\VERSION.dll
0x76BF0000 - 0x76BFB000 C:\WINDOWS\System32\PSAPI.DLL
Heap at VM Abort:
Heap
def new generation total 1088K, used 0K [0x10010000, 0x10130000, 0x104f0000)
eden space 1024K, 0% used [0x10010000, 0x10010360, 0x10110000)
from space 64K, 0% used [0x10110000, 0x10110000, 0x10120000)
to space 64K, 0% used [0x10120000, 0x10120000, 0x10130000)
tenured generation total 12880K, used 8831K [0x104f0000, 0x11184000, 0x14010000)
the space 12880K, 68% used [0x104f0000, 0x10d8fe10, 0x10d90000, 0x11184000)
compacting perm gen total 5120K, used 5056K [0x14010000, 0x14510000, 0x18010000)
the space 5120K, 98% used [0x14010000, 0x145003f0, 0x14500400, 0x14510000)
Local Time = Sun Oct 19 15:38:27 2003
Elapsed Time = 21
The exception above was detected in native code outside the VM
Java VM: Java HotSpot™ Client VM (1.4.2_01-b06 mixed mode)
An error report file has been saved as hs_err_pid3200.log.
Please refer to the file for further information.
#"
–
I’m using 1.4.2_01 on WinXP, with ATI Radeon 9000 Pro, but my code doesn’t work on other systems either.
Sometimes, the exception doesn’t come until the windowed JFrame gets focus, other times it may wait for display change #2, but most of the time it comes right when the display mode is changed back.
Is there a workaround for this, or do I just have to wait for 1.5?