Strage figure behavior with compiled .NET library
조회 수: 2 (최근 30일)
이전 댓글 표시
I have a .NET library that I compiled using the deploy tool. I after it does some calculations, it displays a two figures. Whenever I perform an action on the figure, the respone is delayed until a perform a second action.
With these figures, I replaced the OnClosingRequest function to hide them instead of deleting them so that the user can click a button to open the figure up again. If I use MATLAB natively or if I use the COM capability with C# then this works fine. But when I compile the code, I run into that delayed response issue. In this case, when the users clicks the X on the window, it doesn't hide until they perform a second action such as clicking the menu or something. Then as soon as they click the menu, it hides the figure.
Also, when I run the command from C# to re-display the figure that's hidden, it won't display unless I click a menu on the other figure.
The way my MATLAB code works is that I have a function called "prevent_display_closing(name)". Inside of this, it finds the figure with that name and calls a private static function called "override_CloseRequestFcn(fig)". Inside of this, it uses set(hObject, 'CloseRequestFcn', function) where function is a static public function that just sets hObject.Visible = 'Off'.
Is there something specific that could be causing this?
I am using MATLAB 2017b.
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 MATLAB Compiler SDK에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!