Click here to Skip to main content
16,004,854 members
Home / Discussions / COM
   

COM

 
GeneralRe: COM (system.__comobject) i need to convert it to byte[] C# Pin
Sander123432116-Jun-09 6:28
Sander123432116-Jun-09 6:28 
GeneralRe: COM (system.__comobject) i need to convert it to byte[] C# Pin
led mike16-Jun-09 8:41
led mike16-Jun-09 8:41 
QuestionHow to Interop 2D char from COM function in c# Pin
platso_58816-Jun-09 4:44
platso_58816-Jun-09 4:44 
AnswerRe: How to Interop 2D char from COM function in c# Pin
Stuart Dootson16-Jun-09 8:59
professionalStuart Dootson16-Jun-09 8:59 
Questionhelp me ! resolve this error and tell me . Why ? Pin
chungduy14-Jun-09 17:00
chungduy14-Jun-09 17:00 
AnswerRe: help me ! resolve this error and tell me . Why ? Pin
Stuart Dootson14-Jun-09 23:34
professionalStuart Dootson14-Jun-09 23:34 
QuestionCOM wrapper for .net library Pin
noob42013-Jun-09 1:21
noob42013-Jun-09 1:21 
QuestionOut of memory problem in Matlab with ActiveX event handling Pin
LaiAlan11-Jun-09 17:32
LaiAlan11-Jun-09 17:32 
Dear all,

I am having an out of memory problem in Matlab with using a proprietary DLL to read data that was recorded using that company's software and equipment.

I have went through the problem with the software engineer at the company and he is quite certain that it is not due to leaking memory because the DLL only creates the memory object once and reuses it.

The DLL (data reader) is loaded using the actxserver command in matlab. The DLL retrieves data based on events, so I registered the event using: registerevent({'DataReady' 'DataReady_function'});
That is, when the user asks for data, the DLL sends it back via the event callback function in Matlab: 'DataReady_function'.

I have inserted "clear VARIABLES" throughout the functions to ensure that I have cleared all variables that were no longer used. When the data came in via the event handler as "varargin", I even loaded everything in (i.e., FULL_DATA = varargin) and taken out the data (i.e., Data = varargin{7}) and then applied "clear" to the whole "varargin" (i.e., clear FULL_DATA).

The problem is that as I loop through the function, reading through the stored data on the hard drive, more and more memory gets held up by Matlab, even though I am not actually storing any data within Matlab (just consistently reading in small bits of data and then clearing it). If I let it keep running, Matlab eventually runs out of memory. If I stop it before it runs out and try to "clear all", Matlab still holds onto the memory and will not release it (I confirmed this by looking at the memory usage under the processes tab in Windows Task Manager).

From what I can gather, Matlab must be trying to protect all the bits of data that comes in via the event callback, but I just don't know how to tell Matlab that the data has been read and it does not need to protect it any longer. If you have encountered this problem or know how to resolve it, please let me know.

I am really stuck and would really appreciate your help. Thank you very much.

Yours sincerely,
Alan
QuestionRe: Out of memory problem in Matlab with ActiveX event handling Pin
Roger Stoltz11-Jun-09 21:59
Roger Stoltz11-Jun-09 21:59 
AnswerRe: Out of memory problem in Matlab with ActiveX event handling Pin
LaiAlan14-Jun-09 15:56
LaiAlan14-Jun-09 15:56 
AnswerRe: Out of memory problem in Matlab with ActiveX event handling Pin
Roger Stoltz15-Jun-09 21:36
Roger Stoltz15-Jun-09 21:36 
GeneralRe: Out of memory problem in Matlab with ActiveX event handling Pin
LaiAlan15-Jun-09 22:42
LaiAlan15-Jun-09 22:42 
QuestionBand Object - Get Is toolbar is enabl eor Disable. Pin
Nehal Pandya MCA11-Jun-09 0:53
Nehal Pandya MCA11-Jun-09 0:53 
AnswerRe: Band Object - Get Is toolbar is enabl eor Disable. Pin
myLongNic9-Jul-09 15:20
myLongNic9-Jul-09 15:20 
QuestionCom POrt Pin
sahu.shikha10-Jun-09 2:13
sahu.shikha10-Jun-09 2:13 
AnswerRe: Com POrt Pin
Roger Stoltz10-Jun-09 5:20
Roger Stoltz10-Jun-09 5:20 
QuestionGlobal OLE instance pointers - Termination hangs Pin
lavate malllik9-Jun-09 5:23
lavate malllik9-Jun-09 5:23 
AnswerRe: Global OLE instance pointers - Termination hangs Pin
CPallini9-Jun-09 6:18
mveCPallini9-Jun-09 6:18 
AnswerRe: Global OLE instance pointers - Termination hangs Pin
Stuart Dootson9-Jun-09 22:27
professionalStuart Dootson9-Jun-09 22:27 
QuestionHOW CAN I ADD dll to windows .net application Pin
lnmca5-Jun-09 22:17
lnmca5-Jun-09 22:17 
AnswerRe: HOW CAN I ADD dll to windows .net application Pin
Stuart Dootson6-Jun-09 4:30
professionalStuart Dootson6-Jun-09 4:30 
GeneralRe: HOW CAN I ADD dll to windows .net application Pin
Md. Marufuzzaman6-Jul-09 22:02
professionalMd. Marufuzzaman6-Jul-09 22:02 
GeneralRe: HOW CAN I ADD dll to windows .net application Pin
Stuart Dootson6-Jul-09 22:04
professionalStuart Dootson6-Jul-09 22:04 
AnswerRe: HOW CAN I ADD dll to windows .net application Pin
Sonhospa12-Jun-09 1:29
Sonhospa12-Jun-09 1:29 
QuestionRedirecting JavaScript Function Calls to My C++ Code Pin
kochikoo5-Jun-09 2:29
kochikoo5-Jun-09 2:29 

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.