The problem looks like it is happening because you're not allocating memory
for refP.  AlmGetAlarm doesn't do any allocation; you need to have a local
DWord whose address you pass.  As it is, you're passing an invalid pointer
and thus overwriting something random in memory... which seems to cause a
crash later on.

-David Fedor
Palm Developer Support


Reply via email to