Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!yale!mintaka!bloom-beacon!eru!hagbard!sunic!mcsun!cernvax!chx400!ethz!neptune!inf.ethz.ch!dchrist From: dchrist@inf.ethz.ch (Dan Christensen) Newsgroups: comp.sys.mac.programmer Subject: problem with Communications Toolbox Keywords: connection tool, CMNew Message-ID: <14247@neptune.inf.ethz.ch> Date: 7 Nov 90 11:57:25 GMT Sender: news@neptune.inf.ethz.ch Distribution: comp Lines: 21 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