This error can only occur on the Macintosh. When you access a code resource, you must lock it. This error has the following cause and solution:
Check for an error returned by Hlock, for example, "Illegal on empty handle" or "Illegal on free block".
For additional information, select the item in question and press F1 (in Windows) or HELP (on the Macintosh).