Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!g23g2000yqh.googlegroups.com!not-for-mail
From: Izzy <iskandarprins@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: C++ and Matlab
Date: Thu, 5 Nov 2009 04:55:45 -0800 (PST)
Organization: http://groups.google.com
Lines: 24
Message-ID: <ab897769-b6b9-49a5-8926-79681bcec4c1@g23g2000yqh.googlegroups.com>
References: <79efd49c-346d-40b2-a663-67f754b7b8da@g23g2000yqh.googlegroups.com> 
	<hcs27a$qga$1@fred.mathworks.com>
NNTP-Posting-Host: 91.212.0.61
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1257425745 14653 127.0.0.1 (5 Nov 2009 12:55:45 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 5 Nov 2009 12:55:45 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: g23g2000yqh.googlegroups.com; posting-host=91.212.0.61; 
	posting-account=6K5KdwoAAACF8TN4oxGQ4_TLCe8E-x2S
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 
	2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 
	3.0.4506.2152; .NET CLR 3.5.30729; MEGAUPLOAD 3.0; OfficeLiveConnector.1.3; 
	OfficeLivePatch.0.0; InfoPath.2),gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:582704


On Nov 4, 3:14 pm, "James Tursa"
<aclassyguy_with_a_k_not_...@hotmail.com> wrote:
> Izzy <iskandarpr...@gmail.com> wrote in message <79efd49c-346d-40b2-a663-67f754b7b...@g23g2000yqh.googlegroups.com>...
> > Hi,
>
> > If i create a singleton object inc++code and send it into matlab and
> > use it there, does the singleton share the same memory or are there 2
> > singelton around, one inc++memory space and one in matlab memory
> > space?
>
> Show us your code. How are you sending it to MATLAB?
>
> James Tursa

No code avalaible yet, since i'm just starting with this c++/matlab
thing. Basically I have a singleton class in c++ land, which also
needs to be used in matlab land. I was wondering if both lands share
the same memory if i would pass the singleton into matlab and do some
modification on the singleton, if this singleton would still be the
same object.