Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: mex: Compile error with mxArray
Date: Thu, 13 Aug 2009 17:48:01 +0000 (UTC)
Organization: Boeing
Lines: 7
Message-ID: <h61jkh$kvi$1@fred.mathworks.com>
References: <h61543$anv$1@fred.mathworks.com> <h619lq$hka$1@fred.mathworks.com> <h61acj$43k$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1250185681 21490 172.30.248.37 (13 Aug 2009 17:48:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 13 Aug 2009 17:48:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 756104
Xref: news.mathworks.com comp.soft-sys.matlab:563167


"David  Hanau" <hanaud@gmail.com.REMTHIS> wrote in message <h61acj$43k$1@fred.mathworks.com>...
>
> I post only part of my files. They are really big and I don't think the rest of the code would be relevant here.

I notice in the code you post there are several opportunities for memory leaks. I assume you have free() calls somewhere to clean up all of your calloc calls and you snipped that out and didn't post that code??? Also, you might think of switching your calloc (and free) calls to mxCalloc (and mxFree) calls.

James Tursa