My bad. Now I get this
10> couch_file:open("ttt").
** exception exit: undef
in function couch_stats_collector:track_process_count/1
called as couch_stats_collector:track_process_count({couchdb,
open_os_files})
in call from couch_file:init/1
in call from gen_server:init_it/6
in call from proc_lib:init_p_do_apply/3
13> couch_file:open("c:ttt",[create]).
Crash dump was written to: erl_crash.dump
eheap_alloc: Cannot allocate 729810240 bytes of memory (of type "heap").
Abnormal termination
Thanks
Chong
On Fri, Sep 24, 2010 at 1:48 PM, chongqing xiao <[email protected]> wrote:
> Hi,
>
> I was learning erlang and couchdb using the erl and I got the
> following error when I tried to use couch_file in erl shell.
> Could someone explain what might be the problem? I am guessing
> couch_file is not the actual module but I can't figure out how to get
> that.
>
> Eshell V5.8.1 (abort with ^G)
> 1> c("c:/couchdb/src/couchdb/couch_file", [{outdir,
> "c:/couchdb/src/couchdb/"}]).
> {ok,couch_file}
> 2> couch_file.open("c:/test").
> ** exception error: bad function 'couch_file.open'
>
> Thanks
> Chong
>