Hi,
I am having troubles with the resources management, i
have a functor that exports an object, inside this i
use some resources.
functor
import Connection Browser
export server:S
define
class Server
feat name address publish selfStatic
attr clients
meth initF(selfStatic:S)
self.selfStatic=S
end
meth init(name:N address:A publish:Url)
{self localInit(name:N address:A publish:Url)}
end
meth localInit(name:N address:A publish:Url)
self.name=N
self.address={Connection.offerUnlimited
self.selfStatic}
A=self.address
end
end
S
in
S={New Server initF(selfStatic:S)}
end
Taking into account that, a localInit method was
created, the idea is: when the object is installed
remotelly, the init method is called (outside object)
and then localInit is called (*inside object*), i know
that at this moment that not works as i expect.
I had the same problem but with procedures, this
problem was solved by mean of two functions, the first
one was called outside the module and this internally
calls one that handled resources.
declare Ad MM P
MM={New Remote.manager init(fork:sh detach:true)}
P={MM link(url:'server.ozf' $)}
{P.server init(name:1 address:Ad publish:'server')}
{Browse Ad}
Can somebody helpme with this problem?
Thank you for lisent me.
Albert.
__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com
-
Please send submissions to users@mozart-oz.org
and administriva mail to users-request@mozart-oz.org.
The Mozart Oz web site is at http://www.mozart-oz.org/.