Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Windows 8.1, 10, WindowsPhone, Windows UWP

TOPIC:

Application freezes after RDPDFLib initialization 9 years 8 months ago #6941

  • Einstein
  • Einstein's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 19
  • Thank you received: 0
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:
// I'm using the demo licence I found in your sample at this moment..
bool b = RDPDFLib::pdf::PDFGlobal::ActiveLicense(2, "Radaee", "Radaeepdf@gmail.com", "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

Please Log in or Create an account to join the conversation.

Application freezes after RDPDFLib initialization 9 years 8 months ago #6942

  • Einstein
  • Einstein's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 19
  • Thank you received: 0
I did some more testing and found out that if I leave just this line:
bool b = RDPDFLib::pdf::PDFGlobal::ActiveLicense(2, "Radaee", "Radaeepdf@gmail.com", "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

Please Log in or Create an account to join the conversation.

Application freezes after RDPDFLib initialization 9 years 8 months ago #6944

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
where are you placed codes on?

Please Log in or Create an account to join the conversation.

Application freezes after RDPDFLib initialization 9 years 8 months ago #6945

  • Einstein
  • Einstein's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 19
  • Thank you received: 0
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?

Please Log in or Create an account to join the conversation.

Application freezes after RDPDFLib initialization 9 years 8 months ago #6947

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
no matter, just want to reappears.
we are using C#, does you mean on RT and not in WP8?

Please Log in or Create an account to join the conversation.

Application freezes after RDPDFLib initialization 9 years 8 months ago #6948

  • Einstein
  • Einstein's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 19
  • Thank you received: 0
I'm using Windows Phone 8.1.

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum