Error while opening a document in Sharepoint

Asked By 10 points N/A Posted on -
qa-featured

Hi all,

In SharePoint, I tried to open a document when it suddenly failed on me and I got this error message:

The instruction at "0x30cb0c0f" referenced memory at "0x00000000". The memory could not be "written".

Click on OK to terminate the program

What do you think is going on? Is there a way to have this fixed?

Thank you for reading and hope to hear from you soon.

SHARE
Answered By 30 points N/A #176902

Error while opening a document in Sharepoint

qa-featured
Hi there Robert V Richey,
 
This is a known issue from the previous version of the software. To fully repair the bug you will need to update both, the Sharepoint and your operating system. Apply all service packs and updated to avoid this bug. Also, make sure to update your Office and other MS products you have installed on your computer.
 
However, there is a workaround in case you cannot update your system or the Sharepoint. 
 
The workaround is quite simple – just add the following code to your class: 
 
[DllImport("ole32.dll")]
static extern void CoFreeUnusedLibraries();
 
This piece of code will force the use of ole32.dll which is needed to call CoFreeUnusedLibraries and your document should open without any trouble.
 
Best regards,
Drake Vivian

Related Questions