We have implemented the VPE control (64 bit) within a dll (ver7.1), and via a windows service run a batch process. It is a multi-tread environment and each thread handle between 1 and 4000 reports.
Once deployed to the runtime environment and running the service, the service throw an error “error creating window handle. The VP document is not open call OpenDoc() first”. It seems the service run out of Handles and I tried the following link as a solution but did not work: viewtopic.php?f=2&t=108
I do close the vpedoc once processing is completed. I cannot replicate error in debug mode on dev.
The stack trace:
at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
at System.Windows.Forms.Control.CreateHandle()
at System.Windows.Forms.Control.get_Handle()
at IDEALSoftware.VpeEnterprise.VpeControl.OpenDoc()
and in event viewer:error on ntdll.dll
Not sure if this problem is common or advice on solution.