[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
dlm and IDL_ExecuteStr
- Subject: dlm and IDL_ExecuteStr
- From: Nando <f.iavarone(at)acsys.it>
- Date: Wed, 26 Jan 2000 19:21:48 +0100
- Newsgroups: comp.lang.idl-pvwave
- Organization: Centro Servizi Interbusiness
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:18136
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