This is an unfortunate topic that will probably be hard to mark as "solved" - I am only hoping you are already aware of the issue.
Please take the time to read in detail...
I've moved from 8.343 to 9.351. At first things seemed to run faster, some issues seems to be solved (like deadlocks in running IOperation) - and I was quite happy with 9.351 - with new stuff added and how it works in general.
Until I realized something has gone very wrong -> my app started crashing with no warnings for no particular reason and in "random" occasions.
Note: I am using the SDK in a rather complex way: I have my own classes implementing IOperation. I'm heavily using AsyncDo along with ThreadSafeCall. I'm creating my own Panes (both within MainFrame and DocumentView). I'm implemetning IUIX_TreeCallbacks, IUIX_ListCallbacks, IPXV_DocInfoBarCallbacks and so on. I'm instantiating multiple PXVControl instances - applying various custom CMD bars, hiding/disabling/custom handling some stuff, per control, etc... In short: I'm not using the SDK in a "hello world" fashion. For comparison: the "Full Demo" would be a "non trivial hello world" application.
With 8.343 - everything that I do with the SDK works with no issues.
With 9.351 - after processing some "heavy" code (AsyncDo and alike) and then trying to create a form hosting PXV Control (that is instantiate a new PXV Control) - the app crashes. I have exception handling mechanism, so my application can catch unhandled exceptions. In this case, nothing is caught - the app just vanishes.
When testing I'm making sure my code is 100% completely the same - so I am quite certain the cause of the crash is not within my code. I've recompiled my application several times with 8.343 and then 9.351 - the problem always appears only with 9.351.
The only trace of the crash can be found in Windows Even Viewer:
This happens with x86 version. For x64 I need to do more tests.Faulting application name: MyApplication.exe, version: 1.0.0.0, time stamp: 0x601818b0
Faulting module name: PDFXEditCore.x86.dll, version: 9.0.351.0, time stamp: 0x600a19e7
Exception code: 0xc000041d
Fault offset: 0x0000000000021908
...
I cannot give you the exact code or steps to reproduce - as I said my code is complex. Even worst, 1 out of 3 times everything works ok, but 2 out of 3 this problem happens (this is why I need to do more tests with x64 - to make sure the problem happens there also).
What I know for sure when this happens:
1. Run some code utilizing custom IOperation and AsyncDo (including all that comes with it like ThreadSafeCall and using ProgressMon, etc). The code, in short, opens hundreds of PDF files (each in its own thread), does some stuff on PXCDocument level, saves the file. So, this is a complex memory usage scenario.
2. When the above is finished, upon trying to create a form hosting PXVControl
3. My app vanishes.
4. If I run my app under debug mode, sometimes I see C0000005 exception - but not usable - to try to figure out where exactly.
I would be happy to provide more details - as at the moment I am not able to work with 9.351 and need to go back to 8.343.
-žarko