hi hi!

i was testing an internal alarm program using POL and code warrior, i have 1 
class to store a name and date variable and another class to store arrays of 
the name/date class. everything works fine. but when the alarm triggers and the 
program tries to run the CRecordStream function i get the following error. what 
would be the possible solution?

InternalAlarm(1.0) just changed the emulated program counter to 0x8003B4EA. 
This address is invalid because it's neither in ROM nor RAM.

Coding of where the problem happens:

void CInternalAlarmData::Load2(UInt16 p_nIndex)
{       
        CDatabase m_Database;
        Err err = 
m_Database.OpenOrCreate(0,"InternalAlarmDB",'inAl','DATA',true);
        CRecordStream rs((CDatabase *)&m_Database,p_nIndex); <---- error
        
        rs >>m_strName
        >>m_cDate
        >>m_iIndex;
        
        rs.Close();     
        m_Database.Close();
}
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to