DELPHI AREA
MESSAGE BOARD
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Bug in Picshow component ???

 
   Reply to topic    DELPHI AREA Forum Index -> DELPHI AREA's Products
View previous topic :: View next topic  
Author Message
Terry
Member


Joined: 06 Sep 2003
Posts: 3

PostPosted: 06/09/03 11:31    Post subject: Bug in Picshow component ??? Reply with quote

Hello,

I initialize PicShow compoenent with following details:

PicShow.Picture.LoadFromFile('C:\1.BMP'); // dimensions are 704 x 576
PicShow.Picture.Bitmap.PixelFormat := pf24bit;
PicShow.StyleName := 'Fade';

Now when I try to do this:
PicShow.Execute;

I get Access Violation error message @ line 567 in PSEffect module. I'm getting this error only when I select 'Fade' style. Please help me in fixing this issue.

Regards,

Terry Bogard
Back to top
View user's profile
Kambiz
Administrator


Joined: 07 Mar 2003
Posts: 208

PostPosted: 06/09/03 13:16    Post subject: Reply with quote

You do not need to set the bitmap format as follow.

Code:
PicShow.Picture.Bitmap.PixelFormat := pf24bit;

The component itself make a copy of the image and changes its format to one that's more suitable for the active effect.

Could you please post the bitmap here? And what are your Windows, Delphi, and PicShow versions?
Back to top
View user's profile Send e-mail Visit poster's website
Terry
Member


Joined: 06 Sep 2003
Posts: 3

PostPosted: 08/09/03 05:19    Post subject: Reply with quote

Hi,

I'm using Picshow v3.05 in Delphi 7 and operating system is Windows XP Professional 2002 Service Pack 1. I'm also attaching one of the BMPs.


There is also another bug in PicShow component and its details are as follows:

when i try to assign a transition effect by setting StyleName property I get Access Voilation error message. I have fixed this bug by modifying line 614 in procedure TCustomPicShow.SetStyleName. The old code was:

for TheStyle := Low(TShowStyle) to High(TShowStyle) do

The modified version is:

for TheStyle := 1 to High(TShowStyle) do

Kind Regards,

Terry



6.zip
 Description:

Download
 Filename:  6.zip
 Filesize:  830.93 KB
 Downloaded:  21 Time(s)

Back to top
View user's profile
Kambiz
Administrator


Joined: 07 Mar 2003
Posts: 208

PostPosted: 08/09/03 18:46    Post subject: Reply with quote

Thank you so much for the bug fix.

I guess the first reported AV exception was related to the second one, because on my machine your code works without any problem.

Are you still getting the AV exception?
Back to top
View user's profile Send e-mail Visit poster's website
Terry
Member


Joined: 06 Sep 2003
Posts: 3

PostPosted: 09/09/03 04:09    Post subject: Reply with quote

I'm really sorry that I missed an important point while stating the problem. The problem occurs on selective Styles e.g. Fade. Following is the exact code I'm testing:

PicShow.Picture.LoadFromFile('c:\1.bmp'); // it is the same bmp i have uploaded earlier
PicShow.StyleName := 'Fade';
PicShow.Execute;

// Access Voilation error message
Back to top
View user's profile
Kambiz
Administrator


Joined: 07 Mar 2003
Posts: 208

PostPosted: 09/09/03 22:56    Post subject: Reply with quote

I tried your code with the attached image, and there was no problem at all.

Please try to delete all PicShow's dcu files and rebuild your package. It may solve the problem.
Back to top
View user's profile Send e-mail Visit poster's website
Display posts from previous:   
   Reply to topic    DELPHI AREA Forum Index -> DELPHI AREA's Products 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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB 2.0.6 © 2001, 2002 phpBB Group