View Single Post
Old 03-06-2007, 08:50 AM   #19
jfisher
CrackBerry Addict
 
Join Date: Jun 2005
Location: Manchester, UK
Model: BOLD
Carrier: t-mobile
Posts: 714
Default

and relating to what skipper said it's important that the string your hash is created from is unique, so if your persistent object is called namesStore and you create your hash from that - it's not so unique and could potentially cause issues if another developer has a store object by the same name and created his has from it. for this reason it's a good idea to randomize the string your create the hash from, i always use the name of the object followed by some randomly typed numbers, ie.:

//myStore1551535345
//0x770698450c55d247L
myStore = PersistentStore.getPersistentObject(0x770698450c55 d247L);
__________________
new job doesn't allow a public profile - please do not contact this user with questions, you will not get a response. good luck!
Offline