Click here to Skip to main content
15,913,941 members
Home / Discussions / COM
   

COM

 
QuestionHow to make clickable/ draggable shapes Pin
Anonymous4-Mar-04 21:24
Anonymous4-Mar-04 21:24 
Generalopening an Excel file Pin
Liate2-Mar-04 5:37
Liate2-Mar-04 5:37 
GeneralRe: opening an Excel file Pin
Steve S2-Mar-04 6:24
Steve S2-Mar-04 6:24 
GeneralRe: opening an Excel file Pin
Liate2-Mar-04 19:55
Liate2-Mar-04 19:55 
GeneralProblem while destroying SafeArray Pin
mandarpb1-Mar-04 22:09
sussmandarpb1-Mar-04 22:09 
GeneralRe: Problem while destroying SafeArray Pin
Steve S1-Mar-04 22:22
Steve S1-Mar-04 22:22 
GeneralRe: Problem while destroying SafeArray Pin
Anonymous2-Mar-04 19:35
Anonymous2-Mar-04 19:35 
GeneralRe: Problem while destroying SafeArray Pin
Steve S2-Mar-04 23:21
Steve S2-Mar-04 23:21 
1-4 No problem, that's exactly right.
5. Is the parameter [in,out] by any chance?
If so, that's your problem. You need to do
4. hr = SafeArrayDestroy(*psaProjConfig);
*psaProjConfig = NULL;
That tells OLEAUT32 (which contains the automation marshalling code) that there is nothing to marshall back. Without that step, the marshaller at the client end will be trying to marshall freed memory.

Hope that helps



Steve S
GeneralRe: Problem while destroying SafeArray Pin
Anonymous5-Mar-04 3:04
Anonymous5-Mar-04 3:04 
GeneralRe: Problem while destroying SafeArray Pin
Steve S7-Mar-04 21:56
Steve S7-Mar-04 21:56 
GeneralRe: Problem while destroying SafeArray Pin
Anonymous10-Mar-04 2:06
Anonymous10-Mar-04 2:06 
GeneralRe: Problem while destroying SafeArray Pin
Prakash Nadar6-Mar-04 6:45
Prakash Nadar6-Mar-04 6:45 
GeneralRe: Problem while destroying SafeArray Pin
Anonymous10-Mar-04 2:07
Anonymous10-Mar-04 2:07 
Generalvariant arrays.. Pin
safee ullah29-Feb-04 21:08
safee ullah29-Feb-04 21:08 
GeneralRe: variant arrays.. Pin
Steve S1-Mar-04 0:12
Steve S1-Mar-04 0:12 
Generalvariant types.. Pin
anand12312329-Feb-04 20:06
sussanand12312329-Feb-04 20:06 
GeneralRe: variant types.. Pin
ian mariano29-Feb-04 20:45
ian mariano29-Feb-04 20:45 
GeneralRe: variant types.. Pin
safee ullah29-Feb-04 21:03
safee ullah29-Feb-04 21:03 
GeneralRe: variant types.. Pin
Steve S1-Mar-04 0:16
Steve S1-Mar-04 0:16 
GeneralRe: variant types.. Pin
ian mariano1-Mar-04 11:39
ian mariano1-Mar-04 11:39 
GeneralRe: variant types.. Pin
anand1231232-Mar-04 18:03
sussanand1231232-Mar-04 18:03 
GeneralUsing SetWindowRgn in a control causes a memory leak when the control is loaded dynamically Pin
Steef29-Feb-04 5:48
Steef29-Feb-04 5:48 
GeneralRe: Using SetWindowRgn in a control causes a memory leak when the control is loaded dynamically Pin
Prakash Nadar29-Feb-04 16:49
Prakash Nadar29-Feb-04 16:49 
GeneralRe: Using SetWindowRgn in a control causes a memory leak when the control is loaded dynamically Pin
Steef (Stephan Deckers)29-Feb-04 19:23
Steef (Stephan Deckers)29-Feb-04 19:23 
GeneralRe: Using SetWindowRgn in a control causes a memory leak when the control is loaded dynamically Pin
Prakash Nadar29-Feb-04 19:53
Prakash Nadar29-Feb-04 19:53 

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.