mclIsMCRInitialized crashes if mclInitializeApplication not yet called

mclIsMCRInitialized crashes if mclInitializeApplication has not been called. It returns 1, as expected, if mclInitializeApplication has been called.
I know mclInitializeApplication is supposed to be the first function called to initialize the MCR, but surely mclIsMCRInitialized should behave sanely (and return 0) rather than crash. What am I missing?

답변 (4개)

Titus Edelhofer
Titus Edelhofer 2011년 7월 4일

1 개 추천

Hi Guy,
from my personal view I guess you are missing nothing. I will ask our development to look into this ...
Titus

댓글 수: 1

Thanks Titus,
I get the same behaviour on both a 64-bit Linux and 32-bit Windows.

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

Guy
Guy 2011년 10월 20일

0 개 추천

I've checked this using 2011b on Linux now and with the same outcome.
Benjamin Guinot
Benjamin Guinot 2012년 2월 17일

0 개 추천

Hi,
I have the same problem (32-bit Windows). Have you made any progress on this problem?
Thank you
Ben
Friedrich
Friedrich 2012년 2월 17일
Hi,
the problem here is that the proxy library has not been initialized. To initialize these libraries call:
mclmcrInitialize()
first. This will NOT start the MCR, it simply initializes the libs so the call to mclIsMCRInitialized doesnt crash anymore. As far as I know this command is save. You can call it as often as you want and it doesnt need the MCR running.
(This command isnt documented but used in the matrixdriver example)

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

질문:

Guy
2011년 7월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by