We have noticed a handle leak using the Amyuni PDF driver v4.0. In the testing we did with our background service app, we saw tens of thousands of these handles accummulate over a 24 hour period. The handle leak can be re-created using the code included below. When you run this code, and look at the Amyuni.exe process in Process Explorer, you can see the handle leak.
// AmLeak.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "cdintf.h"
#pragma comment (lib,"cdintf")
int _tmain(int argc, _TCHAR* argv[])
{
LPCSTR printer = "SMS PDF Printer";
for (int I = 0; I < 100; i++)
{
HANDLE hDriver = DriverInit(printer);
DriverEnd(hDriver);
}
system("Pause");
return 0;
}
Handle leak in version 4.0
Re: Handle leak in version 4.0
I'm curious about the handle leak as well - I see that it's happening in 4.0 but not in 3.03e.
Re: Handle leak in version 4.0
Do you have an ETA on when this will be addressed? We would like to implement version 4 with the next version of our application, but we can't do it until this handle leak is fixed. Thanks
Re: Handle leak in version 4.0
Hello,
This issue has been resolved on version 4.0.7 that is currently on our website.
Thanks
This issue has been resolved on version 4.0.7 that is currently on our website.
Thanks
Get PDF Suite, the expert .NET developer toolkit for PDF conversion, creation and editing - www.amyuni.com/pdfsuite