A trappable error

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

Moderators: XnTriq, helmut, xnview

Post Reply
YannLR
Posts: 2
Joined: Fri Sep 21, 2012 5:49 am

A trappable error

Post by YannLR »

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

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
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
Post Reply