asked on February 17, 2022 Show version history

Hi,

I have written a script to create a text file in the c:\temp folder and then import the text file into Laserfiche.

When the script runs the text file is created in the temp folder but when I try to import the file it creates a document in Laserfiche but then errors with "Attempted to read or write protected memory. This is often an indication that other memory is corrupt."

Has anyone seen this issue before and how did you fix it?

 Thanks

Andrew

            using DocInfo as DocumentInfo = New DocumentInfo(rasession)
                Dim DI As New DocumentImporter
                docinfo.create("\" & GetTokenValue("Entry Name"),"DEFAULT", EntryNameOption.AutoRename)
                DI.Document = docinfo
                DI.OcrImages = False
                di.importedoc("application/octet-stream", "C:\Temp\" & docname)
            end using

 

0 0