[erlang-questions] Binaries problem

Jim Thompson jim@REDACTED
Wed May 2 22:16:59 CEST 2007


Francesco Pierfederici wrote:
 > > Hi,
 > >
 > > I have encountered a problem with handling binaries and I do not know
 > > what the cause might be. In a nutshell, I seem to be unable to
 > > assemble binaries larger than 2097149 bytes:
 > >

Per Gustafsson wrote:

> I think that the problem you are running in to is that you are creating 
> an integer that is too big for the erlang runtime system. I'm not sure 
> exactly where this limit is but it should be in the order of what you 
> are creating.

jim@REDACTED:~$ erl
Erlang (BEAM) emulator version 5.5.2 [source] [async-threads:0] 
[kernel-poll:false]

Eshell V5.5.2  (abort with ^G)
1> round(math:pow(2,21))-3.
2097149
2> halt().





More information about the erlang-questions mailing list