Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!think.com!yale!cs.yale.edu!pittenger-laurence From: pittenger-laurence@cs.yale.edu (Laurence Arthur Pittenger) Newsgroups: comp.sys.mac.programmer Subject: C+- problems; HELP!!! Summary: Problem with new() Message-ID: <30344@cs.yale.edu> Date: 23 Apr 91 02:57:45 GMT Sender: news@cs.yale.edu Organization: Yale University Computer Science Dept., New Haven, CT 06520-2158 Lines: 22 Nntp-Posting-Host: zoo-gw.cs.yale.edu Originator: pitteng@suned.CS.Yale.Edu What should be a simple problem but has defied several hours of work. Running in the "fake" C++ environment of Think C, fondly called C+-, I'm having trouble with, of all things, creating an object. The new() command is consistenly returning a NULL. Now, I've used objects before, and I'm basically mimicing code I have which works, so I can't figure out what's up. I've got included, the oops library added, etc. I assume there's some esoteric fact which is eluding me about what to include in the project or what header files to include, but I've gone over code comparing pretty closely and can't find it. Also, I imported an object from the other (working) project and it *also* returned a NULL, so it's not something w/ my object's code. Any help will be greatly appreciated; thanks in advance. In the dark, LP -- Laurence A. Pittenger CSNET : pittenger-laurence@cs.yale.edu BITNET : pitlaua@yalevm , pittenger-laurence@yalecs