Click here to Skip to main content
15,917,793 members
Home / Discussions / COM
   

COM

 
GeneralRe: DCOM Server - Problem with Parameters Pin
jduncalf27-May-03 21:47
jduncalf27-May-03 21:47 
GeneralRe: DCOM Server - Problem with Parameters Pin
jduncalf27-May-03 21:48
jduncalf27-May-03 21:48 
Generalcreation of client to Com-EXE-Server Pin
satishsilla26-May-03 18:01
satishsilla26-May-03 18:01 
GeneralRe: creation of client to Com-EXE-Server Pin
Anand Vinod27-May-03 3:26
Anand Vinod27-May-03 3:26 
GeneralCOM client app resulting in Error code C2018 Pin
Obi-Wan-Kenobi24-May-03 1:43
Obi-Wan-Kenobi24-May-03 1:43 
GeneralRe: COM client app resulting in Error code C2018 Pin
AlexO27-May-03 7:28
AlexO27-May-03 7:28 
GeneralRe: COM client app resulting in Error code C2018 Pin
Obi-Wan-Kenobi27-May-03 18:24
Obi-Wan-Kenobi27-May-03 18:24 
GeneralError handling events in wscript Pin
particle2k23-May-03 3:15
particle2k23-May-03 3:15 
hello,

i have an local server application exposing some objects with dispinterface events.
and i have a simple .vbs file which creates an object instance, and connects the event interface and releases everything.

Set App = CreateObject( "Server.App" )
WScript.connectObject App, "app_"
WScript.DisconnectObject App
set App = Nothing
wscript.quit

then the wscript crashes with an access violation. if i remove the connectobject line, the wscript terminates without error. seems like the wscript crashes inside the quit method, an messagebox right in front on the quit is displayed correctly.

if i connect the event interface from a c++ client, with atladvise, atlunadvise, everything works, i get no error there.

what could be the problem there? where can i search why the wscript crashes? if have no source for the wscript.

the advise and unadvise marshalls the interface into a stream to make it accessable from any thread.

... error checking
LPSTREAM pStream = 0;
hRes = CreateStreamOnHGlobal( 0, TRUE, &pStream );
if ( SUCCEEDED( hRes ) )
{
hRes = CoMarshalInterface( pStream, iid, p, MSHCTX_LOCAL | MSHCTX_INPROC | MSHCTX_NOSHAREDMEM, 0, MSHLFLAGS_TABLESTRONG );
}
... store stream and return cookie.

maybe there is the problem, i also tried with MSHCTX_INPROC only, but the same error occurred.

thanks in advance
enrico
GeneralRe: Error handling events in wscript Pin
Erik Juhl27-May-03 8:20
Erik Juhl27-May-03 8:20 
GeneralOLE-Automation debugging problem. Pin
vcseeker22-May-03 2:45
vcseeker22-May-03 2:45 
GeneralSee VC++ forum Pin
AlexO22-May-03 4:21
AlexO22-May-03 4:21 
GeneralSysAllocString hangs on Windows 2003 server Pin
Sachin R. Laddha22-May-03 1:36
Sachin R. Laddha22-May-03 1:36 
GeneralRe: SysAllocString hangs on Windows 2003 server Pin
Hugo Hallman25-May-03 11:29
Hugo Hallman25-May-03 11:29 
GeneralRe: SysAllocString hangs on Windows 2003 server Pin
jan larsen26-May-03 22:18
jan larsen26-May-03 22:18 
QuestionHow to check if an instance still exists? Pin
Jonathan de Halleux22-May-03 1:09
Jonathan de Halleux22-May-03 1:09 
GeneralAbout ISupporErrorInfo in Atl/com Pin
satishsilla21-May-03 23:49
satishsilla21-May-03 23:49 
GeneralRe: About ISupporErrorInfo in Atl/com Pin
Giles22-May-03 2:30
Giles22-May-03 2:30 
GeneralRe: About ISupporErrorInfo in Atl/com Pin
geo_m26-May-03 7:49
geo_m26-May-03 7:49 
GeneralClass to Variant Pin
makaveli1998200221-May-03 9:00
makaveli1998200221-May-03 9:00 
GeneralRe: Class to Variant Pin
AlexO21-May-03 10:16
AlexO21-May-03 10:16 
Generalpassing interfacepointers in dcom Pin
ELCH21-May-03 2:29
ELCH21-May-03 2:29 
GeneralRe: passing interfacepointers in dcom Pin
AlexO21-May-03 10:18
AlexO21-May-03 10:18 
GeneralRe: passing interfacepointers in dcom Pin
ELCH21-May-03 19:18
ELCH21-May-03 19:18 
GeneralRe: passing interfacepointers in dcom Pin
AlexO22-May-03 4:31
AlexO22-May-03 4:31 
GeneralRe: passing interfacepointers in dcom Pin
ELCH22-May-03 20:20
ELCH22-May-03 20:20 

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.