memory allocated with mxMalloc
이전 댓글 표시
Suppose within an m-file I use a mex file to allocate persistent memory using mxMalloc and mxMakeMemoryPersistent.
When the mex file returns, I then start a batch job and pass the pointer returned by the mex file to the batch job.
Will the batch job be able to access this memory?
More info: A GUI is used to control hardware components which write to the mxMalloc'ed memory block, I would like the batch job to save the data written there in parallel. Don't worry, synchronization will be taken care of.
댓글 수: 3
Peter Li
2011년 9월 20일
Interesting question; I don't have experience with MakeMemoryPersistent, but my intuition is that this will work. You are passing the pointer out and back in as a long or something?
rick
2011년 9월 20일
Peter Li
2011년 9월 23일
Ah sorry, I didn't realize this was specific to interprocess calls. In that case Edric's suggestion sounds like the way to go.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 MATLAB Compiler에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!