I did this simple test:
for(int i=0;i<10000;i++){
Thinlet t = new Thinlet();
t.add(t.parse("file:///tmp/CriaPaginaHTML_desenv.xml"));
FrameLauncher d = new FrameLauncher("Page",t,700,500);
d.dispose();
System.gc();
System.out.println(i+"
memory="+(Runtime.getRuntime().totalMemory() -
Runtime.getRuntime().freeMemory()));
}
the memory grows until an out of memory exception !
when i did this other test:
for(int i=0;i<10000;i++){
Thinlet t = new Thinlet();
t.add(t.create("textfield"));
FrameLauncher f = new FrameLauncher("Page",t,700,500);
d.dispose();
System.gc();
System.out.println(i+"
memory="+(Runtime.getRuntime().totalMemory() -
Runtime.getRuntime().freeMemory()));
}
i got no error !
the "CriaPaginaHTML_desenv.xml" is attached.
Willians Casatti
willians@klais.com.br
XML to parse