path_sep() or where() crashing my idlde [message #36843] |
Sat, 01 November 2003 02:15 |
profxtjb
Messages: 22 Registered: October 2003
|
Junior Member |
|
|
For some reason, path_sep() is crashing my idlde. I am running IDL
6.0 for evaluation, with
!version.os_family = 'unix' on a Mac G4.
The path_sep() started crashing idlde when I misplaced an 'xloadct' in
a widget control. Now xloadct leads to both idlde and idl crashes and
exit to the shell, viz.
IDL> xloadct
% Compiled module: XLOADCT
% Compiled module: XREGISTERED
% Compiled module: LOADCT
% Compiled module: FILEPATH
% Compiled module: PATH_SEP
Illegal instruction
[my_home:~] %
Filepath calls path_sep() without argument, so the I set some
breakpoints in path_sep() -- and it chokes on the where() function,
viz.
function path_sep, SEARCH_PATH=searchsep, PARENT_DIRECTORY=pdir
idx = (where([ 'MacOS', 'Windows', 'unix' ] eq
!version.os_family))[0]
I would love to know why the where() function is causing this trouble
and how to fix it.
Thanks for the help!
==thomas==
|
|
|