🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #11075

FreePotBits

#11075
From: John Schultz
Date: Sat, 21 Jan 1989 03:13
29 lines
1133 bytes

  FreePotBits does nothing.  Is this bug so well
known that no one talks about it?  Here's an example code fragment:

  // open the potgo resource etc.

  allocmask = AllocPotBits(MASK);
  if (allocmask != MASK) {
    printf("error blah blah...");
    FreePotBits(allocmask);
    exit(0);
  } // end if

  FreePotBits(allocmask);

// end of program fragment

  A program containg the above code will run the first time, but
will not be able to allocate the bits the second time.  If I have
done something wrong, what is the correct way?  I've written the
exact code in Benchmark and get the same result, so I don't think
the problem is with Lattice.


  Thanks,

  John Schultz
 
Technical Details
Message-ID: <64@sdcc10.ucsd.EDU>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!ncis.llnl.gov!helios.ee.lbl.gov!nosc!ucsd!sdcc6!sdcc10!cs161agc

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!ncis.llnl.gov!helios.ee.lbl.gov!nosc!ucsd!sdcc6!sdcc10!cs161agc
From: cs161agc@sdcc10.ucsd.EDU (John Schultz)
Newsgroups: comp.sys.amiga.tech
Subject: FreePotBits
Summary: It appears to do nothing
Message-ID: <64@sdcc10.ucsd.EDU>
Date: 21 Jan 89 03:13:59 GMT
Reply-To: cs161agc@sdcc10.ucsd.edu.UUCP (John Schultz)
Organization: University of California, San Diego
Lines: 29