Segmentation violation Error in my MEX file
14 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
PRAKASH BHARTI
el 29 de Sept. de 2012
mex unravel.c
IM=imread('F:\TEST\test.tiff');
IM=imresize(IM,[1024 1024]);
TG=im2jpeg(IM,50);
TG=jpeg2im(TG);
after running this code i got an error
Abnormal termination:
Segmentation violation
%few lines in between this %
Caught MathWorks::System::FatalException
[Please exit and restart MATLAB]>>
2 comentarios
Walter Roberson
el 29 de Sept. de 2012
Your traceback shows a problem in the (unknown code for) unravel, but the MATLAB code you show has no obvious call to "unravel". Where is "unravel" being called?
Walter Roberson
el 1 de Oct. de 2012
The forum indicates that you have edited your Question, but it looks pretty much the same to me ? I don't see what you have changed?
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Write C Functions Callable from MATLAB (MEX Files) en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!