Click here to Skip to main content
15,797,984 members
Home / Discussions / COM
   

COM

 
QuestionIssues with identity of COM+ application Pin
Member 39605603-Feb-12 6:52
Member 39605603-Feb-12 6:52 
AnswerRe: Issues with identity of COM+ application Pin
Member 39605606-Feb-12 3:49
Member 39605606-Feb-12 3:49 
QuestionHow to convert COM proxy-stub dll to type library ? Pin
benjava28-Dec-11 18:35
benjava28-Dec-11 18:35 
AnswerRe: How to convert COM proxy-stub dll to type library ? Pin
Jonathan Davies30-Dec-11 10:08
Jonathan Davies30-Dec-11 10:08 
AnswerRe: How to convert COM proxy-stub dll to type library ? Pin
«_Superman_»6-Jan-12 17:23
professional«_Superman_»6-Jan-12 17:23 
QuestionOPENING THE VBA EDITOR ON CLICK ON OLEOBJECTS BUTTON Pin
archana jain15-Dec-11 1:20
archana jain15-Dec-11 1:20 
QuestionHow to select the predefined area as WIDTH in PIXEL by HEIGHT IN PIXELS in MSEXCEL for desiging your templates Pin
archana jain14-Dec-11 23:18
archana jain14-Dec-11 23:18 
QuestionAdding Workbook In Excel Pin
SB_CodeForFun6-Dec-11 21:02
SB_CodeForFun6-Dec-11 21:02 
Hi,

I have an Excel Addin which loads with Excel Application. Excel Addin then loads a COM dll on the click of Load button.

The loaded COM dll adds an Excel Workbook.

C#
Excel::WorkbookPtr m_ptrDummyWbk;
Excel::WorkbooksPtr ptr_XLWb = m_myExcelPtr->GetWorkbooks();
m_ptrDummyWbk = ptr_XLWb->Add();
m_ptrDummyWbk->PutIsAddin(VARIANT_TRUE);
m_ptrDummyWbk->PutSaved(0,VARIANT_TRUE);


The loaded COM dll is released on the click of Unload button and m_ptrDummyWbk is closed and released.

m_ptrDummyWbk->PutSaved(0,VARIANT_TRUE);
HRESULT hr = m_ptrDummyWbk->Close(VARIANT_FALSE);
m_ptrDummyWbk = NULL
ptr_XLWb = NULL;


Now if i load the COM dll again by clicking the Load Button the application Crashes while adding the workbook

C#
m_ptrDummyWbk = ptr_XLWb->Add();


The error displayed is:
Quote:
Unhandled exception at 0x2f430f9f in EXCEL.EXE: 0xC0000005: Access violation reading location 0x0b0231b8.


What could be the potential cause of this crash and how to get rid of it?
QuestionNeed Com Help - I'm a beginner Pin
jkirkerx6-Nov-11 9:48
professionaljkirkerx6-Nov-11 9:48 
AnswerRe: Need Com Help - I'm a beginner Pin
«_Superman_»6-Nov-11 16:36
professional«_Superman_»6-Nov-11 16:36 
GeneralRe: Need Com Help - I'm a beginner Pin
jkirkerx6-Nov-11 20:34
professionaljkirkerx6-Nov-11 20:34 
GeneralRe: Need Com Help - I'm a beginner Pin
jkirkerx9-Nov-11 8:36
professionaljkirkerx9-Nov-11 8:36 
QuestionHow to use unregistered tlb file Pin
SB_CodeForFun31-Oct-11 0:54
SB_CodeForFun31-Oct-11 0:54 
AnswerRe: How to use unregistered tlb file Pin
DriveByCoder24-Mar-15 8:48
professionalDriveByCoder24-Mar-15 8:48 
QuestionCOM Component Late binding trouble Pin
nilarya25-Aug-11 7:28
nilarya25-Aug-11 7:28 
AnswerRe: COM Component Late binding trouble Pin
tom-englert21-Sep-11 2:20
tom-englert21-Sep-11 2:20 
GeneralRe: COM Component Late binding trouble Pin
nilarya7-Oct-11 0:27
nilarya7-Oct-11 0:27 
GeneralRe: COM Component Late binding trouble Pin
tom-englert7-Oct-11 4:59
tom-englert7-Oct-11 4:59 
GeneralRe: COM Component Late binding trouble Pin
nilarya7-Oct-11 23:46
nilarya7-Oct-11 23:46 
GeneralRe: COM Component Late binding trouble Pin
nilarya7-Oct-11 23:57
nilarya7-Oct-11 23:57 
GeneralRe: COM Component Late binding trouble Pin
nilarya24-Oct-11 0:27
nilarya24-Oct-11 0:27 
GeneralRe: COM Component Late binding trouble Pin
tom-englert7-Nov-11 7:23
tom-englert7-Nov-11 7:23 
AnswerRe: COM Component Late binding trouble Pin
Vi25-Oct-11 1:39
Vi25-Oct-11 1:39 
QuestionUnable to register 64 bit COM Server Pin
sandeepkavade17-Aug-11 3:07
sandeepkavade17-Aug-11 3:07 
AnswerRe: Unable to register 64 bit COM Server Pin
Shameel17-Aug-11 3:32
professionalShameel17-Aug-11 3:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.