I cannot handle out-of-memory conditions of jmdlEmbeddedDPoint3dArray_setExactBufferSize: instead of returning with a corresponding error value, MicroStation 08.11.07.171 displays the error message "out of memory (swap device may be full)" and then freezes and is no longer operable.
Does anyone have an idea how to circumvent this?
JuergenG: I cannot handle out-of-memory conditions of jmdlEmbeddedDPoint3dArray_setExactBufferSize …
I cannot handle out-of-memory conditions of jmdlEmbeddedDPoint3dArray_setExactBufferSize …
Please post a code fragment to illustrate the context in which you use that function. Are you writing pure MDL or C++?
Regards, Jon Summers LA Solutions
Jon Summers: Please post a code fragment to illustrate the context in which you use that function. Are you writing pure MDL or C++?
Thanks for the query - I used C++, and now learned with a small test that in pure MDL it works fine...
I'll check whether relocating the calls into MDL will solve the issue
Regards, Juergen
JuergenG: I used C++ …
I used C++ …
You may find that using the Standard Library is a better bet than the JMDL elastic arrays.
typedef std::vector<DPoint3d> DPoint3dCollection;
Of course, that hint is no use if you need to use functions that take a EmbeddedDPoint3dArray*, and it applies only to developers using C++, not pure MDL.
Thanks Jon, you are absolutely right! I really don't need it!