checkin is fullscreen supported

how do i check for fullscreen support in LWJGL?? because i have met a condition where posibly my hardware do not supported fullscreen. i got a JVM crash message like this :

An unexpected error has been detected by HotSpot Virtual Machine:

EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000000, pid=2456, tid=2380

Java VM: Java HotSpot™ Client VM (1.5.0_04-b05 mixed mode, sharing)

Problematic frame:

C 0x00000000

An error report file with more information is saved as hs_err_pid2456.log

If you would like to submit a bug report, please visit:

http://java.sun.com/webapps/bugreport/crash.jsp

but if i switch it using window mode, it running fine. right now i’m switching between fullscreen and window mode via applicaton parameter.

but how do i check it in my code, if the hardware is not supporting fullscreen and move to window mode instead???

TiA

could you post some more info ? , code , stacktrace
lwjgl shouldn’t crash the VM regardless if its supported or not

no, i only got those crash message.

maybe it’s my hardware, because when i’m using the same code (the basic rendering from LWJGL wiki) using my computer at home (with geforce 4 graphics card) it work fine. i having this error when using antoher computer with onboard graphics card (S3 ProSavageDDR).

i’m using JDK 1.5.0_04 and LWJGL 0.98-1.

here i’ll attach the log file generated by JVM

It sounds like driver problem to me… . I would try to install newer drivers for that old graphics card. Maybe that will solve the problem,

maybe it is the problem, but unfotunately i have the latest driver for this VIA on board graphics card… :frowning:

Hang on, that’s an infamously bad S3 chipset you’ve got there. Elias has only just fixed a crash bug on S3 in LWJGL - was it released in 0.98 or is it coming in 0.99? Or has the bug not been fixed?

Cas :slight_smile:

is that so…

so i guess there’s no way for me to check such a problem from inside the game and switch to window mode, didn’t i?

so i just have to put this problem in my game FAQ ;D

Thank You all guys