Article View: borland.public.cppbuilder.nativeapi
Article #446Re: bds2006 vcl, CreateCompatibleBitmap, EOutOfResources
From: dhoke
Date: Wed, 16 Apr 2008 12:33
Date: Wed, 16 Apr 2008 12:33
47 lines
3142 bytes
3142 bytes
Thanks... "Bob Gonder" <notbg@notmindspring.invalid> wrote in message news:1d8a041556ifu53e5i6fm8atmqksriirvs@4ax.com... > > So, you are creating a BMP of 4000 x 2500 x 4 bytes, or 40 MB. Several of them, actually, depending on user input... Some of my test images are 8-bit grayscale 8"x8" 1000DPI scans (also measuring 40MB), with the provided possibility of something even larger - although that possibility may have to be revisited now... > Those and more.... > http://search.msdn.microsoft.com/Default.aspx?brand=Msdn&refinement=&locale=en-us&lang=&query=gdi > The above pointed me to: http://blogs.msdn.com/ntdebugging/archive/2007/01/04/desktop-heap-overview.aspx which led me to: http://blogs.msdn.com/ntdebugging/archive/2006/12/15/getting-ready-for-windows-debugging.aspx for dheapmon, which produced the results: R:\kktools\dheapmon8.1\x86>dheapmon Desktop Heap Information Monitor Tool (Version 8.1.2925.0) Copyright (c) Microsoft Corporation. All rights reserved. ------------------------------------------------------------- Session ID: 0 Total Desktop: ( 5824 KB - 8 desktops) WinStation\Desktop Heap Size(KB) Used Rate(%) ------------------------------------------------------------- WinSta0\Default 3072 99.1 WinSta0\Disconnect 64 4.5 WinSta0\Winlogon 128 10.2 Service-0x0-3e7$\Default 512 32.1 Service-0x0-3e4$\Default 512 8.8 Service-0x0-3e5$\Default 512 4.3 SAWinSta\SADesktop 512 0.5 __X78B95_89_IW\__A8D9S1_42_ID 512 0.5 ------------------------------------------------------------- 99.1% usage is a little tight. Well, at least now I have some way of quantifying the value, even if I can't apparently (safely) determine this directly programmatically. Wonder how far I could get creating my own "desktop"??? Something to explore, I suppose...
Technical Details
Message-ID:
<4805f19b$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder.news-service.com!feed.xsnews.nl!border-2.ams.xsnews.nl!news.isoc.lu!newsgroups.borland.com!not-for-mailReferences:
<480512cb$1@newsgroups.borland.com> <1d8a041556ifu53e5i6fm8atmqksriirvs@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,88848d407d0d2500 X-Google-Attributes: gid10cc67,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "dhoke" <dhoke.nojunk@east-shore.com> From: "dhoke" <dhoke.nojunk@east-shore.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <480512cb$1@newsgroups.borland.com> <1d8a041556ifu53e5i6fm8atmqksriirvs@4ax.com> Subject: Re: bds2006 vcl, CreateCompatibleBitmap, EOutOfResources Date: Wed, 16 Apr 2008 08:33:22 -0400 Lines: 49 Organization: East Shore Technologies, Inc. X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 68.236.140.134 Message-ID: <4805f19b$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1208349083 68.236.140.134 (16 Apr 2008 05:31:23 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder.news-service.com!feed.xsnews.nl!border-2.ams.xsnews.nl!news.isoc.lu!newsgroups.borland.com!not-for-mail