hello oz users
I am a new user in distributed programming with
mozart, and I don't know, why the program below
doesn't work.
functor
import Fault Browser Remote
define
F=
functor
import Fault Browser Remote
export pri:Pri entity:Ent func:Func
define
Pri
S Ent = {NewPort S}
proc{Func X}
{Browser.browser X}
end
end
try
MM1 P1 MM2 P2 in
MM1= {New Remote.manager init(fork:sh
detach:true)}
P1={MM1 apply(F $)}
P1.pri=F
{P1.func message}
catch X then
{Browser.browse X#startingProcess}
end
end
The mistake (I think) is at Func procedure when either
{Browser.browse X} or {New Remote.manager init(fork:sh
detach:true) are called.
The exception below is raised when the program is
running.
error(
1:kernel('.' 'export'(browse:<P/1 Browse>
'class':<C: BrowserClass>(?) close:<P/0 CloseBrowser>
object:<O: BrowserClass>) browser)
debug:d(info:unit
stack:[entry(
'PC':136222420
column:6
data:<P/1 Func>
file:'./simple.oz'
kind:call
line:12
origin:procedureFrame
vars:v('G':nil 'Y':nil))
entry('PC':136130364 column:0
data:<P/0> file:'./simple.oz' frameID:21 kind:call
line:1 origin:procedureFrame)]))
thanks
Albert Soletsky
__________________________________________________
Do You Yahoo!?
NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1
-
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/.