logo       

Re: testing codes in erl with running processes: msg#00384

lang.erlang.general

Subject: Re: testing codes in erl with running processes


>> I just realized that in my process, I refer to an ets table.
>> And an ets table is associated with the running shell.
>> This should explain why that process dies.
>>
>> If this is the case, I probably have no way to avoid this from
>> happening. The easy way is to develop code in another erl ?
>
>write a function that spawns a process, and let that process:
>
>1 create the ets table
>2 not die

Yes, the problem is resolved.
Now, the ets table is owned by the process instead of the shell.
Thanks for reminding me of the scoping!

HP





<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise