Strange handle behavior (was Re: [Changeset]: Re: cla() ?)

Ben Abbott bpabbott at mac.com
Wed Oct 8 08:25:45 CDT 2008


On Oct 8, 2008, at 2:13 AM, Søren Hauberg wrote:

> tir, 07 10 2008 kl. 22:06 -0400, skrev Ben Abbott:
>> If I manually type each line then all appears to work as expected.
>>
>> I have no idea what is happening here, but thought the example might
>> help someone else track down the problem.
>
> One difference between typing the commands manually at the prompt and
> running them in a script, is that drawnow isn't called between each  
> line
> in the script. Perhaps that is related?
>
> Søren
>

Nice deduction.

If I place a "drawnow" after "plot(1:10)" then the script does produce  
the "invalid handle" error :-)

Does this indicate that "get(hc,...)" command is effectively executed  
prior to the "delete(hc)"?

Ben





More information about the Octave-maintainers mailing list