COM separated from underlying RCW

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

tdonovan
User
Posts: 61
Joined: Tue Jun 12, 2007 9:21 pm

COM separated from underlying RCW

Post by tdonovan »

I am getting an error message, COM object that has been separated from its underlying RCW cannot be used.

It is happening at system.stubhelpers.stubhelpers.GetCOMIPFromRCW, which is being called PDFXCviewAxLib.IPDFXCview2.DoVerb.

I haven't been able to figure out a pattern of what causes this as the code runs fine for a while and then I run into this error. Any suggestions on how to deal with this, or do you need more information. (From within the same program, I am trying to close a PDF file if it is open. The DoVerb that I am calling is

PDFXView.DoVerb("Documents", ".SP", vDataIn, vDataOut, 0)
spDocs = CType(vDataOut, PDFXCviewAxLib.IPDFXCsmartp)

There are documents open.
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: COM separated from underlying RCW

Post by Stefan - PDF-XChange »

Hello TDonovan,

Could you please provide us a small simple example (if sensitive send it to support@pdf-xchange.com), so we could try to reproduce this issue?

Thanks,
Stefan
tdonovan
User
Posts: 61
Joined: Tue Jun 12, 2007 9:21 pm

Re: COM separated from underlying RCW

Post by tdonovan »

I will have to work on creating a sample. Any news on when Version 3 will be available as I am assuming that it might fix this issue as well from what you have released about it.
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: COM separated from underlying RCW

Post by Stefan - PDF-XChange »

Hi Tdonovan,

Ver 3 is schedulled for early next year, but there would be a few builds before that, so if you could prepare the sample a solution might be found earlier.

Best,
Stefan