Access violation detected - MEX

조회 수: 26 (최근 30일)
Doron Maizlin
Doron Maizlin 2020년 5월 24일
답변: 慧芳 贺 2021년 5월 2일
Hello,
I getting the following crach , I'm using MCR 9.6 and compiling with MEX
  댓글 수: 2
James Tursa
James Tursa 2020년 5월 24일
편집: James Tursa 2020년 5월 24일
Is this a mex routine that you wrote? Do you have the source code? The error message is pretty clear ... memory access violation, so the code has a bug.
Doron Maizlin
Doron Maizlin 2020년 5월 24일
Thanks for replaying . Is there any way to Debug this issue? rather than getting the dump file
I moved my application which worked fine from 32 to 64 bit
Basically I used the C:\Program Files\MATLAB\R2019a\extern\include files to build the app to include replaced all data type "int" to mwSize

댓글을 달려면 로그인하십시오.

답변 (2개)

James Tursa
James Tursa 2020년 5월 27일
If it worked fine on 32-bit, then of course the most likely problem is you missed something in the integer or pointer size conversion in your code. The dump file might point you to the routine, but regardless I would suggest you go through your code line by line to try and find what you missed. If the code is not too long you could post it and we could take a look as well. Also, be sure to compile with the '-v' verbose option to see what the compiler thinks of your code ... maybe there are some warnings that will tell you exactly what the problem is.

慧芳 贺
慧芳 贺 2021년 5월 2일
I have the same problem with you. Have you solved it?

카테고리

Help CenterFile Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by