|
|
| Author |
Message |
< Advanced Erlang/OTP ~ Erlang port crashed when reading three or more float values |
| flodis |
Posted: Wed May 06, 2009 7:31 pm |
|
|
|
User
Joined: 09 Jul 2008
Posts: 27
|
I used this tutorial to communicate with my erlang port:
http://www.trapexit.org/How_to_use_ei_to_marshal_binary_terms_in_port_programs
However the port seems to crash if three or more floating points values are sent to it. It crashes with return status 0 which suggest that the function read_cmd in the main() fails.
For example:
Code: {load_screen, "Login.layout", 0.0, 1.2, 1} % Works
{load_screen, "Login.layout", 0.0, 1.2, 1.1} % Crash
Any ideas? |
|
|
| Back to top |
|
| nesrait |
Posted: Mon May 11, 2009 12:52 pm |
|
|
|
User
Joined: 02 May 2009
Posts: 33
Location: Portugal
|
I wasn't even able to get that far.
On my windows environment calls to read_cmd just block due to reading an incorrect message length.
On a call to port:add(1,2) the passed length is 224 instead of the correct 13 bytes (as determined by size(term_to_binary({add, 1, 2}))).
Hardcoding length=13 enables the first message and reply to get through.
I'm trying this out on Windows so I'm not expecting much shared suffering.
Anyway... this might somehow be related with flodis problem.
Additional notes:
- I'm using OTP_R13B and building with Visual C++ 2008 Express Edition.
- When building with MinGW the message length is 0 and I get "** exception exit: epipe"
- The code I'm using (without the debug stuff) can be found here:
http://github.com/davide/erl_interface-examples/tree |
|
|
| Back to top |
|
| wuji |
Posted: Tue Aug 14, 2012 7:34 am |
|
|
|
User
Joined: 10 Aug 2012
Posts: 654
|
for information leading to the capture of Miguel Angel and and cheap polo ralph lauren and Omar.The brothers, whose numeric aliases refer to their alleged
within the Zetas at the time of the cartel's creation creation [h4]jordan 6[/h4] creation several years ago, are now allegedly top leaders of
organization that controls drug trafficking in the east and south south [h4]cheap jordans[/h4] south of Mexico. Miguel, or "40," allegedly runs the Zetas
with "3," Heriberto Lazcano.The Zetas began in 1999 when former former jordan 6 former members of the Mexican military signed on to work
security for the Gulf drug cartel. The Zetas went into into knockoff designer *beep* into business for themselves and are now at war with |
|
|
| 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
|
|
|