Joseph Xu wrote:
Hi:

I'm dumping text into gvim from an external program via a callback
function that I register for with the python interface. This callback
happens frequently and asynchronously with vim operation. Whenever I
try to run the external program, after receiving just a few lines of
dumped text in gvim, I get this error:

(gvim:11111): GLib-WARNING **: g_main_context_prepare(): main loop
already active in another thread
Xlib: unexpected async reply (sequence 0x1740)!

I don't get the error if I'm using just vim, but the window only
updates every second or so. Is there anyway I can avoid this problem?

Thanks.

Joseph


I've heard a lot of bad things about Vim and Python multithreading. I don't know how to do it, but maybe you can try to compile Vim-for-Python without the multithtreading feature?


Best regards,
Tony.
--
Bacchus, n.:
        A convenient deity invented by the ancients as an excuse for
getting drunk.
                -- Ambrose Bierce, "The Devil's Dictionary"

Reply via email to