VSPrinter8 and VSReport8 crash during rendering

Posted by: admin on 6 July 2022, 9:53 pm EST

  • Posted 6 July 2022, 9:53 pm EST

    Hi,

    We have a problem with rendering a report. The render function is

    bool Render(LPDISPATCH VSPrinter)
    {
        static BYTE parms[] = VTS_DISPATCH; // VTS_DISPATCH is 0x09
        bool retval { true };
        try
        {
            InvokeHelper(0x67, DISPATCH_METHOD, VT_EMPTY, NULL, parms,                VSPrinter);
        }
        catch(_com_error& e)
        {
            retval = false;
            logf("Cannot render the report, com+ error [%s]", e.ErrorMessage());
        }
    
        return retval;
    }
    
    

    When the render function starts, after few seconds it crashes and I get the _com_error.

    The ErrorMessage() function returns “Unknown error 0x800A017D”

    The same render function works perfect with all other reports, only this one crashes.

    The data set has around 16K records.

    Any idea what the error means and who generates it? Thank you

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels