Click here to Skip to main content
15,891,136 members
Home / Discussions / COM
   

COM

 
QuestionIssues with identity of COM+ application Pin
Member 39605603-Feb-12 5:52
Member 39605603-Feb-12 5:52 
AnswerRe: Issues with identity of COM+ application Pin
Member 39605606-Feb-12 2:49
Member 39605606-Feb-12 2:49 
QuestionHow to convert COM proxy-stub dll to type library ? Pin
benjava28-Dec-11 17:35
benjava28-Dec-11 17:35 
AnswerRe: How to convert COM proxy-stub dll to type library ? Pin
Jonathan Davies30-Dec-11 9:08
Jonathan Davies30-Dec-11 9:08 
AnswerRe: How to convert COM proxy-stub dll to type library ? Pin
«_Superman_»6-Jan-12 16:23
professional«_Superman_»6-Jan-12 16:23 
QuestionOPENING THE VBA EDITOR ON CLICK ON OLEOBJECTS BUTTON Pin
archana jain15-Dec-11 0:20
archana jain15-Dec-11 0: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 22:18
archana jain14-Dec-11 22:18 
QuestionAdding Workbook In Excel Pin
SB_CodeForFun6-Dec-11 20:02
SB_CodeForFun6-Dec-11 20: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 8:48
professionaljkirkerx6-Nov-11 8:48 
AnswerRe: Need Com Help - I'm a beginner Pin
«_Superman_»6-Nov-11 15:36
professional«_Superman_»6-Nov-11 15:36 
GeneralRe: Need Com Help - I'm a beginner Pin
jkirkerx6-Nov-11 19:34
professionaljkirkerx6-Nov-11 19:34 
GeneralRe: Need Com Help - I'm a beginner Pin
jkirkerx9-Nov-11 7:36
professionaljkirkerx9-Nov-11 7:36 
QuestionHow to use unregistered tlb file Pin
SB_CodeForFun30-Oct-11 23:54
SB_CodeForFun30-Oct-11 23:54 
AnswerRe: How to use unregistered tlb file Pin
DriveByCoder24-Mar-15 7:48
professionalDriveByCoder24-Mar-15 7:48 
QuestionCOM Component Late binding trouble Pin
nilarya25-Aug-11 6:28
nilarya25-Aug-11 6:28 
AnswerRe: COM Component Late binding trouble Pin
tom-englert21-Sep-11 1:20
tom-englert21-Sep-11 1:20 
GeneralRe: COM Component Late binding trouble Pin
nilarya6-Oct-11 23:27
nilarya6-Oct-11 23:27 
GeneralRe: COM Component Late binding trouble Pin
tom-englert7-Oct-11 3:59
tom-englert7-Oct-11 3:59 
GeneralRe: COM Component Late binding trouble Pin
nilarya7-Oct-11 22:46
nilarya7-Oct-11 22:46 
GeneralRe: COM Component Late binding trouble Pin
nilarya7-Oct-11 22:57
nilarya7-Oct-11 22:57 
GeneralRe: COM Component Late binding trouble Pin
nilarya23-Oct-11 23:27
nilarya23-Oct-11 23:27 
GeneralRe: COM Component Late binding trouble Pin
tom-englert7-Nov-11 6:23
tom-englert7-Nov-11 6:23 
AnswerRe: COM Component Late binding trouble Pin
Vi25-Oct-11 0:39
Vi25-Oct-11 0:39 
QuestionUnable to register 64 bit COM Server Pin
sandeepkavade17-Aug-11 2:07
sandeepkavade17-Aug-11 2:07 
AnswerRe: Unable to register 64 bit COM Server Pin
Shameel17-Aug-11 2:32
professionalShameel17-Aug-11 2: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.