From: Nick Mariette on
For the record, I was having the "invalid object handle" error when using mesh.
I had a script with a mesh overlaid on a scatter3 plot, and it would work in a fresh Matlab, but after a while it seemed to fail and I couldn't pin down how or why.

I think I fixed it with the help of this post:
http://www.mathworks.com/matlabcentral/newsreader/view_thread/274193
- which noted that this problem happened when using "close all".

I was indeed using "close all" in my script, and when I removed it, so far I have not had the "invalid object handle" error.

So have a look for close all functions. There are other posts out there with some other solutions to do with the NextPlot property, but these didn't help for me.

good luck.
Nick

roland burkhard <R.U.Burkhard(a)shef.ac.uk> wrote in message <33AA92D6.53F5(a)shef.ac.uk>...
> hi all
>
> i've come across the problem that the matlab prompts 'invalid object
> handle' when i try to retrieve handles from a file that i have just
> loaded.
>
> i have created an interface where the user can fill in editable fields.
> the creation of the interface is menu driven. another menu is responsible
> for manipulations on the editable fields on the interface. i therefore
> stored the object handles of the editable fields in a file when creating
> the interface. in order to clear the contents on all editable fields, i
> call the file and retrieve the handles. but whenever i try to execute a
> get() or set() command, i get the 'invalid object handle' message.
>
> has anybody else ever come across this problem?
>
> regards, roland
>
> --
>
> roland burkhard cip95rub(a)shef.ac.uk
>
> man is truly free only among equally free men
> ---bakunin---