How to Debug an invalid handle.

조회 수: 15 (최근 30일)
Paul Palazolo
Paul Palazolo 2013년 6월 14일
답변: Tommie Heard 2014년 7월 24일
I am really new to Simulink and so I just don't know how to begin solving this. I have a model that was running successfully until Windows 7 decided to install an update to the operating system on Wednesday evening. Now I have two repeating errors.
Object parameter contains an invalid handle.
and
Error using sf Object parameter contains an invalid handle.
When I select the errors, no specific item is highlighted in the model.
I have ho idea how to even begin solving this.
In the MatLab Command window when I try and run the model I get these errors.
An unloaded non-library model with Stateflow components was found. Ignoring... Bad object handle (1911) at index 1. Error in parameter number 2. Bad object handle (1911) at index 1. Error in parameter number 2. Bad object handle (1911) at index 1. Error in parameter number 2.
Thanks for any help.
  댓글 수: 1
Kaustubha Govind
Kaustubha Govind 2013년 6월 14일
Paul: You may want to send your model over to MathWorks Tech Support to see if they can reproduce/resolve this.

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

답변 (1개)

Tommie Heard
Tommie Heard 2014년 7월 24일
This is how to debug an invalid handle. Before running your code from the command line enter: dbstop if error
When the program stops began backtracking the handle object to see when it was good. Notice which code was executed when the handle became invalid.
This usually happens b/c the object has been deleted or closed unbeknowingly.
Give it a try.
THeard

카테고리

Help CenterFile Exchange에서 Configure and View Diagnostics에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by