From: ImageAnalyst on
Jeff:
I'm running R2010a prerelease. When I edit/copy the pulldown menu
goes away fairly quickly (2-3 seconds) but I get an hourglass and
nothing happens. When I look in the MATLAB command window it's
endlessly streaming hundreds of these:
"Windows returned error message: Not enough storage is available to
process this command."

If I hit control-c a bunch of times there, I can get it to quit, but
it barfs up this:

Warning: Failed in CloseEnhMetaFile, last error code 00000008 from-hDC
fd211810
> In C:\Program Files\MATLAB\R2010a\toolbox\matlab\graphics\hardcopy.p>hardcopy at 21
In graphics\private\render at 143
In print at 291
In editmenufcn at 76
??? Operation terminated by user during ==> hardcopy after 21

In ==> render at 143
pj.Return = hardcopy( inputargs{:} );

In ==> print at 291
pj = render(pj,pj.Handles{i});

In ==> editmenufcn at 76
uimenufcn(hfig, 'EditCopyFigure')

??? Interrupt while evaluating uimenu Callback.

Why don't you go ahead and report it.
-ImageAnalyst
From: Jeff on
Holy moly, Mathworks actually responds to bug complaints - and fast! What kind of company is this, anyway?

The answer is that the clipboard is running out of memory. When I - well, my professor - put the 'hold on' command inside the loop, he wanted to show us the progression of the code (they're called cellular automata, if that matters - which it doesn't).

But putting 'hold on' inside the loop preserves all the information from all the drawings - 100 rows x 100 columns redrawn 100 times - and then tries to import that into the clipboard. Matlab is working fine; Windows clipboard isn't that big.

I removed the 'hold on' line and I was still able to see the progression, so I don't know why it was in there.

Thanks all for your help. I have to go now and read up on 'hold on'.
-Jeff

ImageAnalyst <imageanalyst(a)mailinator.com> wrote in message <060daddc-c98c-4689-bd0e-911d17062fb7(a)a6g2000yqm.googlegroups.com>...
> Jeff:
> I'm running R2010a prerelease. When I edit/copy the pulldown menu
> goes away fairly quickly (2-3 seconds) but I get an hourglass and
> nothing happens. When I look in the MATLAB command window it's
> endlessly streaming hundreds of these:
> "Windows returned error message: Not enough storage is available to
> process this command."
>
> If I hit control-c a bunch of times there, I can get it to quit, but
> it barfs up this:
>
> Warning: Failed in CloseEnhMetaFile, last error code 00000008 from-hDC
> fd211810
> > In C:\Program Files\MATLAB\R2010a\toolbox\matlab\graphics\hardcopy.p>hardcopy at 21
> In graphics\private\render at 143
> In print at 291
> In editmenufcn at 76
> ??? Operation terminated by user during ==> hardcopy after 21
>
> In ==> render at 143
> pj.Return = hardcopy( inputargs{:} );
>
> In ==> print at 291
> pj = render(pj,pj.Handles{i});
>
> In ==> editmenufcn at 76
> uimenufcn(hfig, 'EditCopyFigure')
>
> ??? Interrupt while evaluating uimenu Callback.
>
> Why don't you go ahead and report it.
> -ImageAnalyst
From: ImageAnalyst on
OK - I didn't expect that. Pretty tricky. Glad you/they got it
figured out.