- Posts: 19
- Thank you received: 0
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
IP: 192.168.0.71
11 years 7 months ago #6941
by Einstein
Application freezes after RDPDFLib initialization was created 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:
ActiveLicence and both SetDefaultFont calls return true. Is there a bug in your code or am I doing something wrong?
Cheers
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
IP: 192.168.0.71
11 years 7 months ago #6942
by Einstein
Replied by Einstein on topic Application freezes after RDPDFLib initialization
I did some more testing and found out that if I leave just this line:
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
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
IP: 192.168.0.71
11 years 7 months ago #6944
by radaee
Replied by radaee on topic Application freezes after RDPDFLib initialization
where are you placed codes on?
IP: 192.168.0.71
11 years 7 months ago #6945
by Einstein
Replied by Einstein on topic Application freezes after RDPDFLib initialization
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?
IP: 192.168.0.71
11 years 7 months ago #6947
by radaee
Replied by radaee on topic Application freezes after RDPDFLib initialization
no matter, just want to reappears.
we are using C#, does you mean on RT and not in WP8?
we are using C#, does you mean on RT and not in WP8?
IP: 192.168.0.71
11 years 7 months ago #6948
by Einstein
Replied by Einstein on topic Application freezes after RDPDFLib initialization
I'm using Windows Phone 8.1.
Time to create page: 0.390 seconds