comp.lang.idl-pvwave archive - RDF feed
type: channel
description: Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
items: dlm and IDL_ExecuteStr

dlm and IDL_ExecuteStr
type: item
description: 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
creator: Nando Iavarone
date: 2000-01-26T08:00:00-00:00