Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!shadooby!oxtrap!time
From: time@oxtrap.uucp (Tim Endres)
Newsgroups: comp.sys.mac.programmer
Subject: CTB CMNew() problems, answered
Message-ID: <1989Sep28.183109.18988@oxtrap.uucp>
Date: 28 Sep 89 18:31:09 GMT
Reply-To: time@oxtrap.UUCP
Organization: Ocwen Trading, Inc.
Lines: 14


I posted a week or so ago concerning a problem getting CMNew() to
succeed. Thanks to Jim Beninghaus of MacDTS for finding the problem.
It is a subtle problem with the documentation.

The bufferSizes field of the CMNew call is an array of 6 longs. The
documentation reads:

   "To have the manager assign the sizes, this field
    should be set to zero."

To a C programmer, this says, "pass NULL for the array".
Well, that does not work. You *must* pass the array and fill in
"each field" of the array to be zero. Problem solved, thanks Jim.