slang-users mailing list

[2015 Date Index] [2015 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: [slang-users] Re: slstdio.c / posixio.sl crash


Gisle Vanem <gvanem@xxxxxxxx> wrote:
>> Do the tests run to completion with the above change?  (You will also
>> have to  recompile sltest.exe).
>
> Yes, fine. Except <crtdbg.h> must be included too.
> Hence the patch is now:

Great.  I will push the update later this evening.
[...]

> Tested with MSVC and MingW (TDM-gcc). No crashes now.
> But isn't this masking illegal parameters in programs
> using SLang.lib statically too?

The idea is for the CRT to return error codes such as EBADF or EINVAL
instead of aborting.  See
<https://msdn.microsoft.com/en-us/library/ksazx244%28v=vs.140%29.aspx>
for a description.

Thanks,
--John



_______________________________________________
For list information, visit <http://jedsoft.org/slang/mailinglists.html>.


[2015 date index] [2015 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]