comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » debug IDL DLM in Visual C++
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
debug IDL DLM in Visual C++ [message #29396] Sat, 16 February 2002 14:33 Go to next message
xje4e is currently offline  xje4e
Messages: 18
Registered: February 2002
Junior Member
As Richard Younger and Gert suggested last time, we can specify the
IDLDE executable through
project->settings->debug: fill in idl_path\idl32.exe

But in my IDL program, I use some ENVI functions, so I use IDL in ENVI
environment, actually the executable this time should be:
D:\RSI\ENVI34\IDL54\bin\bin.x86\idlde.exe -minimized
@"D:\RSI\\envi34\bin\envi.run"

But how can I set executable including parameters in Visual C++? If I
set it as
D:\RSI\ENVI34\IDL54\bin\bin.x86\idlde.exe -minimized
@"D:\RSI\\envi34\bin\envi.run", VC can not recognize it.

Any suggestion will be appreciated!

Julia Jin
Re: Debug [message #46648 is a reply to message #29396] Thu, 08 December 2005 10:46 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
ChiChiRuiz@gmail.com writes:

> I've been using a procedure for analysing image data (develped in
> house). However, when I run the procedure, sometimes I get the
> message:
> Program caused arithmetic error: Floating divide by 0
> Program caused arithmetic error: Floating illegal operand
>
> but sometimes I don't. What is a good way to debug in this situation
> where I have no idea what's causing "dividing by 0"? Any comment is
> appreciatd!

Set !Except=2 and run your program. You will get an error
now when it happens instead of a message.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: Debug [message #46649 is a reply to message #29396] Thu, 08 December 2005 10:46 Go to previous messageGo to next message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
ChiChiRuiz@gmail.com wrote:
> Hi,
>
> I've been using a procedure for analysing image data (develped in
> house). However, when I run the procedure, sometimes I get the
> message:
> Program caused arithmetic error: Floating divide by 0
> Program caused arithmetic error: Floating illegal operand
>
> but sometimes I don't. What is a good way to debug in this situation
> where I have no idea what's causing "dividing by 0"? Any comment is
> appreciatd! Thanks.

Have a lookee at the !EXCEPT system variable. That should help debug this sort of thing.

paulv

--
Paul van Delst
CIMSS @ NOAA/NCEP/EMC
Re: Debug [message #46746 is a reply to message #46648] Thu, 08 December 2005 13:58 Go to previous message
ChiChiRuiz@gmail.com is currently offline  ChiChiRuiz@gmail.com
Messages: 32
Registered: October 2005
Member
Thanks a lot, the error was generated because I was using "linfit".
Thanks for the help!

=)
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: IDL Application Development
Next Topic: Fun Writing Books

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 16:49:19 PDT 2025

Total time taken to generate the page: 0.00721 seconds