View Single Post
Old 05-27-2008, 05:42 AM   #1
stex83
Junior Member
stex83 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: May 2008
Device: 00167C002098
Error glibc detected

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.

Last edited by stex83; 05-27-2008 at 05:51 AM.
stex83 is offline   Reply With Quote