<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'><BR><BR>
<BLOCKQUOTE>
<STYLE>
.ExternalClass .EC_hmmessage P
{padding:0px;}
.ExternalClass body.EC_hmmessage
{font-size:10pt;font-family:Tahoma;}
</STYLE>
I have discovered very annoying problem (which I would dare call a bug), present in R12B and several earlier releases on Windows:<BR>An attempt to output large enough string makes Erlang hang.<BR> <BR>%sample program <BR>-module( io_test ).<BR>-compile( export_all ).<BR>test()-> io:format( "~p~n", [lists:seq(1, 100000)] ). % Instead of list, it can be large enough binary etc.<BR><BR>I've looked into source code with my right eye and my guess is that it is related to incorrect error handling in sys.c when using WriteFile() for overlapped I/O.<BR> <BR>What is especially unpleasant is that since output is internally done asynchronously, Erlang hangs not immediately but after some delay, while doing something different, so it took me some time to grasp the root cause.<BR> <BR>Is there any work-around for this?<BR> <BR>Vitaly<BR></BLOCKQUOTE><br /><hr />Connect to the next generation of MSN Messengerš <a href='http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline' target='_new'>Get it now! </a></body>
</html>