Re: Is there a way to detect if a program is running under IDL or the Virtual Machine? [message #37769] |
Wed, 28 January 2004 10:40  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
David Yip writes:
> Is there a way to detect if a program is running under full IDL or
> just the vitual machine? I tried the !version variable but it doesn't
> differentiate. I tried using execute hoping it would just fail under
> the VM, but instead it pops up a dialog. Hardware OpenGL doesn't work
> under the VM on Macs and Linux so I need to deal with that and hence I
> need to detect what a program is running under.
Try LMGR.
IDL> IF LMGR(/VM) THEN Print, 'Running on VM'
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|
|