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

COM

 
QuestionContext Menu Shell Extension (Invoked time) [modified] Pin
A_Fa12-Jul-10 19:32
A_Fa12-Jul-10 19:32 
QuestionCoInittialize Fails with large number of processes [modified] Pin
tony_Udz7-Jul-10 18:47
tony_Udz7-Jul-10 18:47 
QuestionException during assignment operation to a COM object - "Attempted to read or write protected memory" Pin
asr11227-Jul-10 2:20
asr11227-Jul-10 2:20 
AnswerRe: Exception during assignment operation to a COM object - "Attempted to read or write protected memory" Pin
Richard MacCutchan7-Jul-10 3:06
mveRichard MacCutchan7-Jul-10 3:06 
GeneralRe: Exception during assignment operation to a COM object - "Attempted to read or write protected memory" Pin
asr11227-Jul-10 19:44
asr11227-Jul-10 19:44 
GeneralRe: Exception during assignment operation to a COM object - "Attempted to read or write protected memory" Pin
Richard MacCutchan7-Jul-10 21:19
mveRichard MacCutchan7-Jul-10 21:19 
GeneralRe: Exception during assignment operation to a COM object - "Attempted to read or write protected memory" Pin
asr11227-Jul-10 22:32
asr11227-Jul-10 22:32 
GeneralRe: Exception during assignment operation to a COM object - "Attempted to read or write protected memory" Pin
asr11228-Jul-10 3:05
asr11228-Jul-10 3:05 
Trying to paste more information about the exception from the exception helper

System.AccessViolationException was caught
Message="Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
Source="WebAstra.Application.VoIP.UniversalCOMServer.Interop"
StackTrace:
at WebAstra.Application.VoIP.UniversalCOMServer.Interop._ICallInfo.set_CallId(Int32 pVal)
at WebAstra.Application.VoIP.UniversalCOMServer.UCOMCallData.CreateCallInfo(ApplicationClass appRoot)


Now the dispatch map for this in source is like:

BEGIN_DISPATCH_MAP(CCallInfo, CCmdTarget)
//There are many other entries as well
DISP_PROPERTY_ID(CCallInfo, "CallId", dispidCallId, m_nCallId, VT_I4)
END_DISPATCH_MAP()



In the sources, I don't see any function of setting or getting values so I tried using DISP_PROPERTY_EX_ID instead of DISP_PROPERTY_ID with get and set functions but that didn't change anything.

(my change which didn't change anything)
DISP_PROPERTY_EX_ID(CCallInfo, "CallId", dispidCallId, GetCallId, SetCallId, VT_I4)




Moreover in the interop, I do see the entry like this -

[DispId(1)]
        int CallId { get; set; }


Maybe that's because get and set methods have been declared in the IDL file (??).
Thanks.
GeneralRe: Exception during assignment operation to a COM object - "Attempted to read or write protected memory" Pin
Richard MacCutchan9-Jul-10 21:19
mveRichard MacCutchan9-Jul-10 21:19 
GeneralRe: Exception during assignment operation to a COM object - "Attempted to read or write protected memory" Pin
Vi212-Jul-10 0:05
Vi212-Jul-10 0:05 
GeneralRe: Exception during assignment operation to a COM object - "Attempted to read or write protected memory" Pin
asr112214-Jul-10 2:39
asr112214-Jul-10 2:39 
QuestionDifference between COM Component and Class Pin
krishna_CP5-Jul-10 0:38
krishna_CP5-Jul-10 0:38 
AnswerRe: Difference between COM Component and Class Pin
Richard MacCutchan5-Jul-10 2:25
mveRichard MacCutchan5-Jul-10 2:25 
GeneralRe: Difference between COM Component and Class Pin
krishna_CP5-Jul-10 2:42
krishna_CP5-Jul-10 2:42 
GeneralRe: Difference between COM Component and Class Pin
Richard MacCutchan5-Jul-10 6:32
mveRichard MacCutchan5-Jul-10 6:32 
QuestionHow to read all Windows Registry subkeys of a given key? Pin
Kunal Chowdhury «IN»2-Jul-10 6:05
professionalKunal Chowdhury «IN»2-Jul-10 6:05 
AnswerRe: How to read all Windows Registry subkeys of a given key? Pin
«_Superman_»4-Jul-10 5:06
professional«_Superman_»4-Jul-10 5:06 
GeneralRe: How to read all Windows Registry subkeys of a given key? Pin
Kunal Chowdhury «IN»4-Jul-10 5:10
professionalKunal Chowdhury «IN»4-Jul-10 5:10 
QuestionOLE object containing data + multiple views of data in a compound document. Pin
Code-o-mat2-Jul-10 5:16
Code-o-mat2-Jul-10 5:16 
QuestionHow to scan registry programatically for checking the existence of COM Exe's/Dll's ? Pin
glitteringsound1-Jul-10 7:30
glitteringsound1-Jul-10 7:30 
AnswerRe: How to scan registry programatically for checking the existence of COM Exe's/Dll's ? Pin
«_Superman_»1-Jul-10 19:56
professional«_Superman_»1-Jul-10 19:56 
QuestionVisual Studio 2010 and old Addins Pin
Bryan Anslow29-Jun-10 8:18
Bryan Anslow29-Jun-10 8:18 
QuestionUse COleInsertDialog Pin
MKC00228-Jun-10 2:56
MKC00228-Jun-10 2:56 
QuestionATL Client Application error. Pin
vasuvasanth27-Jun-10 22:58
vasuvasanth27-Jun-10 22:58 
AnswerRe: ATL Client Application error. Pin
Douglas Troy1-Jul-10 6:50
Douglas Troy1-Jul-10 6:50 

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.