What() is: bad allocation error

I am trying to execute cuSVM (SVM implementation using CUDA) using mex file from matlab, but it gives following error in matlab,

??? Unexpected Standard exception from MEX file.
What() is: bad allocation

And this error comes because of following statement from cuSVMSolver.cu,

std::vector KernelCacheItersSinceUsed(RowsInKernelCache,0);

please , provide the solution to handle this error.

Thanks in advance

Looks like there is probably a bad allocation error in your MEX file, http://www.mathworks.com/matlabcentral/newsreader/view_thread/241769

BTW, most people doing SVM on the GPU in MATLAB are using Jacket today. Stanford is teaching a whole machine learning course based on Jacket.