Re: "Stopped on unknown instruction" and DLMs [message #47557] |
Thu, 16 February 2006 08:46  |
Karl Schultz
Messages: 341 Registered: October 1999
|
Senior Member |
|
|
On Thu, 16 Feb 2006 12:07:55 +0100, Maurizio Tomasi wrote:
> Hello to everybody,
>
> I am developing a DML module for IDL, and get the following error
> message when calling one of the C functions of the module:
>
> IDL> print, open_lama_view ()
> % Stopped on unknown instruction(195) at 944849017.
> % Execution halted at: $MAIN$
> IDL>
>
> The "open_lama_view" function is defined in my DLM, however I am not
> able to understand if the error is in the C code or it is in IDL. The C
> function is executed correctly and completed before the error is printed.
That message is coming from the IDL interpreter because it found an
instruction it didn't understand. Although I was wrong the last time I
blamed a DLM for a problem like this, I think this time it is probably the
case that your C DLM is damaging the memory where IDL is storing your
compiled IDL code. You need to debug your DLM code as Haje suggested.
Another effective technique is to disable code in your DLM and renable it
a little at a time until the problem shows up again, to help you narrow it
down. Although your C code did the right thing, it apparently did some
other damage along the way.
Karl
|
|
|