Click here to Skip to main content
15,895,606 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Release COM dll crash problem (Windows 7 64bit OS) Pin
barneyman21-Mar-12 2:34
barneyman21-Mar-12 2:34 
GeneralRe: Release COM dll crash problem (Windows 7 64bit OS) Pin
MrKBA21-Mar-12 2:46
MrKBA21-Mar-12 2:46 
GeneralRe: Release COM dll crash problem (Windows 7 64bit OS) Pin
barneyman21-Mar-12 12:25
barneyman21-Mar-12 12:25 
AnswerRe: Release COM dll crash problem (Windows 7 64bit OS) Pin
MrKBA21-Mar-12 2:10
MrKBA21-Mar-12 2:10 
QuestionHow do I detect when a print job starts? Pin
LetsMond2-Mar-12 1:11
LetsMond2-Mar-12 1:11 
AnswerRe: How do I detect when a print job starts? Pin
AminMhmdi7-Mar-12 20:27
professionalAminMhmdi7-Mar-12 20:27 
GeneralRe: How do I detect when a print job starts? Pin
LetsMond7-Mar-12 22:30
LetsMond7-Mar-12 22:30 
QuestionATL Sink in .NET process Pin
Vikram123428-Feb-12 15:50
Vikram123428-Feb-12 15: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 16:01
barneyman29-Feb-12 16:01 
GeneralRe: ATL Sink in .NET process Pin
Vikram123429-Feb-12 16:10
Vikram123429-Feb-12 16:10 
GeneralRe: ATL Sink in .NET process Pin
barneyman29-Feb-12 16:17
barneyman29-Feb-12 16:17 
GeneralRe: ATL Sink in .NET process Pin
Vikram123429-Feb-12 16:22
Vikram123429-Feb-12 16:22 
GeneralRe: ATL Sink in .NET process Pin
Vikram12341-Mar-12 7:56
Vikram12341-Mar-12 7:56 
GeneralRe: ATL Sink in .NET process Pin
barneyman1-Mar-12 17:36
barneyman1-Mar-12 17:36 
AnswerRe: ATL Sink in .NET process Pin
ThatsAlok21-Jun-12 23:10
ThatsAlok21-Jun-12 23:10 
QuestionGet Notification of Wrong Password Attempt Pin
Member 857955627-Feb-12 3:42
Member 857955627-Feb-12 3:42 
AnswerRe: Get Notification of Wrong Password Attempt Pin
Richard MacCutchan27-Feb-12 4:19
mveRichard MacCutchan27-Feb-12 4:19 
AnswerRe: Get Notification of Wrong Password Attempt Pin
peterchen24-Mar-12 6:32
peterchen24-Mar-12 6:32 
QuestionEntry point name correction in compiled DLL, Swig/GCC/CC/LD and exports Pin
XenobiusII24-Feb-12 19:09
XenobiusII24-Feb-12 19:09 
AnswerRe: Entry point name correction in compiled DLL, Swig/GCC/CC/LD and exports Pin
Richard MacCutchan24-Feb-12 23:43
mveRichard MacCutchan24-Feb-12 23:43 
Questionprojects with C++ Pin
niara 24-Feb-12 13:09
niara 24-Feb-12 13:09 
AnswerRe: projects with C++ Pin
Richard MacCutchan24-Feb-12 23:37
mveRichard MacCutchan24-Feb-12 23:37 
QuestionOnChar not called Pin
Member 199473021-Feb-12 2:20
Member 199473021-Feb-12 2:20 
AnswerRe: OnChar not called Pin
Jonathan Davies22-Feb-12 1:36
Jonathan Davies22-Feb-12 1:36 
GeneralRe: OnChar not called Pin
Richard MacCutchan22-Feb-12 3:06
mveRichard MacCutchan22-Feb-12 3: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.