Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (497)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  alt+tab sometimes (5-10% of the time) freezes the display in Windows XP.  (Read 1959 times)
0 Members and 1 Guest are viewing this topic.
Offline zappsweden

Junior Member




Java games rock!


« Posted 2007-03-21 16:47:32 »

My game can alt+tab from the main menu without problem but when I alt+tab from the game with all threads running then in like 5-10% of the times I do alt+tab it freezes the display on my windows XP and I have to CTRL+ALT+DELETE to kill the java process.

The bug only happens when I run game in full screen mode and also it never happens when alt+tabbing back to the game always happens when I am alt tabbing out of the game to windows. Do I need to detect when windowdeactivated or windowstatechanged or whatever and switch to windowed mode before that alt+tab freezes the display or is that not possible?

Another different question which I have been asked from testers is why the game is not an application but a process as in when you CTRL+ALT+DELETE you do not see it as an application. This could not make any difference for this case or in general for any kind of issue anyway?
Online princec

JGO Kernel


Medals: 378
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #1 - Posted 2007-03-22 10:24:33 »

Is this in plain Java2D?

Cas Smiley

Offline zappsweden

Junior Member




Java games rock!


« Reply #2 - Posted 2007-03-22 12:13:54 »

Yes, a pure Swing application with NO openGL or anything.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Online princec

JGO Kernel


Medals: 378
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #3 - Posted 2007-03-22 14:03:52 »

Almost certainly a driver issue of some sort.

Cas Smiley

Offline zappsweden

Junior Member




Java games rock!


« Reply #4 - Posted 2007-03-22 14:19:41 »

Almost certainly a driver issue of some sort.

Cas Smiley

I heard other ppl also had the same problem. So is it a bad driver for the graphic card or for the display and is there no way for me to work around it?

If it is correct what you are saying then I should thank you very much because else I would probably spend alot of time (which I already have) bumping my head against a wall if I think it is the Java code fault.

So, is there no way to see that alt+tab coming and quickly set the full screen off before the alt+tab comes into effect (also tried it but never go it to work)?
Online princec

JGO Kernel


Medals: 378
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #5 - Posted 2007-03-23 10:18:29 »

Alt tab is unfortunately handled by the OS, and just on top of that, the native AWT code - I don't think there's any easy way around it.
Just out of interest - does it happen with any LWJGL apps? (Say, Titan Attacks for example). That'd pretty much make it a dead cert for being dicky drivers.

Cas Smiley

Offline trembovetski

Senior Member




If only I knew what I'm talking about!


« Reply #6 - Posted 2007-06-06 15:59:14 »

What java version are you using? There were a bunch of full-screen-related improvements
in Java 6. See if you can reproduce the issue on Java 6.

Also, what video board do you have, and on what OS?

Dmitri
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

UprightPath (12 views)
2014-09-20 20:14:06

BurntPizza (26 views)
2014-09-19 03:14:18

Dwinin (40 views)
2014-09-12 09:08:26

Norakomi (70 views)
2014-09-10 13:57:51

TehJavaDev (95 views)
2014-09-10 06:39:09

Tekkerue (49 views)
2014-09-09 02:24:56

mitcheeb (70 views)
2014-09-08 06:06:29

BurntPizza (52 views)
2014-09-07 01:13:42

Longarmx (39 views)
2014-09-07 01:12:14

Longarmx (45 views)
2014-09-07 01:11:22
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!