Re: coderInfoList not up to date

Bob Friesenhahn <[email protected]> Wed, 14 Apr 2004 16:37:05 -0500 (CDT)
Newsgroups gmane.comp.video.graphicsmagick.bugs
Message-ID <Pine.GSO.4.44.0404141627190.11901-100000@scooby.simplesystems.org>
On Wed, 14 Apr 2004, Olivier Bertini wrote:

> Hello,
>
> Sorry if this is not the right mailing list to post.

It seems like a good place.

>
> Here is what I think is a bug of coderInfoList. When I execute this code
>      }

[code removed]

> I get a list of 152 different formats but most of them are said not to be
> readable nor writable. For example the output for the "JPEG" format is:
> JPEG: <Joint Photographic Experts Group JFIF format> : Readable = false,
> Writable = false
>
> If I ask only for Readable formats I get 18 results.
>
> I'm using the 1.1 Windows binary distribution for the c API. I have
> compiled the C++ API with Borland C++Builder 6.

So all Magick++ C++ code is compiled with Borland C++ Builder 6?  If
part is compiled with Borland C++ Builder 6 but the C++ DLL from the
binary distribution is used, there will certainly be problems.  Even
at the C level, there can be differences between Microsoft and
Borland.  One difference I am aware of is that Borland may select a
different sized type for an enum depending on the range of the enum
values.

Can you try building everything using Borland C++ Builder 6 and see if
the problem goes away?

Also, does the coderInfo test (Magick++\tests\coderInfo.cpp) pass? If
this test passes, then at least the behavior is consistent.

> By the way, the "entry++;" line code is missing in the sample at
> http://www.graphicsmagick.org/www/Magick++/STL.html#coderInfoList
> The result is an endless loop :-)

Clearly a bug.  Thanks for letting me know.

Bob
======================================
Bob Friesenhahn
[email protected]
http://www.simplesystems.org/users/bfriesen



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click