dchrist@inf.ethz.ch (Dan Christensen) (11/07/90)
I am trying to use the Connection Manager (CM) from the Macintosh Communications Toolbox and have run into a problem. As a first attempt at using the CM I wrote a simple Pascal program that opens a connection and sends some test data and this worked fine. Then I converted the code to Modula-2 and added it to an existing application written in Modula-2. This required converting the Pascal interface files to M2 .def files, which was fairly straightforward. The problem I am having is that CMNew is sometimes returning NIL. The first time I run the application after restarting the machine, it works fine. Then later attempts usually (but not always) fail. I check the free memory on both the application and the system heaps and both have plenty. In case it matters, I am running on a Mac IIx using MPW. The problem occurs with both the Finder and the Multifinder. Any ideas? Please respond by e-mail and I'll e-mail or post a summary if requested. Thanks. Dan