[comp.sys.mac.programmer] CTB CMNew

time@oxtrap.uucp (Tim Endres) (09/29/89)

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.