digitalmars.D.learn - Question about dsfml.system.err
- Konstantin Kutsevalov (15/15) Nov 08 2016 I need to see errors from dsfml.system.err, but it doesn't write
- Konstantin Kutsevalov (14/14) Nov 08 2016 ADD:
- Konstantin Kutsevalov (4/19) Nov 08 2016 OK ... problem with tcplistener solved, just a code mistake. But
- Steven Schveighoffer (4/25) Nov 08 2016 I can honestly say, I don't know what dsfml is or any of the code you
- Konstantin Kutsevalov (4/33) Nov 08 2016 oh, it's ok because it's all work fine, I just was too
I need to see errors from dsfml.system.err, but it doesn't write to terminal as I expected. The general problem is that I cannot listen any port by tcplistener. And listen method is: Status accept(TcpSocket socket) { import dsfml.system.string; Status toReturn = sfTcpListener_accept(sfPtr, socket.sfPtr); err.write(dsfml.system.string.toString(sfErr_getOutput())); return toReturn; } so, as you can see, there is "err.write". I need to see which error is wrining ro "err"... Is it possible to redeclate "err" File() object? :(
Nov 08 2016
ADD: I tried to open other stream in main() ``` ... import dsfml.system.err; int main(string[] args) { err.open("errors.log", "a"); err.write("test\n"); .... } ... ``` but as can I see, that hasn't any effect for tcplistener module...
Nov 08 2016
On Tuesday, 8 November 2016 at 16:34:04 UTC, Konstantin Kutsevalov wrote:ADD: I tried to open other stream in main() ``` ... import dsfml.system.err; int main(string[] args) { err.open("errors.log", "a"); err.write("test\n"); .... } ... ``` but as can I see, that hasn't any effect for tcplistener module...OK ... problem with tcplistener solved, just a code mistake. But the question is actual.
Nov 08 2016
On 11/8/16 11:48 AM, Konstantin Kutsevalov wrote:On Tuesday, 8 November 2016 at 16:34:04 UTC, Konstantin Kutsevalov wrote:I can honestly say, I don't know what dsfml is or any of the code you have posted. -SteveADD: I tried to open other stream in main() ``` ... import dsfml.system.err; int main(string[] args) { err.open("errors.log", "a"); err.write("test\n"); .... } ... ``` but as can I see, that hasn't any effect for tcplistener module...OK ... problem with tcplistener solved, just a code mistake. But the question is actual.
Nov 08 2016
On Tuesday, 8 November 2016 at 19:00:15 UTC, Steven Schveighoffer wrote:On 11/8/16 11:48 AM, Konstantin Kutsevalov wrote:oh, it's ok because it's all work fine, I just was too inattentive.On Tuesday, 8 November 2016 at 16:34:04 UTC, Konstantin Kutsevalov wrote:I can honestly say, I don't know what dsfml is or any of the code you have posted. -SteveADD: I tried to open other stream in main() ``` ... import dsfml.system.err; int main(string[] args) { err.open("errors.log", "a"); err.write("test\n"); .... } ... ``` but as can I see, that hasn't any effect for tcplistener module...OK ... problem with tcplistener solved, just a code mistake. But the question is actual.
Nov 08 2016