Article View: borland.public.cppbuilder.nativeapi
Article #7022Re: Memory problems: new versus GlobalAlloc
From: Remy Lebeau (TeamB)
Date: Wed, 23 Mar 2005 17:56
Date: Wed, 23 Mar 2005 17:56
24 lines
1792 bytes
1792 bytes
"Wim Bekker" <no-no-no-mail@no-no-noware.com> wrote in message news:42413c01$1@newsgroups.borland.com... > Documentation about Borlands memory manager and GlobalAlloc etc. There is no documentation for Borland's manager. GloballAlloc() is part of Microsoft's Win32 API, so refer to Microsoft's documentation. > Documentation that explains the WinApi in detail (alignment etc). Look at Microsoft's Win32 API documentation. > If StretchDIBits returns 0 (0 scanlines copied), GetLastError > returns 0 (all is ok). Then there really were zero scanlines to be copied in the first place. If you expected more, then you did not set up the parameters correctly. If StretchDIBits() had actually failed, it would have returned GDI_ERROR instead of 0. Gambit
Technical Details
Message-ID:
<4241ada5$2@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<42403f3c@newsgroups.borland.com> <42408062$3@newsgroups.borland.com> <42413c01$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,6b3a605b9bc38024 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <42403f3c@newsgroups.borland.com> <42408062$3@newsgroups.borland.com> <42413c01$1@newsgroups.borland.com> Subject: Re: Memory problems: new versus GlobalAlloc Date: Wed, 23 Mar 2005 09:56:44 -0800 Lines: 26 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <4241ada5$2@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1111600549 68.69.17.41 (23 Mar 2005 09:55:49 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail