Click here to Skip to main content
16,005,467 members
Home / Discussions / COM
   

COM

 
Generalclass factories (simple COM server) Pin
Roman Nurik28-Jul-02 19:26
Roman Nurik28-Jul-02 19:26 
GeneralRe: class factories (simple COM server) Pin
Vi229-Jul-02 2:42
Vi229-Jul-02 2:42 
GeneralRe: class factories (simple COM server) Pin
Roman Nurik29-Jul-02 6:27
Roman Nurik29-Jul-02 6:27 
GeneralRe: class factories (simple COM server) Pin
Vi229-Jul-02 19:02
Vi229-Jul-02 19:02 
GeneralLoadxml error Pin
suresh_sathya28-Jul-02 18:52
suresh_sathya28-Jul-02 18:52 
GeneralICUSTOMDOWNLOAD implementation info Pin
Dazza28-Jul-02 2:57
Dazza28-Jul-02 2:57 
GeneralUsing Managed Components (.NET) from Unmanaged Code (Delphi) Pin
MrEyes26-Jul-02 5:15
MrEyes26-Jul-02 5:15 
GeneralClient Worker threads Pin
gharrison25-Jul-02 0:36
gharrison25-Jul-02 0:36 
If I have call a COM object in an in-process server, which modifies a pointer, passed to it, in a worker thread as followers.

CoInitialize( NULL );

IProfile Profile;
Profile.CreateDispatch(_T("AutomationDispatch.Profile"));

int Size = Profile.GetDataSize();
double * pData = new double[ Size ];

Profile.GetData( pData );

Every works OK.

But if I call CoInitialize( NULL ) in the main thread before creating the worker thread. Then I get the following run-time error

Heap block at 00148698 modified at 001486A8 past requested size of 8.

When I debug the code, the pointer memory address passed to the COM object is changed in the COM object implementation.

If I pass the address of the pointer to COM object. Then there are no heap errors. I assume this because the address is passed by value.




GeneralRe: Client Worker threads Pin
Ernest Laurentin27-Jul-02 12:46
Ernest Laurentin27-Jul-02 12:46 
GeneralCOM,Socket,ASP Pin
eyedia24-Jul-02 21:06
eyedia24-Jul-02 21:06 
GeneralHidden dialog from Dll Pin
Atin Kumar24-Jul-02 18:06
Atin Kumar24-Jul-02 18:06 
GeneralRe: Hidden dialog from Dll Pin
Ernest Laurentin27-Jul-02 12:48
Ernest Laurentin27-Jul-02 12:48 
GeneralRe: Hidden dialog from Dll Pin
Atin Kumar28-Jul-02 15:35
Atin Kumar28-Jul-02 15:35 
Generalmethod executing too many times Pin
mgriffith24-Jul-02 8:09
mgriffith24-Jul-02 8:09 
GeneralSafearray with byte data Pin
Anonymous24-Jul-02 4:09
Anonymous24-Jul-02 4:09 
GeneralRe: Safearray with byte data Pin
Vi224-Jul-02 4:20
Vi224-Jul-02 4:20 
GeneralRe: Safearray with byte data Pin
Anonymous24-Jul-02 5:53
Anonymous24-Jul-02 5:53 
GeneralPassing COM object as parameter to C++ function Pin
Tomaž Štih24-Jul-02 0:23
Tomaž Štih24-Jul-02 0:23 
GeneralRe: Passing COM object as parameter to C++ function Pin
Vi229-Jul-02 3:12
Vi229-Jul-02 3:12 
GeneralVARIANT and Byte Arrays Pin
Jose Fco Bonnin23-Jul-02 22:26
Jose Fco Bonnin23-Jul-02 22:26 
GeneralInside COM Pin
CaesarCZ23-Jul-02 12:09
CaesarCZ23-Jul-02 12:09 
GeneralPass a specific C++ object through COM server Pin
chrisl23-Jul-02 3:42
chrisl23-Jul-02 3:42 
QuestionHow to disable script in my Browser Control Pin
rokia22-Jul-02 16:17
rokia22-Jul-02 16:17 
GeneralHELP: Composite Control Pin
minhhoang22-Jul-02 11:59
minhhoang22-Jul-02 11:59 
GeneralmsWord automation Pin
pnpfriend22-Jul-02 10:25
pnpfriend22-Jul-02 10:25 

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.