BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Is this bug present in D2005?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics
View previous topic :: View next topic  
Author Message
Lord Crc
Guest





PostPosted: Fri May 06, 2005 9:40 am    Post subject: Is this bug present in D2005? Reply with quote



Hi,

If you run the following code in D7 you'll get an AV:

var
jpg: TJPEGImage;
begin
jpg:= TJPEGImage.Create;
Image1.Picture.Bitmap.Assign(jpg);
jpg.Free;
end;

It seems it forgets to check if there ever was any JPEG data to decode
before trying to send it to the decoder :)

I just wanted to know if it was present in D2005 or not before i enter
it in QC (and the D2005 build # would be nice too)

Cheers
- Asbjørn
Back to top
Peter Below (TeamB)
Guest





PostPosted: Fri May 06, 2005 7:10 pm    Post subject: Re: Is this bug present in D2005? Reply with quote



In article <hlem71hvcempun7sd7sf0lkuddcka2pkb0 (AT) 4ax (DOT) com>, Lord Crc wrote:
Quote:
If you run the following code in D7 you'll get an AV:

var
jpg: TJPEGImage;
begin
jpg:= TJPEGImage.Create;
Image1.Picture.Bitmap.Assign(jpg);
jpg.Free;
end;

It seems it forgets to check if there ever was any JPEG data to decode
before trying to send it to the decoder Smile

Well, GIGO applies here, too <g>.
Quote:

I just wanted to know if it was present in D2005 or not before i enter
it in QC (and the D2005 build # would be nice too)

It still causes an AV in D2005 update 2, (9.0.1882.30496 according to
the about dialog).


--
Peter Below (TeamB)
Use the newsgroup archives :
http://www.mers.com/searchsite.html
http://www.tamaracka.com/search.htm
http://groups.google.com
http://www.prolix.be



Back to top
Lord Crc
Guest





PostPosted: Fri May 06, 2005 8:51 pm    Post subject: Re: Is this bug present in D2005? Reply with quote



On Fri, 06 May 2005 21:10:35 +0200, "Peter Below (TeamB)"
<100113.1101 (AT) compuXXserve (DOT) com> wrote:

Quote:
It seems it forgets to check if there ever was any JPEG data to decode
before trying to send it to the decoder :)

Well, GIGO applies here, too <g>.

Heh, well, I'd expect it to behave as if I assigned a blank TBitmap to
it.

Quote:
I just wanted to know if it was present in D2005 or not before i enter
it in QC (and the D2005 build # would be nice too)

It still causes an AV in D2005 update 2, (9.0.1882.30496 according to
the about dialog).

I'm gonna report it then, unless you got any objections? :)

- Asbjørn

Back to top
Lord Crc
Guest





PostPosted: Fri May 06, 2005 9:18 pm    Post subject: Re: Is this bug present in D2005? Reply with quote

On Fri, 06 May 2005 21:10:35 +0200, "Peter Below (TeamB)"
<100113.1101 (AT) compuXXserve (DOT) com> wrote:

Quote:
It seems it forgets to check if there ever was any JPEG data to decode
before trying to send it to the decoder :)

Well, GIGO applies here, too <g>.

Btw, the origin of this finding was of course a silly bug on my
behalf: I forgot a .LoadFromFile :)

- Asbjørn

Back to top
Peter Below (TeamB)
Guest





PostPosted: Sat May 07, 2005 9:03 am    Post subject: Re: Is this bug present in D2005? Reply with quote

In article <t2mn71h3kpngpaagfmneq3vbt725mk265b (AT) 4ax (DOT) com>, Lord Crc wrote:
Quote:
It still causes an AV in D2005 update 2, (9.0.1882.30496 according to
the about dialog).

I'm gonna report it then, unless you got any objections? Smile

Go ahead, it certainly is inconsistent behaviour.


--
Peter Below (TeamB)
Use the newsgroup archives :
http://www.mers.com/searchsite.html
http://www.tamaracka.com/search.htm
http://groups.google.com
http://www.prolix.be



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.