Ken Takata wrote:
> 2016/2/5 Fri 6:10:16 UTC+9 Bram Moolenaar wrote:
> > > The problem with Win32 GUI seems to be fixed by the attached patch.
> > > (Moving "!defined(FEAT_GUI_W32)" from vim.h to channel.c is optional.)
> >
> > Thanks. It looks like this doesn't use a timeout, more changes needed
> > later?
>
> Oh, I didn't care about timeout.
> Currently I have no idea how to implement timeout.
I included a patch for a timeout. The paint is still wet (had to fix it
for Linux, other systems might behave differently).
> > > However, with or without my patch, using callback causes a crash both on
> > > Windows and Linux (7.4.1256):
> > >
> > > let handle = ch_open('localhost:8765', 'json')
> > > func MyHandler(handle, msg)
> > > echo "from the handler: " . a:msg
> > > endfunc
> > > call ch_sendexpr(handle, 'hello!', "MyHandler")
> > >
> > > Wait about 10 sec, then vim crashes.
> > > It seems that 7.4.1246 caused the regression.
> >
> > I can reproduce it sometimes...
>
> The crash seems to be fixed, thanks.
> But the handler is not called on 7.4.1261.
Yes, there was a todo item for that. Just finished that.
--
hundred-and-one symptoms of being an internet addict:
147. You finally give up smoking...because it made the monitor dirty.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.