Re: Drag and drop and IAsyncOperation problems
From: nikos (umeca74_at_hotmail.com)
Date: 04/05/04
- Next message: HiChetu: "COM+ Exception, Infinite Recursive Loop."
- Previous message: anony*mouse: "Re: EM_SETOLECALLBACK"
- In reply to: Highlander: "Re: Drag and drop and IAsyncOperation problems"
- Next in thread: Highlander: "Re: Drag and drop and IAsyncOperation problems"
- Reply: Highlander: "Re: Drag and drop and IAsyncOperation problems"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 5 Apr 2004 11:37:38 +0100
"Highlander" <highlander1976@mail.ru> wrote in message
news:ulc0NBuGEHA.3360@TK2MSFTNGP12.phx.gbl...
> My program stores documents in the database so I think that optimized move
> is not the case.
that is true when copying files _out_ of your database
when you accept files on the other hand, there's no stopping you
deleting the original files/documents, no?
> Did I choose the correct way of transferring data object to the spawned
> thread
> (CoMarshalInterThreadInterfaceInStream/CoGetInterfaceAndReleaseStream) ? I
> also make AddRef to data object in the main thread and release it after
> EndOperation() in the spawned thread.
>
I am not that familiar with IAsyncOperation, sorry
in general, if by the end all your object references are released
you don't have any problems with lockings
(Have you tried calling EndOperation from the main thread,
sending some custom message when the threaded operation finishes?)
> IAsyncOperation->GetAsyncMode() returns TRUE but not VARIANT_TRUE
that's life! :)
the good thing is that in C++ both values pass the if() test
- Next message: HiChetu: "COM+ Exception, Infinite Recursive Loop."
- Previous message: anony*mouse: "Re: EM_SETOLECALLBACK"
- In reply to: Highlander: "Re: Drag and drop and IAsyncOperation problems"
- Next in thread: Highlander: "Re: Drag and drop and IAsyncOperation problems"
- Reply: Highlander: "Re: Drag and drop and IAsyncOperation problems"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|