Page 1 of 1

PostPosted: Mon Apr 10, 2006 9:09 pm
by Tom Miller
I recently upgraded to a T/X, and am having trouble in some code that I've run successfully over the years on a T3, Handera 330, Vx, etc. etc.

The problem comes when I try to make a list of memo names. It takes forever (well, over a minute) for the following code to execute:

if(mmopen(j)) memlist(m++)=mmgetl();

num is set equal to mmcount() (less than 100 memos during test)
m is set to zero on start

I'm using PocketC Palm compiler v7.1.2

Any ideas?


PostPosted: Thu Apr 13, 2006 3:38 am
by dewey
This code should probably be:
Code: Select all
for(j=num;j>=0;j--) {
  if(mmopen(j)) memlist[m++]=mmgetl();

Note the brackets, not parens after memlist.

Since your code used to work, I suspect it is just a typo in your post. The TX uses the new Memo application, which uses a different database from the old Memo app. The OS makes a shadow memo database for compatibility with apps that look for the old database (like PocketC). However, the OS does a very very terrible job of this - it is highly buggy and unreliable. Try deleting the MemoDB database using a tool like FileZ. This will force the OS to rebuild it, which may fix the problem.

PostPosted: Thu Apr 13, 2006 5:58 pm
by Tom Miller
Thanks for your reply, Jeremy. Yes, I made a typo in my post -- thanks for assuming that and forging ahead. :)

I wondered if the legacy PIM dbs might be at fault, but as I mentioned, I had this working on a T3. I wouldn't be surprised if some extra bugs had crept in with Garnet, though, so I tried your suggestion of deleting MemoDB. But that didn't work.

Perhaps as a next approach, I might access the newer PIM dbs directly. But then I lose the memo function front end provided by PocketC. Do you think this is a reasonable approach? Do you have any plans to re-write the memo functions for the new PIM dbs?


PostPosted: Sun Apr 16, 2006 1:32 pm
by dewey
It is a reasonable approach, and since the memos are just string, this is a pretty easy way to go.

Pocket Architect already supports the updated PIM directly. There are no plans to release another version of PocketC, since PocketC Architect is its more feature-rich replacement.