When CEdit::Create returns 0
Posted on 1997-08-12
I am developing a program with VC++ 4.0. My development environment is on a Windows NT 4.0 system. The program I am developing is being ported over to a Windows 3.11 (Windows For Workgroups) with Win32s installed. That target machine is a 386 with 8 Megabytes of physical memory, and the virtual memory is set at approximately 16 Megabytes.
Here is the problem. I am dynamically allocating objects that are derived from the CEdit class. Eventually, the code calls the base class function CEdit::Create with the appropriate parameters. On the 386 machine, about 89 to 95 objects get created OK, and then CEdit::Create returns a 0, indicating that the object could not be created.
Do any of your experts out there know under what conditions CEdit::Create will return a 0? The Microsoft documentation does not provide much help. All I can find so far is that the return value from CEdit::Create is non-zero for success or 0 if it fails, but the documentation does not tell me why or what to look for. I really could use some help on this