[ Show ]
Support VoyForums
[ Shrink ]
VoyForums Announcement: Programming and providing support for this service has been a labor of love since 1997. We are one of the few services online who values our users' privacy, and have never sold your information. We have even fought hard to defend your privacy in legal cases; however, we've done it with almost no financial support -- paying out of pocket to continue providing the service. Due to the issues imposed on us by advertisers, we also stopped hosting most ads on the forums many years ago. We hope you appreciate our efforts.

Show your support by donating any amount. (Note: We are still technically a for-profit company, so your contribution is not tax-deductible.) PayPal Acct: Feedback:

Donate to VoyForums (PayPal):

Login ] [ Contact Forum Admin ] [ Main index ] [ Post a new message ] [ Search | Check update time | Archives: 12345678[9]10 ]

[ Next Thread | Previous Thread | Next Message | Previous Message ]

Date Posted: 07:40:39 11/14/00 Tue
Author: Michel
Subject: Re: Get DIB Failed
In reply to: James Wendell 's message, "Re: Get DIB Failed" on 13:41:22 11/03/00 Fri

I have done more testing on this. There are two issues to this. The first is that there is a

limit on the size of a single image (with Windows 9.X having more difficulty with larger


The other is a problem with resources. This is the problem experienced with James's and

Martin's sample projects (thumbnail viewers). Windows simply cannot allocate very many GDI

resources with dealing with large graphics. In a test project, where I simply create TJpegGraphic's and store them in a list

(not even displayed on screen), Win98 failed after 36 images, and Win2000 failed after 49. This

is on a computer with 128Mb of ram. Each JPEG image was 710Kb, which uncompresses to a fairly

large image (2048x1536 true color). For thumbnail viewers, this means that the original image

should not be loaded, but only a resized one. After testing, Win2000 was able to load 4986 small images (100x75) before running out of resources.

Best regards,


> Michel, I have emailed you a copy of my thumbnail test
> program which clearly shows that the "CreateDibGraphic
> fail" message will appear at random while loading a
> series of IDENTICAL images with different names,
> usually after loading about 20 or more images in a
> directory. I really think that we all need a way
> around the Windows API call. I know that Larry
> Griffiths recommended another technique. How about
> DirectX or DirectDraw. Are there ways to create a DIB
> using these calls? In any event, I would appreciate
> any comments after you have tested my program. If
> necessary, I can provide you with more images. Thanks.

[ Next Thread | Previous Thread | Next Message | Previous Message ]


[ Contact Forum Admin ]

Forum timezone: GMT-5
VF Version: 3.00b, ConfDB:
Before posting please read our privacy policy.
VoyForums(tm) is a Free Service from Voyager Info-Systems.
Copyright © 1998-2019 Voyager Info-Systems. All Rights Reserved.