Re: How to prevent databse from being overwritten in xmem after a power cycle?
| Newsgroups | gmane.comp.hardware.rabbit-semiconductor |
|---|---|
| Message-ID | <[email protected]> |
Hi John, You're probably correct, the battery might be low. I will need to check the voltage. Thanks again. AFTER allocating memory space [ pMemBlock_Member = (far char *) _xalloc(&tempsz, 0, XALLOC_BB); ] , the values are initialized. However, I don't want to allocate memory if I have already done so before power cycle. How do i check if startAddrMark and StopAddrMark exist? If it doesn't exist I would allocate the xmem space and initialized it. If Start/Stop markers already exist, nothing no allocating is necessary. My current code doesn't work. //check to see if the block is initialized (look for the beginning & ending marker) if ((*pStartAddrMark_Member != BLOCK_START_MEMBER) || (*pStopAddrMark_Member != BLOCK_END_MEMBER))