Rank: Newbie
Groups: Registered
Joined: 5/10/2021(UTC) Posts: 1 
|
Hello, I've been trying to solve problem in our application with loading PDF. Basically when i try to load attached PDF in my WPF application (either with pdfViewer.LoadDocument(byte[]) or PdfDocument.Load(byte[]) the program crashes with these errors in output log: The program '[39312] Program.exe: Program Trace' has exited with code 0 (0x0). The program '[39312] Program.exe' has exited with code -1073740791 (0xc0000409). This is only information I get when debugging, nothing else will pop up as an error. I have suspicion there might be some specific error in library, based on how debugging behaves in this scenario. This problem is only on 32-bit version of application, on 64-bit version it loads flawlessly. I would welcome any suggestion for solution and I will gladly respond to any questions regarding this problem. I wish you a nice day David S. (There was some problem with uploading PDF file here, so here's google drive alternative) https://drive.google.com...JVqG63P/view?usp=sharing
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 1/5/2016(UTC) Posts: 1,115
Thanks: 8 times Was thanked: 130 time(s) in 127 post(s)
|
Andrew wrote:For 32-bit Windows, the limit is actually 2GB usable per process (usually 2GB for the user and 2GB for the OS kernel). But you can ask the operating system to provide your application with up to 3Gb. To do this, add the following to your post build script.
editbin /largeaddressaware $(TargetPath) The editbin tool comes with Visual Studio and can be found here C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\bin\Hostx86\x86\editbin.exe
The subject document allocates about 1.5Gb of memory, so with the LARGEADDRESSAWARE you will be able to open this document twice. Pdfium itself does not handle out of memory situations, so you must catch such an exception yourself to avoid crashing the application and show an adequate error message to the user.
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The Patagames Software Support Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close