VoyForums
[ 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: 123[4]5678910 ]


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

Date Posted: 06:41:05 02/18/03 Tue
Author: Michel
Subject: Re: GetDIB Failed on XP but i believe not the way that has been discusssed!
In reply to: Al Christoph 's message, "GetDIB Failed on XP but i believe not the way that has been discusssed!" on 13:25:52 02/16/03 Sun


Hi Al,

About the RLE compression, I don't think this would be it, because once a bitmap is read from disk it is decompressed.

The only thing I can see for know is that Windows was unable to allocate the handle for the DIB. Are you able to consistently reproduce the problem with a specifc file. Please email me the file, I will have a look at it.

Best regards,

Michel


>I Get a GetDIB error which i believe is unrelated to
>any of the previous postings. I'm using the source
>code that includes the comment dated Apr 03, 2002
>which discuss the use of GlobalAlloc rather than
>getmem.
>
>This happens only on certain bitmaps - as in my
>previous postings from sources which I do not control.
>So ..... I put a call to Win32Check in immediately
>after the GetDiBits code. Here is the response.
>
>System Error. Code: 6.
>The handle is invalid
>
>Further checking suggests that the results returned by
>GetBitMapHeader are reasonable. The picture is
>displayed by Outlook Express, the XP viewer, and MS
>Paint. The source of the pic is an e-mail. The
>interesting thing is that OE saves the pic as about
>200 KB while MS Paint when it edited the 200KB image
>increased the file size to 300+ KB. Is there a clue
>here? Is it perhaps a RLE Compressed Bitmap? Further,
>the working 300 kb file does not even exercise the
>code which causes grief to the 200 KB file.
>
>I could trace things out in detail, but any
>suggestions from those who know things better than i
>would be helpful.
>
>Regards,
>Al

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


Replies:

  • Re: GetDIB Failed on XP but i believe not the way that has been discusssed! -- Michel, 09:46:43 03/05/03 Wed
  • Re: GetDIB Failed on XP but i believe not the way that has been discusssed! -- Al Christoph, 17:22:41 03/09/03 Sun
    [ 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.