Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Windows 8.1, 10, WindowsPhone, Windows UWP

Application freezes after RDPDFLib initialization

More
IP: 192.168.0.71 11 years 7 months ago #6941 by Einstein
Hi,

I've noticed that my whole application freezes after some time after initializing your PDF library. If the below initialization code isn't executed my application DOES NOT freeze. Here's the code I'm using to initialize your library:
Code:
// I'm using the demo licence I found in your sample at this moment.. bool b = RDPDFLib::pdf::PDFGlobal::ActiveLicense(2, "Radaee", "[email protected]", "NVFWCW-ESABJE-H3CRUZ-WAJQ9H-ZEC20W-2XZ21C"); auto installationPath = Windows::ApplicationModel::Package::Current->InstalledLocation->Path; RDPDFLib::pdf::PDFGlobal::FontFileListStart(); RDPDFLib::pdf::PDFGlobal::FontFileListAdd(installationPath + "\\Fonts\\times.ttf"); RDPDFLib::pdf::PDFGlobal::FontFileListEnd(); bool abc = RDPDFLib::pdf::PDFGlobal::SetDefaultFont("", "Times New Roman", false); bool def = RDPDFLib::pdf::PDFGlobal::SetDefaultFont("", "Times New Roman", true);

ActiveLicence and both SetDefaultFont calls return true. Is there a bug in your code or am I doing something wrong?

Cheers
More
IP: 192.168.0.71 11 years 7 months ago #6942 by Einstein
I did some more testing and found out that if I leave just this line:
Code:
bool b = RDPDFLib::pdf::PDFGlobal::ActiveLicense(2, "Radaee", "[email protected]", "NVFWCW-ESABJE-H3CRUZ-WAJQ9H-ZEC20W-2XZ21C");

The application still freezes. Do you have any triggers that freeze the application if the library is activated using a demo licence or is this a bug?

Cheers
More
IP: 192.168.0.71 11 years 7 months ago #6944 by radaee
where are you placed codes on?
More
IP: 192.168.0.71 11 years 7 months ago #6945 by Einstein
I'm using this code from C++/CX and it's placed in a static method inside some class. It get's called from C# App.xaml.cs. Does it matter where I put this ActiveLicence call?
More
IP: 192.168.0.71 11 years 7 months ago #6947 by radaee
no matter, just want to reappears.
we are using C#, does you mean on RT and not in WP8?
More
IP: 192.168.0.71 11 years 7 months ago #6948 by Einstein
I'm using Windows Phone 8.1.
Time to create page: 0.390 seconds
Powered by Kunena Forum