On Tue, 28 Jul 2009, Francesco Saverio Giudice wrote: Hi,
>> Looking at old hb_InetRecvLine() I see that it can return >> 0, NIL, "" or character buffer and current code makes the >> same. Of course I can (and I think I should) change it to >> always return "" or errors but it's the question why the >> problem was not exploited by old code. >> Looks like socket is not in blocking mode or there is sth >> else exploited by recent modifications. >> What is your OS? > Vista Ultimate 32bit > svn built with mingw Thanks, please try after: 2009-07-28 18:21 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) It should work as before anyhow we should think about modifying hb_InetRecvLine() to return "" on errors. The next problem with this function is values stored in 2-nd parameter passed by reference. Documentation says that it should be length of line with EOL terminator when in fact it isn't and I do not know what I should make with it. I can change it to work line in documentation but I can also keep current behavior and set negative values on errors. In such case we will have to update documentation. Opinions? best regards, Przemek _______________________________________________ Harbour mailing list [email protected] http://lists.harbour-project.org/mailman/listinfo/harbour
