Search found 7 matches

by ewyuen2003
Tue Mar 22, 2016 10:56 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: PDF Tools sample crashes vshost.exe when build for .NET 4.0
Replies: 11
Views: 4363

Re: PDF Tools sample crashes vshost.exe when build for .NET

Ok. After changing to use IntPtr, 64-bit seems to work. Thank you.
by ewyuen2003
Wed Mar 16, 2016 4:37 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: PDF Tools sample crashes vshost.exe when build for .NET 4.0
Replies: 11
Views: 4363

Re: PDF Tools sample crashes vshost.exe when build for .NET

Your new PDFXC_Funcs file changed the signature of many API. e.g. public static extern int PXC_AddPage(int pdf, double width, double height, out int page); to public static extern int PXC_AddPage(IntPtr pdf, double width, double height, out IntPtr page); So the original sample applications do not co...
by ewyuen2003
Mon Mar 07, 2016 8:04 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: PDF Tools sample crashes vshost.exe when build for .NET 4.0
Replies: 11
Views: 4363

Re: PDF Tools sample crashes vshost.exe when build for .NET

Please also note that when we install VS2015. .NET 4.6 is installed. Therefore, we are using .NET4.6 CLR to run code in .NET 4.5.1 codes. .NET 4.0+ always replace the CLR to achieve backward compatibility.
by ewyuen2003
Mon Mar 07, 2016 7:19 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: PDF Tools sample crashes vshost.exe when build for .NET 4.0
Replies: 11
Views: 4363

Re: PDF Tools sample crashes vshost.exe when build for .NET

I see the same problem if I target to x64 or AnyCPU. It is ok when it targets as x86.
by ewyuen2003
Fri Mar 04, 2016 10:11 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: PDF Tools sample crashes vshost.exe when build for .NET 4.0
Replies: 11
Views: 4363

PDF Tools sample crashes vshost.exe when build for .NET 4.0

My OS version is Windows 7 - 64bit. I try to compile the sample C# app PDFXCDemo. The app runs if it is compiled with .NET 2.0 and debug ok in Viisual Studio. If I set my target to .NET 4 or above (e.g. .NET 4.5.1), visual studio vshost.exe crashes (see attached.) The application runs if I run the a...