The line below works in DFF 18.2 but crash in DF19.1, in the debugger with an error message Unhandled Exception in Debugged Application. ACCESS_VIOLATOIN .... When the .exe is run the program crash without any error message. VPE ver 7.1.

I have tried with uninstalling Avast, but this time it didn't help.

The below function is called when the crash apperas

Code:
Function DoVpeRenderPicture VpeCoord_Type x1 VpeCoord_Type y1 String sFileName Integer iFlags Returns Integer
        if Not (phDocument(Self)) Begin
            Error 255 VPEERROR_DOCUMENT_NOT_OPEN
            Procedure_Return
        End
        Append sFileName (Character(0))
        Function_Return (VpeRenderPicture(phDocument(Self),x1,y1,sFileName,iFlags))
End_Function
Any idea?
Bengt