Hello
This is the class MyExposeListener:
Quote:
import org.gnu.gtk.event.ExposeEvent;
import org.gnu.gtk.event.ExposeListener;
import com.irex.mobipocket.reader.Utils;
import com.irex.sdk.DisplayUpdate;
public class MyExposeListener implements ExposeListener
{
public boolean exposeEvent(ExposeEvent arg0)
{
if(arg0.isOfType(ExposeEvent.Type.EXPOSE))
{
System.out.println("refresh");
DisplayUpdate displayupdate = DisplayUpdate.getInstance();
displayupdate.dispMainWinFullQ();
}
return true;
}
}
|
This class is invoked as an event by the constructor of class TextBuffer:
Quote:
w.addListener(new MyExposeListener());
|
The class TextBuffer runs and sometimes returns following errors and the program ends its execution:
Quote:
1) *** glibc detected *** /usr/lib/jvm/java-1.4.2-gcj-4.1-1.4.2.0/bin/java: double free or corruption (!prev): 0x08082918 ***
2) *** glibc detected *** /usr/lib/jvm/java-1.4.2-gcj-4.1-1.4.2.0/bin/java: double free or corruption (fasttop): 0x0822f898 ***
3) *** glibc detected *** /usr/lib/jvm/java-1.4.2-gcj-4.1-1.4.2.0/bin/java: double free or corruption (out): 0x08254d98 ***
4) *** glibc detected *** /usr/lib/jvm/java-1.4.2-gcj-4.1-1.4.2.0/bin/java: free(): invalid next size (fast): 0x0821dfa0 ***
5) *** glibc detected *** /usr/lib/jvm/java-1.4.2-gcj-4.1-1.4.2.0/bin/java: free(): invalid pointer: 0x080abf60 ***
|
These errors depend from the instruction:
Quote:
w.addListener(new MyExposeListener());
|
because without this instruction I have no errors during the execution.
How can solve this problem?
Thanks
Stex83.