"COM object that has been separated from its underlying RCW cannot be used.

I am constantly getting the following error when closing my app if we viewed/printed a report.  What do I need to do to correct this error?  For the following error, I opened my app, viewed a report on the screen using the 'CrystalReportViewer', closed the report viewer window, closed my app.  When closing the app, the following error occurs.
CR version: 11.5.3300.0
VB.NET v2.
System.Runtime.InteropServices.InvalidComObjectException was unhandled
  Message="COM object that has been separated from its underlying RCW cannot be used."
  Source="mscorlib"
  StackTrace:
       at System.Runtime.InteropServices.UCOMIConnectionPoint.Unadvise(Int32 dwCookie)
       at CrystalDecisions.ReportAppServer.%. {(_ISCDClientDocumentEvents_OnClosedEventHandler  u)
       at CrystalDecisions.ReportAppServer.%.remove_OnClosed(_ISCDClientDocumentEvents_OnClosedEventHandler value)
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.DisconnectEventRelay()
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.  (Boolean  \b, Boolean       )
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Dispose(Boolean bDisposeManaged)
       at System.ComponentModel.Component.Dispose()
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.  (Boolean      :)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.  (Boolean      ;)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Close()
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.
    (Object      >, EventArgs      ?)

Hello,
First thing is to install Service Pack 6 which you can get from the download page by clicking on BusinessObjests tab above and then downloads on the left...
When you close your viewer be sure to add/have Youreportobject.close and Youreportobject.Dispose. Adding a GC.Collect may help also.
Thank you
Don

Similar Messages

  • COM object that has been seperated from its uderlying RCW cannot be used

    What exactly does this error mean?
    I receive this error when I perform "Unload All Modules" from the sequence editor using TestStand 4.2.1.83 development system, which is part of NI Developer Suite 2010 DS1.
    It causes TestStand to crash citing that error, and then a secondary error cites corrupted memory.

    ATE_Dude_22 wrote:
    Here is a capture of my sequence editor, where I have a alert from TestStand telling me the parameter specified doesn't match the sequence parameters (specified in the vi prototype as a string not a number), but this version of TestStand allows it to execute without needing to clear the error.
    Do you think this may have anything to do with the error I am seeing?
    Probably not. Sequence calls support mismatched parameters, what happens is that the callee gets whatever is passed to it, if that's not what it's expecting, then you might get a type mismatch error if type checking is enabled, if not then it's up to the sequence what it tries to do with the parameter for what happens next.
    Most likely the bug is in one of the code modules you are calling, probably a vi or dll is not properly maintaining a reference count somewhere or is corrupting memory and only indirectly causing the error. If most of your code is in labview, one thing to look out for is incorrectly specified calls to dlls from LabVIEW. If a call to a dll is incorrectly specified, either from LabVIEW or TestStand that can very easily lead to memory corruption and random errors later on in the code.
    I'd recommend trying to either debug and see where it's failing, if it's always failing in the same place. Or try to eliminate possibilities and reduce the called code to the minimum code required to reproduce the problem and then look for bugs in that code (paying special attention to the possibility of incorrectly specified dll calls and/or perhaps incorrectly maintained reference counts on COM objects).
    Another idea, to see if the problem is memory corruption caused by a vi, is to run all of your labview vis using the development environment (labview adapter setting), if so, any memory corruption would be in the labview process and not the main teststand process and should not bring down teststand.
    -Doug

  • O I need Pages on my iMac in order to open a file that has been transferred from my iPad?

    Cannot open the Pages file on my computer that has been transferred from my iPad. Do I need to purchase Pages for my computer?

    I guess you could open it using the icloud version of Pages (on www.icloud.com).

  • After restarting my computer firefox is deleted for Windows, when i try to open firefox a message pops up saying the program has been moved from its original location and is unable to run How do I get Firefox on my computer permanently?

    After restarting my computer firefox is deleted for Windows, when i try to open firefox a message pops up saying the program has been moved from its original location and is unable to run How do I get Firefox on my computer permanently?

    I have tried everything I could to fix this, but some things require actually being on Firefox, and since I cannot get on, I cannot click on the tabs to do it. I have even totally uninstalled firefox, and that has not fixed this. I still get the same message that firefox is running and I need to close it or restart (which I have also tried dozens of times). I have removed things like Java, and that has not helped either. If I cannot even get on line in firefox, how can I fix this. I am not crazy about using internet explorer, but right now, it is my only option. I even tried to start in safe mode, and the same message box pops up!

  • I want to use icloud but i have a lot of music on itunes that has been downloaded from elsewhere on the internet. Will i be able to access this on icloud if it has not be bought through itunes?

    I want to use icloud but i have a lot of music on itunes that has been downloaded from elsewhere on the internet. Will i be able to access this on icloud if it has not be bought through itunes?

    Not on iCloud itself - what you need is 'iTunes Match' which seeks to find versions in the Store of songs you already have, and failing that allows you to upload your own copies. This will cost you $24.99 per year; it does not count towards your 5GB free iCloud space. Limit 25,000 songs (purchased songs do not count towards this limit). You will need iTunes 10.5.1 or later on your Mac or PC and iOS 5.0.1 or later on your iPhone 3GS or later, iPod touch (3rd and 4th generation), or iPad.
    Please see this page: http://www.apple.com/itunes/itunes-match/
    Also note that some people have found that when using this facility with songs which contain strong language, iTunes Match is substituting a cleaned-up version.

  • How can I email a video in iPhoto that has been uploaded from my iPad?

    How can I email a video in iPhoto that has been uploaded from my iPad?

    It is so compliv=cated. U had yo find in troubleshootung sime ways. Then i found so many files in the profile menu that have been filed .I had to open every one to choose the right one that never found Then nothing could be done No way to revert.I had decide to uninstall the firefox Then i ttried the restore system way and it worked.
    In any case these add ons of persona are comletely silly.So many unfitting colors and no way to revert.Only to choose a different stupi d icon.Too silly for my sense of style

  • Have photoshop 6 on a dead pc laptop with windows XP.  Have a pc laptop that has been upgraded from Vista 64 bit (where photshop wouldn't install) to windows 7 professional 32 bit (clean install).  Photoshop still won't install. Also having reinstallation

    I have photoshop 6 on a dead pc laptop with windows XP.  Have a pc laptop that has been upgraded from Vista 64 bit (where phootshop 6 wouldn't install) to windows 7 professional 32 bit (clean install).  Photoshop still won't install. Also having reinstallation issues with pse6 on this same pc.  Pse6 was installed and working on vista 64bit version of the OS, now won't install on rebuilt windows professional 7 32bit (keeps giving me serial number not valid errors).  I'm not trying to pirate these programs.  Just want to reinstall them.

    you need,
    Windows 98, Windows 2000, Windows NT 4.0 with Service Pack 4, 5, or 6a, or Windows Millennium
    Microsoft Windows 98/Millennium/2000/NT 4.0 (Service Pack 4, 5, or 6a required)

  • How to check the sales order that has been PGI from a range of dates.

    Hi SAP Gurus,
    I have a query on how can I check the sales order that has been PGI from a range of dates in SAP?
    Thanks,
    Madelyn

    Dear Madelyn
    Go to VA05, give the date range and execute.  List of sale orders will be generated.  There you can see a tab "Status"  in which, the status would be like
    -  Not delivered
    -  Partially delivered
    So based on this, you can decide whether the order is still open or completed.
    thanks
    G. Lakshmipathi

  • Why does Epson app for the iphone show a folder that has been deleted from my camera roll?

    Why does the Epson app for my iphone 4 show a folder that has been deleted from my camera roll for months now?

    Thanks @pdroth. I did a quick Google search of DB indexing. I'm not sure I found exactly what you were referring to but I see where you're going with it. I can understand that indexing my database of stored photos can be time consuming. It's frustrating that the space can't be recognized as being free more quickly.
    I notice that some items I delete seem to free up the space much more quickly. Removing an app entirely or deleting from my Music generally shows up as available space in Usage pretty quickly.
    Deleting a photo or video from the Camera Roll will take MUCH longer, so I guess that has something to do with the indexing process you are referring to.
    I'd like to point out that when I run out of space on an SD card on any budget point and click digital camera that I can quickly delete a picture or two and INSTANTLY be able to take a couple of new photos in their place. I guess I just have that same expectation for the $500+ engineering marvel I have in my hand right now.
    Thanks for chiming in.

  • Is there a way to retrieve a text message that has been deleted from my iphone?

    Is there a way to retrieve a text message that has been deleted from my iphone?  I did't delete the message but after i synced my phone the message was gone.

    No, the app doesn't use Safari.  The app is AutoDesk Inventor Publisher Viewer.  I think there is a way that you can have a publish Inventor file, and if you create a correctly formatted hyperlink, you can click on it and it will immediately open the file in the viewer.
    I know that if you offer the file as a standard download, iOS will ask whether you want to open it with Inventor Pub. Viewer or save it to another app that can accept files.  I would prefer to skip the prompt, and just open the viewer.
    I've heard mention that this can be done with this application, but I can't find reference material anywhere.

  • I can't delete photos in albums that has been sent from a pc

    What is the procedure for deleting photos in albums on iPad that has been sent from another PC.

    You need to remove them the same way you put them on the iPad.
    That is by Unsyncing them in iTunes on the computer.
    You can unselect the folder you wish to remove in ITunes on the computer, or sync an empty folder to remove them all.

  • Is there a way to get an app that has been deleted from the app store?

    Is there a way to get an app that has been deleted from the app store?

    Not unless the developer/Apple offer it again in the App store.  You can only get apps from the App store.

  • I want to search Time Machine for an appointment that has been deleted from my current view of iCal.  Can I "restore" a previous version of iCal without losing all the entries I've made to the calendar since that prior date?

    I want to search Time Machine for an appointment that has been deleted from my current view of iCal.  Can I "restore" a previous version of iCal without losing all the entries I've made to the calendar since that prior date?

    No. I tried it on my Time Machine (I had just made one change today, so I knew I would not be left in the lurch if I failed) and when I clicked on restore I got this message:
    It seems you have several options.  I chose 'Keep Both'.  I suggest that you proceed with your search.
    Ciao.

  • How can i delete a photo album that has been synced from another computer

    I am trying to delete a photo album that I do not need anymore from an iPad 4. But the album has been synced from a computer that I don't have access to anymore. Is there anyway around this ?

    Photos that were synced from a computer can only be deleted by connecting to a computer's iTunes and changing the sync selection on the device's Photos tab.
    Is that the only album that was synced from that computer (and you now sync the iPad to a different computer ?), or do you have other albums from it that you want to keep on the iPad ? If you want to keep one or more albums on it then they will need to be on the computer that you sync to so that they can be selected on the Photos tab and re-copied to the iPad from that computer. If you want to remove all synced photos then try selecting and syncing just an empty folder

  • Jndi lookup of of object that has been bound remotely

    I want to register in weblogic server jndi tree some remote objects. A one standalone
    application binds these object in server jndi. Another standalone app try to lookup
    and executes some methods - everything works ok.
    The problem is : applications which works internally on server can't lookup these
    object. It's initial context doesn't contains such bindings. What's the difference
    between naming contexts
    inside and outside the server?
    Thank in advance,
    Vladimir.

    Hi JP3O,
    >> But that doesn't help because CurrentExcelWorksheetEventsInstance is not nothing even after all properties give errors. What is a better test or approach I can use?
    In my option, if you refer to the property of the Worksheet object which has been deleted, the error would be raised as expected. I think you could use the try catch statement to deal with this situation. Some key code like below:
    Dim oxl As Excel.Application
    Dim owb As Excel.Workbook
    Dim osheet As Excel.Worksheet
    Dim owbname As String
    oxl = New Excel.Application
    owb = oxl.Workbooks.Open("D:\Test\VSC#\03\Winform\VBWinform\Test.xlsx")
    osheet = owb.Worksheets("sheet1")
    Try
    osheet = owb.Worksheets.Add()
    owb.Close(False)
    owbname = owb.Name
    Catch comex As System.Runtime.InteropServices.COMException
    If comex.ErrorCode = -214682246 Or comex.Message.Contains("Object has been deleted") Then
    ' handle deleted object
    Else
    Throw comex
    End If
    End Try
    Best Regards,
    Edward
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

Maybe you are looking for