title: Problem when loading large image in Samsung device(J2me game)
body: <p>When i try to loading large image(1440*400)in Samsung device . Its show java error. But in nokia is run fine. The bg1.png image size is only 3kb</p>
  
  <p>Sample code </p>
  
  <pre><code>  Image bg;
  
     try {
  
             bg=Image.createImage(("/Bg1.png"));
  
          } 
       catch (IOException ex) {
  
              ex.printStackTrace();
  
          }
  </code></pre>
  
  <p>In run Method</p>
  
  <p>public void run() {</p>
  
  <pre><code>    Graphics g=getGraphics();
  
      while(true)
      {
  
          g.drawImage(bg, 0, getHeight()-bg.getHeight(),0);
           flushGraphics();
      }
  }
  </code></pre>
  
  <p>Its shows game error in Samsung.  How to fix this problem </p>
  
  <p>I also trying with this example</p>
  
  <pre><code>Image source;
      source = Image.createImage(600,400);  
              g=getGraphics();
             bg=Image.createImage("/res/bg1.png");
  </code></pre>
  
  <p>If i make <strong>Image.createImage(700,400)</strong> or <strong>Image.createImage(600,500)</strong> Its show out of memory error in emulator also. If the value is less than or equal to <strong>1000</strong> means its work fine. I not understand whats the problem ?</p>