Handle leak in version 4.0

The Amyuni PDF Converter is our Printer Driver that enables you to convert any documents to PDF format. If you have any questions about installing and using the Amyuni PDF Converter please post them here.
Post Reply
Jim
Posts: 11
Joined: Mon Feb 02 2009

Handle leak in version 4.0

Post by Jim »

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;
}
MGR
Posts: 20
Joined: Thu Apr 09 2009

Re: Handle leak in version 4.0

Post by MGR »

I'm curious about the handle leak as well - I see that it's happening in 4.0 but not in 3.03e.
Jim
Posts: 11
Joined: Mon Feb 02 2009

Re: Handle leak in version 4.0

Post by Jim »

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
Jose
Amyuni Team
Posts: 553
Joined: Tue Oct 01 2002
Contact:

Re: Handle leak in version 4.0

Post by Jose »

Hello,

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
Post Reply