License Checkout Failed

19 views (last 30 days)
Craig
Craig on 2 Apr 2012
Commented: Walter Roberson on 30 Mar 2016
I'm trying to run the following code in R2010b:
clear all
disp('why is this happening?')
When I try to set a breakpoint, I get the error:
Cannot enable breakpoint(s) because of syntax error.
License checkout failed.
Cannot find a license for Image_Toolbox...
FLEXnet Licensing error: -5,357.
If I try to run the script (titled 'wtf.m'), from inside the editor, I get the error:
??? Undefined function or variable 'wtf'
I think I set off this error by running a program that is used to put figures into PowerPoint (which works just fine in R2007b, without the Image Toolbox). Once it's set off, nothing in that directory works, even after restarting Matlab.

Answers (1)

Jan
Jan on 3 Apr 2012
Similar things happen, when the name of an M-file equals the name of a function of a not-installed Matlab toolbox. This behaviour is not (well) documented. Usually renaming the offending M-file -and all corresponding calls in the functions- help.
Unfortunately it is not easy to find the colliding names, especially if you do not have the corresponding toolbox. I've try to build a tool to check the usage of file names reserved by any Matlab toolbox of any release, but of course I do not have access to all names, because I cannot buy all licenses. It would be a good idea to ask the technical support for such a function. The more votes they get, the more likely is the implementation of this tool.
  2 Comments
Loup Letac
Loup Letac on 30 Mar 2016
What about this message : " Failed to obtain license "Image_Toolbox". " when I do have image toolbox ? ...
Walter Roberson
Walter Roberson on 30 Mar 2016
What kind of license are you using? Standalone Named User? Network Concurrent? Is the license possibly expired? What do you see for
license('test', 'Image_Toolbox')
which imdilate

Sign in to comment.

Categories

Find more on Manage Products in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!