CIPImage crash

Version 1
    This document was generated from CDN thread

    Created by: Yuval Hertzog on 19-01-2009 03:37:33 AM
    I've changed the /stockchart/stockchart.asp sample (which is working) to load a different PNG and I get this message:

    Active Server Pages error 'ASP 0115'
    Unexpected error
    A trappable error (C0000005) occurred in an external object. The script cannot continue running.

    However, when I test the same PNG file with the ImageViewer.EXE, it works fine. I can only assume the ImageViewer is using the same COM server.

    Any idea how do I approach this?

    Subject: Re: CIPImage crash
    Replied by: David Staudt on 19-01-2009 08:59:08 PM
    Can you put in some log statements to determine exactly which line of the script is failing?

    Can you catch the exception and display the exception message/text?

    Looking at the code, it does not check to verify whether this line results in good data:

    var rawdata = Inet1.GetURL("<your URL>", 1);

    If there is bad data, for example empty or not png data, then this line will probably fail: