Problem with Memo object

Discuss PocketC for Palm OS (including Desktop Edition)

Problem with Memo object

Postby gcastell on Fri Jul 04, 2008 12:22 am

Ok, as far as I know this is supposed to be easy and for some weird reason is not working, check this:

Code: Select all
@app MemoTest {
  creator = "METE"; // creator id
  name = "MemoTest"; // display name
  dbname = "MemoTest"; // name of .prc database
handler MemoTest.onstart() {
  bool mOpen;
  Memo memo;

  mOpen = memo.find("WebLaunch");
  if (mOpen)


Simple right?, It doesn't work in my Centro, I got the following error: Addr: 60 Invalid stack reference. Based on my own opinion is the find function that has the problem, can anyone help me?


Posts: 3
Joined: Wed Jul 02, 2008 2:12 pm

Re: Problem with Memo object

Postby dewey on Tue Jul 08, 2008 6:54 am

I think the problem is that you are setting up the app handler (onstart), without really defining an app (no main form, for example).

Replace "handler MemoTest.onstart()" with "main()", and you should be fine.
Site Admin
Posts: 749
Joined: Sun Oct 21, 2007 5:12 am

Return to PocketC for Palm OS

Who is online

Users browsing this forum: No registered users and 1 guest