LWJGL Display always dispear's just when start's

Started by cornetto456, May 19, 2011, 19:21:34

Previous topic - Next topic

cornetto456

Hi , im making a game :) but now when i run it it shutdowns auto . it's not a faulth because i made a simpel Display and then when i run it the same happens .


i got Jre6

Eclipse

and LWJGL2.1.7




specs ::

------------------
System Information
------------------
Time of this report: 5/19/2011, 21:19:03
      Machine name: PB-PC
  Operating System: Windows 7 Home Premium 64-bit (6.1, Build 7600) (7600.win7_gdr.110408-1633)
          Language: Dutch (Regional Setting: Dutch)
System Manufacturer: Packard Bell
      System Model: ixtreme M5800
              BIOS: Default System BIOS
         Processor: Intel(R) Core(TM) i3 CPU         530  @ 2.93GHz (4 CPUs), ~2.9GHz
            Memory: 4096MB RAM
Available OS Memory: 4024MB RAM
         Page File: 2932MB used, 5111MB available
       Windows Dir: C:\Windows
   DirectX Version: DirectX 11
DX Setup Parameters: Not found
  User DPI Setting: Using System DPI
System DPI Setting: 96 DPI (100 percent)
   DWM DPI Scaling: Disabled
    DxDiag Version: 6.01.7600.16385 32bit Unicode




there for it was running great.


Thanks

CodeBunny

Any stacktrace? Errors? What happens on the Java side when it crashes?

Another test: Can you run Minecraft? (http://www.minecraft.net/play.jsp) If yes, then you have an example of a working LWJGL program on your computer, so it's probably something in your code instead of your hardware.

cornetto456

But even with a simpel Display like this :

imports..

public class Display{

public void start(){
try{

Display.setDisplayMode(new DisplayMode(600,400);
Display.create();

}catch (LWJGLException e){
e.printStackTrace();
System.Exit(0);

}

}

public static void main(String[] args){
Display s = new Display();
s.Start();
}


even then it diseapers


so i don't think its coding wise.


Thanks

Cornetto456

cornetto456

Got it working forgot to put the while loop :)



Thanks for the help.

CodeBunny