Hi,

I used structures to store data in my Palm
application. but when i try to access the stored
structures 
it gives an error saying 

"MemoryMgrNew.c line.....  invalid handle"

In my program i retrieve the data from the form to a
temp structure and then write the filled 
record struct to the database.

Like in the Memopad examples i have used a list to
view how many records are there in the database.
But when trying to fill that list only the program
gives me the error.

Here's the code where i try to access the record from
the database.


        recHandle = DmQueryRecord(gDB,currentRecord);
        myRec = MemHandleLock(recHandle);
        
        recText = myRec->feild1;

        recText will be loaded in the list so once clicked
the whole record will be opened 
in another form.


Why does it give me a invalid handle when the record
is there in the database(i debug the program..)

Can some tell me what could be the cause for this
error.


  

Regards

Dhanushka.

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to