By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,132 Members | 1,948 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,132 IT Pros & Developers. It's quick & easy.

mxFree

P: n/a
from a mex file i am getting four arrays as output.
should i use mxFree for them at the end of the code...or i shouldn't do
that becuase it is returning them!!

i think is shouldn't free them!! what do you think?

Jun 20 '06 #1
Share this Question
Share on Google+
5 Replies


P: n/a
dk*******@gmail.com wrote:
from a mex file i am getting four arrays as output.
should i use mxFree for them at the end of the code...or i shouldn't do
that becuase it is returning them!!

i think is shouldn't free them!! what do you think?


This is a matlab question and should be posted to comp.soft-sys.matlab.
Jun 20 '06 #2

P: n/a
dk*******@gmail.com writes:
from a mex file i am getting four arrays as output.
should i use mxFree for them at the end of the code...or i shouldn't do
that becuase it is returning them!!

i think is shouldn't free them!! what do you think?


Please quote context when posting a follow up so people who don't use
the Google Groups interface can tell what you are refering to.

Thank you.

--
Ioan - Ciprian Tandau
tandau _at_ freeshell _dot_ org (hope it's not too late)
(... and that it still works...)
Jun 20 '06 #3

P: n/a
Nelu <sp*******@gmail.com> wrote:
Please quote context when posting a follow up so people who don't use
the Google Groups interface can tell what you are refering to.


Fine advice, but OP seemed to be beginning a new thread, leaving no
context to quote...

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
Jun 20 '06 #4

P: n/a
Christopher Benson-Manica <at***@norge.freeshell.org> writes:
Nelu <sp*******@gmail.com> wrote:
Please quote context when posting a follow up so people who don't use
the Google Groups interface can tell what you are refering to.


Fine advice, but OP seemed to be beginning a new thread, leaving no
context to quote...


There was another post about mxFree earlier and I thought it was the
same one. I guess I was fooled by the the way the post was written.

--
Ioan - Ciprian Tandau
tandau _at_ freeshell _dot_ org (hope it's not too late)
(... and that it still works...)
Jun 20 '06 #5

P: n/a
dk*******@gmail.com wrote:
from a mex file i am getting four arrays as output.
should i use mxFree for them at the end of the code...or i shouldn't do
that becuase it is returning them!!

i think is shouldn't free them!! what do you think?


I think you should only mxfree it if you used something like mxmalloc,
but I'm not that much into it. Couldn't be so hard to find out - just
try it and see if it crashes and you can also see how much memory is spend.
Best regards
Martin Jørgensen

--
---------------------------------------------------------------------------
Home of Martin Jørgensen - http://www.martinjoergensen.dk
Jun 20 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.