My application works just fine on the SDK 2.1 emulator, but on my Nokia 6600 the application crashes at the following line:

iPbkEngine->Database().CountL()

Database() does not return null. Before this line is executed a CPbkContactEngine (iPbkEngine) has been created. What could be wrong? Any ideas?

I have tried with a trap around, and it doesn't leave. So I guess it is some kind of panic.
Could it have something to do with accessing the CContactDatabase object?

B t w, why does Nokia not use their own CPbkContactEngine in any of the examples? They actually use CContactDatabase in one example instead...

Would appreciate any help very much.