-----BEGIN PGP SIGNED MESSAGE-----

Thanx for your response. I tried it with twm and both frames appear, so it
seems to be due to kwm (KDE Window Manager).

But still I get messages like this:

Tried to free bogus memory 81c9ea8, ignored
Tried to free bogus memory 81c9f80, ignored
free: double-freed at 8215860
free: double-freed at 82158D8

only with jdk1.1.6 and not with jdk1.1.3. Program was BurnIT-1.0 (ask
www.freashmeat.com for it).

The bug with Swing-Applications and Menu is still there; Menues overwrite the
Menutitle until I move the whole window. This does not happen with 1.1.3, but
happens with both kwm and twm.

Example (you need Swing 1.0.2 for this!):
- ------- cut here --------
import com.sun.java.swing.*;

class SwingBug extends JFrame {
    SwingBug() {
        JMenu m = new JMenu( "File" );
        m.add( new JMenuItem( "Open" ) );
        JMenuBar mb = new JMenuBar();
        mb.add( m );
        getContentPane().add( mb );
        setSize( 200, 100 );
        show();
    }

    public static void main( String argv[] ) {
        new SwingBug();
    }
}
- ------- and here -------

Kurt

Am Tue, 04 Aug 1998 schrieb Martin Wickman:
>On Tue, 4 Aug 1998, Kurt Huwig wrote:
>
>> Linux: SuSE Linux 5.2
>> Kernel: 2.0.35
>> LibC: libc.so.5.4.44
>> JDK: 1.1.6v2 (from java-linux.org)
>> Processor: AMD K6-233
>> With and without Motif 2.0
>> WindowManager: KDE 1.0
>> X-Server: XFree86 Version 3.3.2
>> RAM: 64MB
>> Swap: 128MB
>> 
>> The following (also attached for convenience) program works 
>> with JDK1.1.3, but not with JDK1.1.6. 
>> It should create two frames.
>> 
>> JDK 1.1.3 (from SuSE): Both frames appear
>> JDK 1.1.6: Both frames appear, flicker a bit and the second frame 
>>       disappears Sometimes I get messages about Bogus free memory 
>>       and unallocated memory, but not in this small sample.
>> 
>> It seems to be the 'setResizable( false )' that makes the problems. If I omit
>> it, everything works fine.
>
>Great. I just wanted to say that I experience the same behavior as you. I
>haven't tried JDK1.1.3, only 1.1.6. I'm using glibc and KDE 1.0. I
>remember someone mention this as a KDE problem.
>
>A few additions:
>
>* I checked the KDE-buglist and saw a few bugs like this one (see
>  http://buglist.kde.org)
>
>* setResizable(boolean) is a call to FramePeer.setResizable(boolean)
>
>* The bug only appears when the boolean argument is false
>
>* ICQ for Java is affected
>
>I would be great to know if there are other Windowmanagers that have 
>this thing as well. Use Kurts code below to test:
>
>- ---------- cut here -----------
>import java.awt.Frame;
>
>class JDK116Bug {
>        public static void main( String argv[] ) {
>                Frame a = new Frame();
>                a.setSize( 50, 50 );
>                a.show();
>
>                Frame b = new Frame();
>                b.setSize( 50, 50 );
>                b.setResizable( false ); // this line causes trouble!
>                b.show();
>        }
>}                                             

- -------------------------------------------------------------
If you put a PC-formatted disk into a Macintosh, you can read it.
If you put a Mac-formatted disk into a Win95-PC, it asks you
whether it should format it
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv

iQBVAwUBNcdIC0cqiS0id3pJAQHq0AIAlwqejXJxl0aUl2JbQknHd0NuGTZvhHR6
VgalLGkCzkS0vu9On4uLVeGezytZu6n+q6Bbg9IigdzhDYCYSwgr5w==
=MT5e
-----END PGP SIGNATURE-----

Reply via email to