On 6/21/06, Bram Moolenaar <[EMAIL PROTECTED]> wrote:
Eric Arnold wrote: > I've added a v:variable which is a dict type. When I set it in a > script, and echo it, everything is fine: > > let v:timertable[ 'TstTimer' ] = 1000 > echo string( v:timertable ) > > However, it is trashed (garbage in the hash table) by the next time I > access it later in the Vim C code. > > Can anybody give a pointer to how to find what trashes the dict/hash > without single stepping through thousands of lines? Using gdb's > 'watch' is so slow it's unusuable. This is a bug. You should not be able to use v:timertable at all, "v:" variables are reserved.
Sorry, I wasn't clear. I added the variable into the C code. It turned out to be a refcount problem, so the dict was getting returned to the heap.