Click here to Skip to main content
14,734,830 members
Home » Discussions » ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Release COM dll crash problem (Windows 7 64bit OS) Pin
barneyman21-Mar-12 3:34
Memberbarneyman21-Mar-12 3:34 
GeneralRe: Release COM dll crash problem (Windows 7 64bit OS) Pin
MrKBA21-Mar-12 3:46
MemberMrKBA21-Mar-12 3:46 
GeneralRe: Release COM dll crash problem (Windows 7 64bit OS) Pin
barneyman21-Mar-12 13:25
Memberbarneyman21-Mar-12 13:25 
AnswerRe: Release COM dll crash problem (Windows 7 64bit OS) Pin
MrKBA21-Mar-12 3:10
MemberMrKBA21-Mar-12 3:10 
QuestionHow do I detect when a print job starts? Pin
LetsMond2-Mar-12 2:11
MemberLetsMond2-Mar-12 2:11 
AnswerRe: How do I detect when a print job starts? Pin
AminMhmdi7-Mar-12 21:27
professionalAminMhmdi7-Mar-12 21:27 
GeneralRe: How do I detect when a print job starts? Pin
LetsMond7-Mar-12 23:30
MemberLetsMond7-Mar-12 23:30 
QuestionATL Sink in .NET process Pin
Vikram123428-Feb-12 16:50
MemberVikram123428-Feb-12 16:50 
Hello,

I have an Win32 COM application with GUI written in C++ (MFC). This GUI invokes a ATL COM client/DLL that acts as a sink to a ATL COM server. Everything works well. So we have 3 components here- MFC GUI app, COM client/sink and COM event server.

Now, I need to replace this native MFC C++ GUI application with .NET application. So I imported the COM dll that acts as sink into my .NET application and all interfaces were available as expected. When I make a specific method call in this COM dll/object, this method establishes sink connection with COM server (using AtlAdvise) without any issues. However, when the COM server raises an event, the call reaches the sink, but it fails in InvokeFromFuncInfo (specifically it DispCallFunc fails) from ATLCOM.h giving Access Violation error (0xC0000005). So to represent this:

1. .NET GUI ---create instance--->>> COM DLL (SINK) ---establish connection --->>>> COM Event Server

2. COM Event Server ---raise event--->>>ATLCOM.h (in COM sink DLL) fails in DispCallFunc with Access Violation (0xC0000005).

The above flow works perfectly well with my MFC GUI.

Is there anything required for this connectionable object or sink that I may not be setting in my .NET appliaction? How can I at least delve deeper to see what is going on?

thanks!
Vikram
AnswerRe: ATL Sink in .NET process Pin
barneyman29-Feb-12 17:01
Memberbarneyman29-Feb-12 17:01 
GeneralRe: ATL Sink in .NET process Pin
Vikram123429-Feb-12 17:10
MemberVikram123429-Feb-12 17:10 
GeneralRe: ATL Sink in .NET process Pin
barneyman29-Feb-12 17:17
Memberbarneyman29-Feb-12 17:17 
GeneralRe: ATL Sink in .NET process Pin
Vikram123429-Feb-12 17:22
MemberVikram123429-Feb-12 17:22 
GeneralRe: ATL Sink in .NET process Pin
Vikram12341-Mar-12 8:56
MemberVikram12341-Mar-12 8:56 
GeneralRe: ATL Sink in .NET process Pin
barneyman1-Mar-12 18:36
Memberbarneyman1-Mar-12 18:36 
AnswerRe: ATL Sink in .NET process Pin
ThatsAlok22-Jun-12 0:10
MemberThatsAlok22-Jun-12 0:10 
QuestionGet Notification of Wrong Password Attempt Pin
Member 857955627-Feb-12 4:42
MemberMember 857955627-Feb-12 4:42 
AnswerRe: Get Notification of Wrong Password Attempt Pin
Richard MacCutchan27-Feb-12 5:19
mveRichard MacCutchan27-Feb-12 5:19 
AnswerRe: Get Notification of Wrong Password Attempt Pin
peterchen24-Mar-12 7:32
Memberpeterchen24-Mar-12 7:32 
QuestionEntry point name correction in compiled DLL, Swig/GCC/CC/LD and exports Pin
XenobiusII24-Feb-12 20:09
MemberXenobiusII24-Feb-12 20:09 
AnswerRe: Entry point name correction in compiled DLL, Swig/GCC/CC/LD and exports Pin
Richard MacCutchan25-Feb-12 0:43
mveRichard MacCutchan25-Feb-12 0:43 
Questionprojects with C++ Pin
niara 24-Feb-12 14:09
Memberniara 24-Feb-12 14:09 
AnswerRe: projects with C++ Pin
Richard MacCutchan25-Feb-12 0:37
mveRichard MacCutchan25-Feb-12 0:37 
QuestionOnChar not called Pin
Member 199473021-Feb-12 3:20
MemberMember 199473021-Feb-12 3:20 
AnswerRe: OnChar not called Pin
Jonathan Davies22-Feb-12 2:36
MemberJonathan Davies22-Feb-12 2:36 
GeneralRe: OnChar not called Pin
Richard MacCutchan22-Feb-12 4:06
mveRichard MacCutchan22-Feb-12 4:06 

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.