A trappable error
Posted: Fri Sep 21, 2012 5:52 am
Bonjour
après avoir installé gflax sur mon serveur 2003 j'ai l'erreur suivante
Unexpected error
/index.asp
A trappable error (C0000005) occurred in an external object. The script cannot continue running.
Mon script est le suivant
Hier ca marchait bien jusqu'à ce que j'installe ghostscript pour pouvoir afficher les pdfs.
depuis j'ai tout désinstallé et réinstallé gflax 2.82 mais j'ai tjrs l'érreur
merci pour votre aide
Yann
après avoir installé gflax sur mon serveur 2003 j'ai l'erreur suivante
Unexpected error
/index.asp
A trappable error (C0000005) occurred in an external object. The script cannot continue running.
Mon script est le suivant
Code: Select all
Set ctrl = server.createobject("GflAx.GflAx")
File=request.querystring("fichier")
on error resume next
const AX_JPEG = 3
const AX_To16Colors = 256
With ctrl
.EnableLZW = TRUE
.LoadBitmap File
if err.number <> 0 then
'response.redirect "erreur.asp?Fichier="&File
end if
.ChangeColorDepth AX_To16Colors
'.EnableLZW
newWidth = request.querystring("w") 'Get the height according to the width (keep the ratio)
newHeight = (newWidth * .Height) / .Width
.Resize newWidth, newHeight 'Resize the pciture
'.FontName = "arial"
'.FontSize = 8
.TextOut chrom, 2, 2, RGB(255, 255, 255) 'Write library version on the picture
.SaveJPEGProgessive=true
.SaveJPEGQuality=40
.Saveformat = AX_JPEG
largeur=ucase(.width)
hauteur=ucase(.height)
response.contenttype = "image/jpeg"
response.binarywrite .SendBinary
end with
set ctrl=nothing
depuis j'ai tout désinstallé et réinstallé gflax 2.82 mais j'ai tjrs l'érreur
merci pour votre aide
Yann