dlm and IDL_ExecuteStr [message #18635] |
Wed, 26 January 2000 00:00 |
Nando Iavarone
Messages: 48 Registered: December 1998
|
Member |
|
|
Hi all,
I was trying to use the IDL_ExecuteStr from a c module,
linked as a DLM.
The IDL_ExecuteStr seems to work,
but at the end of the execution the IDL interpreter out an error.
The function is:
static void testpro(int argc, IDL_VPTR *argv)
{
IDL_ExecuteStr("a= 100");
IDL_ExecuteStr("print,a");
}
From IDL:
ENVI> testpro
% Loaded DLM: TESTMODULE.
% TESTPRO: This is from a loadable module procedure.
100
% Stopped on unknown instruction(96) at 1347620916.
% Execution halted at: $MAIN$
ENVI>
If I call the xloadct all is OK:
static void testpro(int argc, IDL_VPTR *argv)
{
IDL_ExecuteStr("a= 100");
IDL_ExecuteStr("print,a");
}
From IDL:
ENVI> testpro
% Loaded DLM: TESTMODULE.
% TESTPRO: This is from a loadable module procedure.
% Compiled module: XLOADCT.
% Compiled module: CW_BGROUP.
ENVI>
Anyone have idea of what's happening?
Is it possible to use the IDL_ExecuteStr in a dlm technique?
Cheers,
Nando
|
|
|