Call_Function() fail? [message #77744] |
Tue, 20 September 2011 14:26 |
Dick Jackson
Messages: 347 Registered: August 1998
|
Senior Member |
|
|
Hi,
I can't imagine why, but Call_Function() is failing to call the new
'IDLffVideoWrite' function.
You see, I was trying to write a backward-compatible video-dumping
routine that would at least compile under pre-8.1, and would use
MPEG_OPEN or IDLffVideoWrite as appropriate. So to hide the
uncompilable function from compilation, I want to use Call_Function().
In IDL 8.1:
IDL> oVid =IDLffVideoWrite('test3.mp4')
% Loaded DLM: VIDEO.
IDL> help,oVid
OVID OBJREF = <ObjHeapVar1(IDLFFVIDEOWRITE)>
IDL> oVid = Call_Function('IDLffVideoWrite', 'test3.mp4')
% Attempt to call undefined procedure/function: 'IDLFFVIDEOWRITE'.
% Execution halted at: $MAIN$
Anyone else have trouble like this with new functions? OK, that's bad
enough. What's worse... if I do the Call_Function() attempt first, it
won't even work the regular way!
IDL> .FULL_RESET_SESSION
IDL> oVid = Call_Function('IDLffVideoWrite', 'test3.mp4')
% Attempt to call undefined procedure/function: 'IDLFFVIDEOWRITE'.
% Execution halted at: $MAIN$
IDL> oVid =IDLffVideoWrite('test3.mp4')
% Attempt to call undefined procedure/function: 'IDLFFVIDEOWRITE'.
% Execution halted at: $MAIN$
Cheers,
-Dick
Dick Jackson Software Consulting
Victoria, BC, Canada
www.d-jackson.com
|
|
|