-
1. Re: database
peterj Nov 24, 2006 3:56 PM (in response to justin_sane)Were you logged in at the time? If not, your processAction code will get an exception. Being lazy, I simply catch the exception within processAction and keep on going.
If the above does not match your situation, please post the stack trace. -
2. Re: database
justin_sane Nov 24, 2006 6:42 PM (in response to justin_sane)When logged it doesn't crash, but still can't store anything in the db.
In processAction i use prefs.setValue(key, value);
and in doView i use prefs.getValue(key,def);
But in doView it allways return def...
You asked me the stack trace, but i don't have a clue how I do that...
Thant you for your help. -
3. Re: database
peterj Nov 24, 2006 7:16 PM (in response to justin_sane)After setting the preferences in processAction, you must store them:
prefs.setValue(key, value);
prefs.store();
Regarding the stack trace, you stated that "it just crashes". The "crash" should have given a stack trace.