Hello list, I'm having some trouble with ETS. I have the following code in tracker.erl<br><br>dave1() -><br> ObjectSet = ets:new(object_set, [set, {keypos, 5}]),<br> spawn(tracker, dave2, [[], ObjectSet]).<br> <br>
dave2(ClientList, ObjectSet) -><br> MyList = ets:tab2list(ObjectSet),<br> io:format("ObjectSet: ~p~n", [MyList]).<br><br><br>This code works fine if I do<br><br> erl -boot start_sasl -pz ebin -sname dave<br>
<br>and then run tracker:dave1() from the shell.<br><br>But if I do<br><br> erl -boot start_sasl -pz ebin -sname dave -s tracker dave1<br><br>Then I get this error in the shell on startup:<br><br>=ERROR REPORT==== 23-Oct-2007::16:07:11 ===
<br>Error in process <0.46.0> on node 'dave@localhost' with exit value: {badarg,[{ets,match_object,[16,'_']},{ets,tab2list,1},{tracker,dave2,2}]}<br><br><br><br>What's up with that? Do I have to enforce some ordering of application startup?
<br><br> <br>