Click here to Skip to main content
16,005,120 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: please help me!!!WM_MBUTTONDBLCLK Pin
mark novak17-Apr-05 0:18
mark novak17-Apr-05 0:18 
GeneralRe: please help me!!!WM_MBUTTONDBLCLK Pin
Member 68936117-Apr-05 19:22
Member 68936117-Apr-05 19:22 
General/Align linker option Pin
Chris Wu16-Apr-05 18:19
Chris Wu16-Apr-05 18:19 
GeneralRe: /Align linker option Pin
David S. Hall16-Apr-05 19:11
David S. Hall16-Apr-05 19:11 
GeneralRe: /Align linker option Pin
Michael Dunn17-Apr-05 6:36
sitebuilderMichael Dunn17-Apr-05 6:36 
GeneralMicrophone Pin
ytvsoftware16-Apr-05 14:29
ytvsoftware16-Apr-05 14:29 
GeneralRe: Microphone Pin
Ravi Bhavnani16-Apr-05 16:09
professionalRavi Bhavnani16-Apr-05 16:09 
GeneralCOM object invoked from Matlab persists in memory Pin
Les Beckham16-Apr-05 12:26
Les Beckham16-Apr-05 12:26 
I have a COM object (DLL) which implements a dynamic simulation of a
system. I want to do an optimization of an algorithm in this system
by varying some parameters. This involves repeatedly calling the
simulation in an optimization loop in Matlab.

The problem I am having is that after invoking the simulation COM
object the first time it stays in memory and so, when called on
subsequent iterations, the initialization of internal static
variables does not happen. So, the simulation does not execute
correctly.

I determined that the DLL stays in memory using Process Explorer from
SysInternals.

The COM object is written in VC++ 6.0.

Does anyone have any experience with this type of problem?

Any ideas for a solution?

Is there a way that I can modify my COM object to force it to delete
itself? Perhaps an interface method that I can call from Matlab
which performs this deletion? Confused | :confused:

Thanks

General[Message Deleted] Pin
ddmcr16-Apr-05 9:56
ddmcr16-Apr-05 9:56 
GeneralRe: Application ICON ?? Pin
Alexander M.,16-Apr-05 9:59
Alexander M.,16-Apr-05 9:59 
General[Message Deleted] Pin
ddmcr16-Apr-05 10:06
ddmcr16-Apr-05 10:06 
GeneralRe: Application ICON ?? [edited] Pin
toxcct16-Apr-05 10:13
toxcct16-Apr-05 10:13 
GeneralRe: Application ICON ?? Pin
ddmcr16-Apr-05 10:16
ddmcr16-Apr-05 10:16 
GeneralRe: Application ICON ?? [edited] Pin
toxcct16-Apr-05 10:21
toxcct16-Apr-05 10:21 
GeneralRe: Application ICON ?? Pin
ddmcr16-Apr-05 10:25
ddmcr16-Apr-05 10:25 
GeneralRe: Application ICON ?? Pin
toxcct16-Apr-05 10:39
toxcct16-Apr-05 10:39 
GeneralRe: Application ICON ?? Pin
David Crow16-Apr-05 16:29
David Crow16-Apr-05 16:29 
GeneralRe: Application ICON ?? [edited] Pin
ddmcr16-Apr-05 10:30
ddmcr16-Apr-05 10:30 
GeneralRe: Application ICON ?? [edited] Pin
David Crow16-Apr-05 16:32
David Crow16-Apr-05 16:32 
GeneralRe: Application ICON ?? [edited] Pin
ddmcr16-Apr-05 22:12
ddmcr16-Apr-05 22:12 
GeneralRe: Application ICON ?? Pin
Alexander M.,16-Apr-05 10:24
Alexander M.,16-Apr-05 10:24 
GeneralRe: Application ICON ?? Pin
toxcct16-Apr-05 10:07
toxcct16-Apr-05 10:07 
GeneralRe: Application ICON ?? Pin
mark novak16-Apr-05 23:36
mark novak16-Apr-05 23:36 
GeneralWINDOWS Directory Pin
ddmcr16-Apr-05 7:33
ddmcr16-Apr-05 7:33 
GeneralRe: WINDOWS Directory Pin
22491716-Apr-05 7:48
22491716-Apr-05 7:48 

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.