|
|
| Author |
Message |
|
| froejk at image.dk |
Posted: Mon Jun 28, 1999 7:05 pm |
|
|
|
Guest
|
I'm trying to use IG to make an interface from Erlang to the Postgres
database system on Linux. In doing that I ran into a problem with
passing empty strings. This simple example program from the manual:
IG_fun int foo(IG_string name, int age)
{
fprintf(stderr, "foo: name='%s', age=%d
", "name", age);
return age;
}
yields this:
jfk_at_ada:~/erlang-test > erl
Eshell V47.4.1 (abort with ^G)
1> P=ex1:start().
<0.37.0>
2> ex1:foo(P,"",30).
<ERROR> erl_malloc: Failed to allocate more memory: Success
however, the following succeeds:
jfk_at_ada:~/erlang-test > erl
Eshell V47.4.1 (abort with ^G)
1> P=ex1:start().
<0.29.0>
2> ex1:foo(P,"jfk",27).
foo: name='name', age=27
{ok,27}
3>
Is this a known bug in IG, or???
regards, J |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|
|