[GRASS5] d.legend and d.out.png
Moritz Lennert
mlennert at club.worldonline.be
Wed Sep 22 14:56:01 EDT 2004
On Wed, September 22, 2004 20:18, Glynn Clements said:
>
> Moritz Lennert wrote:
>
>> I only get a form process when d.what.vect works. When it doesn't work
>> (i.e. silently dies after two clicks), I never see the form process come
>> up, so I can't attach to it.
>
> AFAICT, the form process is started at the end of the first pass
> through the loop, i.e. after the first click.
>
> This would explain why it dies after two clicks. After each click,
> F_open() is called. On the first call, it starts the form process, and
> sets a flag to indicate that it is running. On subsequent calls, it
> will use the existing process.
>
> If the form window never appears, that suggests that it dies shortly
> after startup, which is going to make it hard to debug. The only thing
> which I can suggest is to add a sleep() call to the top of main() in
> lib/form/form.c, so that you get a chance to attach a debugger to it.
>
Ok, I tried using sleep, but now I can't reproduce the error, except when
using sleep(0). sleep(1) and upward all make the error disappear. This
does not solve my problem on how to debug ;-), but might it be an
explanation by itself ?
Moritz
More information about the grass-dev
mailing list