From: Christian on
Dear Matlab Community,

i recently recognized a problem in the plotting part of one of my standard scripts (which worked well till yesterday) and i hope someone here can help me dealing with it. I use Matlab 2010a on a Windows 7 64bit system.

The minimal code to reproduce the problem is:
-------------------------------------------------------------------------------------------------------------
figure
xdim=3000;
r=rand(xdim,1);
plot(r,'bd','MarkerSize',4);
-------------------------------------------------------------------------------------------------------------

For 1<xdim<2005 this works fine. But as soon as xdim exceeds the value 2005 i get the error message: "LoadLibrary failed with error 14082: The activation context activation stack for the running thread of execution is corrupt."

Using the plot command without any options
-------------------------------------------------------------------------------------------------------------
figure
xdim=3000;
r=rand(xdim,1);
plot(r);
-------------------------------------------------------------------------------------------------------------

works without any problems.

So, i'm just a simple Matlab user and not an expert but i'm pretty sure that this is not an intrinsic Matlab problem.

Do you have any idea what is going wrong? What library Matlab wants to load and why this procedure fails? What can solve this problem?

Thanks
With best regards
Christian