Hi, I have written program using java1.2. The program first of all displays image in one frame and then closes it and displays frame with some menubars and toolbars. Whenever the first frame is destroyed and main frame comes up it gives following exception: Exception occurred during event dispatching: java.lang.OutOfMemoryError at java.awt.image.Raster.createPackedRaster(Compiled Code) at java.awt.image.DirectColorModel.createCompatibleWritableRaster(Compiled Code) at sun.awt.motif.MComponentPeer.createImage(Compiled Code) at java.awt.Component.createImage(Compiled Code) at java.awt.Component.createImage(Compiled Code) at javax.swing.RepaintManager.getOffscreenBuffer(Compiled Code) at javax.swing.JComponent.paint(Compiled Code) at java.awt.Container.paint(Compiled Code) at sun.awt.motif.MComponentPeer.handleEvent(Compiled Code) at java.awt.Component.dispatchEventImpl(Compiled Code) at java.awt.Container.dispatchEventImpl(Compiled Code) at java.awt.Window.dispatchEventImpl(Compiled Code) at java.awt.Component.dispatchEvent(Compiled Code) at java.awt.EventQueue.dispatchEvent(Compiled Code) at java.awt.EventDispatchThread.run(Compiled Code) I am not able to debug where the problem is? I am using P-III with 128 MB RAM. The program is similar to any commerical software which shows company name first and then the main window. Thanking You Alpesh === KOTHARI ALPESH D. STUDENT M. TECH. CEDT INDIAN INSTITUTE OF SCIENCE BANGALORE-560 012 INDIA __________________________________________________ Do You Yahoo!? Bid and sell for free at http://auctions.yahoo.com ---------------------------------------------------------------------- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]