GFLAx/ASP crashing mysteriously
Posted: Thu Feb 23, 2006 8:32 pm
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 ?
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 ?