Hello! I'm having the following problem with MemPtrCardNo() and PalmOS 3.0 and 2.02 (both release and debug ROMs). No problem with OS version 3.1 and above.
Code snippet: UInt32 freeBytes ; MemPtr p = NULL ; UInt16 cardNo = 0 ; p = MemPtrNew(1) ; cardNo = MemPtrCardNo(p) ; // MemoryMgrNew line 2021: Invalid Chunk Ptr (line 2009 with OS2.02) // in POSEr 3.0a6 we're in MemPtrCardNo at 0x10c12076 (10c0b85c with OS2.02) MemPtrFree(p) ; MemCardInfo(cardNo, 0, 0, 0, 0, 0, 0, &freeBytes) ; Using MemHandleCardNo() gives the same err msg. I obviously could call MemCardInfo() with a hard coded 0 for CardNo but that's not what I call clean programming ... Any hints? Thanks, andreas ------------------------------------------------------------- andreas lang SW projects PDA Swissphone Telecom Faelmisstr. 21 CH-8833 Samstagern Switzerland phone +41 1 7867 507 (main: 770, fax 771) www.swissphone.com ------------------------------------------------------------- -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
