Memory and mxFree, mxDestroyArray
古いコメントを表示
Hi, my question is concerning some trouble with memory of an application
fuction:
for(l=0; l<10001, l++){
... allocate Memory ...
... create mxArray ...
for(k=0; k<10001, k++){
//calculate some values out of l and k;
... write into "mxCalloc"- memory ...
}
... put values in a mxArray ...
... save mxArray to matFile ...
... destroy mxArray ...
... Free "mxCalloc"-memory ...
}
end function
That is my loop, but it does produce an out of memory-error ... Some idea why ??
Greetings,
uli
3 件のコメント
Jan
2013 年 2 月 28 日
The roughly paraphrased code does not allow to find the problem, because it shows, what you intented to do, but not, what is running exactly. Without doubt your intentions are correct, but obviously the code is not.
James Tursa
2013 年 2 月 28 日
Please post your code.
uli terlinden
2013 年 3 月 6 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で C Matrix API についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!