Access Violation Exception

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

Access Violation Exception

Postby jamesmchugh18 » Thu Apr 05, 2018 9:19 pm

This seems to be an isolated error but was curious if there are any clues to it's origin. We have been using VPE Community Edition for several months, error free.
Today we got this error:
Application: CacheToBiscom.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
Stack:
at IDEALSoftware.VpeCommunity.VPEDLL.VpeOpenDocFile(IntPtr, System.String, System.String, Int32)
at IDEALSoftware.VpeCommunity.VpeControl.OpenDoc()
at FaxToBiscom.Service1.MakeTIF(FaxToBiscom.FaxMeta, System.Collections.Generic.List`1<System.String> ByRef)
at FaxToBiscom.Service1.GetNextQ()
at FaxToBiscom.Service1.DoLoop()
at System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback,

System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback,

System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback,

System.Object)
at System.Threading.ThreadHelper.ThreadStart()

The application is a Windows service and was developed using C# (2015). Server is Windows Server 2008 R2

The line of code being called was one of two:

private string MakePDF(FaxMeta f, ref List<string> filenames)
{
string status = "";
WriteLog("MakeTIF: Creating PDF ", InterName);
VpeControl V1 = new VpeControl();
V1.OpenDoc();
WriteLog("MakeCover: Creating Cover", InterName);

Restarted the service and it processed fine. Any suggestions?

Thanks!
jamesmchugh18
 
Posts: 1
Joined: Tue Sep 05, 2017 10:49 pm

Re: Access Violation Exception

Postby IDEAL Software Support » Fri Apr 06, 2018 11:00 am

The only explanation is that your service is running out of system resources, eg memory, handles, GDI handles, or anything like that. Are you calling CloseDoc() each time when you have finished generating a VPE document?
IDEAL Software Support
 
Posts: 1621
Joined: Thu Nov 18, 2004 4:03 pm


Return to VPE Open Forum

Who is online

Users browsing this forum: No registered users and 6 guests

cron