The code below has worked well on all handhelds I ever put my paws on – but failed miserably on the simulator:

case frmOpenEvent:
createLVL();
FrmDrawForm(pForm);
StrCopy(vars.msg1,"Action!!");
vars.msg1_framestolive=MSG_LIFETIME;
lasttic=TimGetTicks();
FrmSetFocus(pForm,FrmGetObjectIndex(pForm,FldShadow)); //allows GSPDA T9 keys to function
handled = true;
break;

The simulator gave an alert along the lines of “Invalid insertion point” – WTF?

The alert text above is a classic example for a completely unrelated error message – the reason for the alert is simple: the text field FldShadow is not high enough for the text it should contain. Just increase the height of the field – and the fatal alert is gone for good!

Related posts:

  1. How to print integers, etc into a field
  2. Finding out when a field changes
  3. A very strange StrPrintF crash
  4. OnBoardC and the glue library – changing control attributes
  5. FldFreeMemory – the field handle “cleanup service”

Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting

© 2013 TamsPalm - the Palm OS / web OS Blog Suffusion theme by Sayontan Sinha