GFLAx/ASP crashing mysteriously

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: XnTriq, helmut, xnview

Hachi

GFLAx/ASP crashing mysteriously

Post by Hachi »

We use GFLAx dll in our testing server and most of the time the component is working great. Howerer sometimes the component crashes and rebooting the iis is the only sollution to fix the faulthy state.

Our configuration:
- IIS 5, win2000 server
- jpeg files (500 kb, 1240 x ___) are resized to 420px in asp page with component and send with Response.BinaryWrite ctrl.SendBinary to browser.

Bug (faulthy state) seems to appear when the test site has many simultanous users accessing pages which use the component.

Code example:

imgFile=Request("img")
Set ctrl = Server.CreateObject("GflAx.GflAx")
Width = 420
Height = 420
If ctrl.Width>ctrl.Height Then
newWidth = Width : newHeight = (newWidth * ctrl.Height) / ctrl.Width
Else
newHeight = Height : newWidth = (newHeight * ctrl.Width) / ctrl.Height
End if
ctrl.Resize newWidth, newHeight
ctrl.Saveformat = 1
ctrl.SaveJPEGQuality = 80
Response.ContentType = "image/jpeg"
Response.BinaryWrite ctrl.SendBinary
Set ctrl=Nothing

Has someone else found the same behaviour with the component and are there any workarounds to problem ?
User avatar
xnview
Author of XnView
Posts: 44920
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: GFLAx/ASP crashing mysteriously

Post by xnview »

Hachi wrote:Has someone else found the same behaviour with the component and are there any workarounds to problem ?
Strange, someone has the same problem...??
Pierre.