2017-03-02 2:29 GMT+08:00 KC <kcc1...@gmail.com>:

> Hi,
>
> I use g_output_stream_printf() to send command to a server
> and use g_data_input_stream_read_line() to read data back.
>
> Sometime I got error message "Stream has outstanding operation".
> What should I do if I detect this error ?
> Do I need to flush() the IO stream after g_output_stream_printf() ?
>

I believe I solved the issue.  My app is multi-thread app.  Lock/unlock
around I/O commands solved the problem.


KC


>
> Thanks
> KC
>
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to