Performance issue LicenseShellExecuteFile

Post here any questions/suggestions you have about novaPDF SDK or novaPDF OEM.
Post Reply
martijnvandijk
Posts: 1
Joined: Tue Nov 27, 2012 5:57 am

Performance issue LicenseShellExecuteFile

Post by martijnvandijk »

I hope someone can give me a hint on an issue I sometimes have at a customer of me.

I'm using the NovaSDK to merge multiple PDF files to one PDF file. For this I use the Windows shell execute method.

pNova.LicenseApplication "SPLWOW64.EXE"

pNova.LicenseShellExecuteFile sFileName

ShellPrintFile sFileName, GetActiveWindow()

The problem I have is that the line with the LicenseShellExecuteFile command sometimes takes up too 50 minutes. So I think there might be some locking issue?

Can someone please give me some pointers to finding the cause of this problem? Like what is LicenseShellExecuteFile doing internally?

Claudiu (Softland)
Posts: 284
Joined: Wed Dec 16, 2009 12:46 pm

Re: Performance issue LicenseShellExecuteFile

Post by Claudiu (Softland) »

Hi,
LicenseShellExecuteFile calls first FindExecutable Windows API function to find the application associated with the provided document type. Then it calls LicesnseApplication for this application. You may replace the LicenseShellExecuteFile call with a LicenseApplication call if you know which application should print that document.

Post Reply