🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #450

Re: CreateWindow failing

#450
From: Martin Schloeter
Date: Sat, 04 Apr 1992 22:42
17 lines
1378 bytes
t > Does anyone know the reasons under which CreateWindow can fail?
t > How can you find out why CreateWindow failed (indicated by
t > returning 0)?  In an application I am writing, after creating 29 (exactly
t > 29, and 29 every time) Edit controls, the next call to CreateWindow to
t > create an Edit control return 0.
The EditControls are using memory of the local heap for their edit buffers. May 
be, that your amount of local heap is fully used with EditControl #29.
But this is only a guess! Try to verify it! Allocate some memory on the local 
heap (simply a big global variable - it's the same data segment) and look, if 
the possible number of EditControls changes.
If this is the reason, you should allocate the edit buffers in the global heap. 
The way to do this was printed in Microsoft System Journal and also discussed 
in this area.
Greetings
Martin Schloeter

 
Technical Details
Message-ID: <15f4aa7b@p3.f67.n245.z2.fidonet.org>
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!darwin.sura.net!Sirius.dfn.de!urmel!slcdec!sungate.fido.de!p1.hippo.fido.de!eurologic.fido.de!Martin_Schloeter

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!darwin.sura.net!Sirius.dfn.de!urmel!slcdec!sungate.fido.de!p1.hippo.fido.de!eurologic.fido.de!Martin_Schloeter
Date: Sun,  5 Apr 92 00:42:58 +0200
From: Martin_Schloeter@eurologic.fido.de (Martin Schloeter)
Subject: Re: CreateWindow failing
Message-ID: <15f4aa7b@p3.f67.n245.z2.fidonet.org>
Newsgroups: comp.windows.ms.programmer
X-Comment-To: Thomas@f1.n6000.z2.fidonet.org (Thomas)
Organization: martin_schloeter@eurologic.fido.de 
Lines: 18