Crash with iOS Single line edit box
If I put the iOS Single line edit box on a frame, then run on an actual iOS device, click into the box to bring up the keyboard, then run an action to go to the previous frame, the code crashes on this method:
// ---------------------------------------------------------------------------
// Entree traitement evenement lie a un objet
// AX= ID Message / Code message
// ESI= Structure RO
// ---------------------------------------------------------------------------
-(BOOL)handle_Event:(CObject*)pHo withCode:(int)code
{
rhCurCode = code; // Stocke pour access rapide
// Des evenements definis?
// ~~~~~~~~~~~~~~~~~~~~~~~
short temp = (short)-(code>>16); // Vire le type
LPDWORD pw = pHo->hoEvents+temp; // Les evenements lies a l'objet
DWORD dw = *pw;
if ( dw != 0 ) // Un pointeur direct?
{
[self computeEventList:(LPDWORD)((LPBYTE)eventPointers+d w) withObject:pHo];// Evalue les evenements
return YES;
}
return NO;
}
The line it breaks on is DWORD dw = *pw;
Re: Crash with iOS Single line edit box
What is the conidtion you use to go to the other frame?
Re: Crash with iOS Single line edit box
I have an active object on screen, an event condition to test if user clicks on the active object and if so run the previous frame action from the storyboard. I only get a crash if the ios keyboard is showing when I click on this active object. A work around is to disable the single line edit box and enabke it again before the previous frame action, this hides the keyboard and stops the error.
Incidentally, could you add an action we can call to put an edit box in focus and show the keyboard automatically without having to ask the user to click in the box first? The enable action doesn't seem to do this and I can't see another way to do it'
Re: Crash with iOS Single line edit box
Quote:
Originally Posted by AndyH
I only get a crash if the ios keyboard is showing
Maybe related to this bug reported earlier:
http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Main=34079&Number=2479 74#Post247974
Re: Crash with iOS Single line edit box
Corrected, for single and multiple line edit zone.
Re: Crash with iOS Single line edit box
Fantastic, if you're able to add an action to set the focus and open the keyboard while you're there, that would be sweet. :)
Re: Crash with iOS Single line edit box
Francois I think it's great you and Andos keep fixing these things, but how do customers like myself get access to these fixes beyond waiting for the 253 release? It seems like lots of defects have been addressed but I am still waiting anxiously for the next release.
Thanks.
Re: Crash with iOS Single line edit box
Keith are you in the iOS beta forum?
I bet they will be released there for testing here shortly.
Re: Crash with iOS Single line edit box
Not sure where that is Jeff. Where do I find that?
Re: Crash with iOS Single line edit box
I do not think he is. But if you want to participate to the beta testing (we welcome new testers), and be ready to find bugs, please send me your registration number and you real life name.