Trying to make a MessageBox, but I get an ERROR

Hello,

So I’l trying to make a message Box, and have made 3 methods : initBox, and showBox and hideBox

Basically initBox just initialise all the sprites of my box, and i’m calling it in my scene init method,

showBox and hideBox are called for some specifc touchs.

whenever showBox gets called, i have this error of (via Debug) : SIGSEGV (signal SIGSEGV: address access protected (fault address: 0x3f6f1e46)) exactly at : nextElement = (tHashTimerEntry *)element->hh.next;
in CCScheduler.cpp

I have no idea how to fix this as the erro comes from cocos2D files wich i’m not very familiar with

If you have a better way to make a dialogbox or have an idea how to fix this, please tell me.

How are you creating the MessageBox and Touch events and what is happening there? Your error sounds like maybe on update?