TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: All
from: Phil Crown
date: 1995-11-08 17:47:22
subject: freeing container records

I have a container full of records.

I free the second record like this,

  WinSendMsg(hwndCnr, CM_REMOVERECORD,
             MPFROMP(&pcnrrecsel), MPFROM2SHORT(1,CMA_FREE));

Then to update my application pointers I use,

  pcnrrec = WinSendMsg(hwndCnr, CM_QUERYRECORD,
              MPFROMP(NULL), MPFROM2SHORT(CMA_FIRST,CMA_ITEMORDER));

pcnrrec contains the MINIRECORDCORE structure that points to the next record
in the list.

My problem is that the second record in pcnrrec is NULL, thus I loose access
to everything after the second record.

Any ideas?

phil.crown{at}bluecafe.com


--- Blue Wave/Max v2.22a
* Origin: * MacSavvy * Dallas * Mac * OS/2 * (214)250-4479 * (1:124/1208)
SEEN-BY: 270/101 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407
SEEN-BY: 712/515 517 628 713/888 800/1 7877/2809
@PATH: 124/1208 1 396/1 270/101 712/515 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.