Hello,
I have a issue.
PXCLIB40 and XCPRO40 LIB same methods cannot work in netframework 4.0
this a example:
if (Common.IS_DS_FAILED(PDFXC_Funcs.PXC_NewDocument(out pdf, key, key_code)))
return;
this code work fine in netframework 2 and 3.5, but netframework 4 cannot work.
regards
PXCLIB40 and XCPRO40 LIB
Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan
- Ivan - Tracker Software
- Site Admin
- Posts: 3549
- Joined: Thu Jul 08, 2004 10:36 pm
- Location: Vancouver Island - Canada
- Contact:
Re: PXCLIB40 and XCPRO40 LIB
I suppose your project uses "Any CPU" configuration.
I'm not a guru in .NET, but looks like it doesn't work with .NET 4.0 as it was in 2.0
The problem is with your type int used in the PXC_NewDocument declaration.
For 32-bit apps it should be a 32-bit value (int is ok), but for 64-bits it should be a long.
If you know that it is a 32-bit in 32-bit configuration and 64-bits in 64-bits configuration - please use this type.
Or just create x86 configuration of your project in its entirety....
I'm not a guru in .NET, but looks like it doesn't work with .NET 4.0 as it was in 2.0
The problem is with your type int used in the PXC_NewDocument declaration.
For 32-bit apps it should be a 32-bit value (int is ok), but for 64-bits it should be a long.
If you know that it is a 32-bit in 32-bit configuration and 64-bits in 64-bits configuration - please use this type.
Or just create x86 configuration of your project in its entirety....
Tracker Software (Project Director)
When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
Re: PXCLIB40 and XCPRO40 LIB
ok. the problem is how to call methods.
I resolved this issue. the external dll in same times clean local variable string inside local function. Set string in null and call exception StackOverflowException.
regards
I resolved this issue. the external dll in same times clean local variable string inside local function. Set string in null and call exception StackOverflowException.
regards
- Tracker Supp-Stefan
- Site Admin
- Posts: 17889
- Joined: Mon Jan 12, 2009 8:07 am
- Location: London
- Contact:
Re: PXCLIB40 and XCPRO40 LIB
Hi ericr,
Glad to hear it was resolved!
Cheers,
Stefan
Glad to hear it was resolved!
Cheers,
Stefan