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

TOPIC:

PDFGlobal.SetCMapsPath crash 7 years 2 months ago #11773

  • YannV
  • YannV's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
Hi,

I don't know what to do, I have an exception on PDFGlobal.SetCMapsPath(inst_path + "\\Assets\\cmaps.dat", inst_path + "\\Assets\\umaps.dat");
System.TypeLoadException
StackTrace = " at System.StubHelpers.StubHelpers.GetWinRTFactoryObject(IntPtr pCPCMD)\r\n at RDPDFLib.pdf.PDFGlobal.SetCMapsPath(String cpath, String upath)\r\n at SalesApp.Common.InitRadaee.AppOnLaunched()"

The two files are in the installed directory, my package name is 2625.RadaeePDFReader

I don't if I am doing good concerning the reference to the lib RDPDFLib. When adding the win32 RDPDFLib.dll (and set the target plateform to X86) I have a Visual Studio message error :

When adding RDPDFLib.winmd Visual studio is not complaining, the code build.

I am not familiar with the .winmd, could someone tell me what I am doing wrong ?

Thanks,

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

PDFGlobal.SetCMapsPath crash 7 years 2 months ago #11777

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
It seems like you are not correctly setting the configurations of the reference,

Make sure that for the reference RDPDFLIb , you have (Copy Local) set with true (Check the demo project for a guide)

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

PDFGlobal.SetCMapsPath crash 7 years 2 months ago #11781

  • YannV
  • YannV's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
Hi, thanks for your reply.

I restart from scratch. I have a solution with 3 projets (Winrt). Buiklding Runing ok (Debug - ANY CPU)

I have added RDPDFLib projet in my solution.



I have added reference in my WinRT project to the project RDPDFLib



I start a build :


The file :\SalesApp\Debug\RDPDFLib\RDPDFLib.winmd doesn't exist.

In the demo solution, the Debug folder is well generated
In my solution, this folder is "half" generated, ending with the error above.

Here is the folder



And the one inside the demo :



So, I cannot generate debug folder correctly. Why ?

Thanks for your help.

Regards,

Yann

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

PDFGlobal.SetCMapsPath crash 7 years 2 months ago #11782

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
And what are the reference properties for RDPDFLIB?

Attachments:

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

PDFGlobal.SetCMapsPath crash 7 years 2 months ago #11783

  • YannV
  • YannV's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
looks the same to you.

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

PDFGlobal.SetCMapsPath crash 7 years 2 months ago #11784

  • YannV
  • YannV's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
looks the same as you.

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

  • Page:
  • 1
  • 2
Powered by Kunena Forum