Click here to Skip to main content
15,908,175 members
Home / Discussions / COM
   

COM

 
GeneralHBITMAP marshalling with out-of-process servers Pin
Gary Wheeler24-Jan-08 3:04
Gary Wheeler24-Jan-08 3:04 
GeneralCOM exe startup issue Pin
act_x23-Jan-08 6:41
act_x23-Jan-08 6:41 
GeneralRe: COM exe startup issue Pin
Cedric Moonen23-Jan-08 20:57
Cedric Moonen23-Jan-08 20:57 
QuestionHow do I create a managed com object with VS03? Pin
Dan Neely23-Jan-08 5:08
Dan Neely23-Jan-08 5:08 
AnswerRe: How do I create a managed com object with VS03? Pin
User 21559724-Jan-08 0:20
User 21559724-Jan-08 0:20 
GeneralActiveX Control Pin
sv1422-Jan-08 21:41
sv1422-Jan-08 21:41 
GeneralRegarding User defined services.. Pin
tasumisra21-Jan-08 19:57
tasumisra21-Jan-08 19:57 
QuestionCall of COM server crashes with Access Violation Pin
MasterD21-Jan-08 5:49
MasterD21-Jan-08 5:49 
Hello,

I have a problem with calling my COM server. It connects and runs successfully with my development box, but crashes on another box.

On the other box, a CoCreateInstance call like:

CComPtr<imyclass> p;
hr = CoCreateInstance(CLSID_MyClass, NULL, CLSCTX_ALL, IID_IMyClass, reinterpret_cast<void**>(&p));

succeeds. Also calls to e.g. p->QueryInterface are ok. But if I call my own methods, it crashes with an access violation / null pointer. The problem is, that I cannot see, where the null pointer is. I don't know, which information I should provide, in order to help someone help me, so please ask anything.

Code is plain C++ with no .NET. Dev Box is a Win XP system, other box a Windows Server 2003 SP2.

To explain a bit more: The null pointer seems to be inside of the com call, since when I debug both client and server, the breakpoint inside of the server is not reached. The error message I get is "Unhandled exception at 0x00000000 in bin.exe: 0xC0000005: Access violation reading location 0x00000000." when I call p->Init(CComBstr, int) (The string is allocated correctly).

I'm pretty confused and don't even know where to start looking. Searching with something like "atl com access violation" or similar doesn't help.

Thanks in advance!
GeneralRe: Call of COM server crashes with Access Violation Pin
MasterD22-Jan-08 2:54
MasterD22-Jan-08 2:54 
QuestionHow to read Excel file & save data in array........... Pin
student49118-Jan-08 11:19
student49118-Jan-08 11:19 
GeneralClass Not Registered Pin
ritz123416-Jan-08 19:04
ritz123416-Jan-08 19:04 
Questionhow to open Existing Excel file .... Pin
student49116-Jan-08 7:37
student49116-Jan-08 7:37 
QuestionWhat is the WebBrowser control? Pin
keniagm16-Jan-08 5:59
keniagm16-Jan-08 5:59 
GeneralRe: What is the WebBrowser control? Pin
gottimukkala31-Jan-08 0:03
gottimukkala31-Jan-08 0:03 
GeneralRe: What is the WebBrowser control? Pin
Catherine Sea15-Feb-08 15:28
Catherine Sea15-Feb-08 15:28 
GeneralRe: What is the WebBrowser control? Pin
keniagm18-Feb-08 2:19
keniagm18-Feb-08 2:19 
GeneralCOMUNICATION BY RS232! Pin
cute_noel14-Jan-08 0:31
cute_noel14-Jan-08 0:31 
GeneralWrong forum Pin
CPallini14-Jan-08 3:20
mveCPallini14-Jan-08 3:20 
GeneralApplyTemplateType()... Pin
student49112-Jan-08 9:12
student49112-Jan-08 9:12 
QuestionHow to call Dot net Web-Services in php/Java ? Pin
alisolution11-Jan-08 21:13
alisolution11-Jan-08 21:13 
AnswerRe: How to call Dot net Web-Services in php/Java ? Pin
Catherine Sea15-Feb-08 15:25
Catherine Sea15-Feb-08 15:25 
GeneralConvert CString to BSTR Pin
mandanani10-Jan-08 20:05
mandanani10-Jan-08 20:05 
GeneralCross Post? Pin
CPallini10-Jan-08 22:10
mveCPallini10-Jan-08 22:10 
QuestionHow to draw Cutomized charts in Excel 2007....... Pin
student4919-Jan-08 4:12
student4919-Jan-08 4:12 
Generalerror C2259 Pin
Krishnatv8-Jan-08 18:35
Krishnatv8-Jan-08 18:35 

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.