Discussion:
iTools problem
(too old to reply)
t***@gmail.com
2007-12-19 21:25:20 UTC
Permalink
Dear IDL gurus and pundits,

Once again I am back to you guys to seek help.

I was working with itools, specifically, icontour. I created a style
of my own. Now the problem started when I made my style as the
default.

Now each time I run the icontour, it can even launch.
Rather an ominous window pops up saying:

"A system error was detected during tool creation:
Unable to invoke method on NULL object reference : <OBJREF
(<nullobject>)>"

I tried using the proverbial 'itreset' command. It seems like working,
but in reality, it does not. Because as soon as you restart the
icontour, same freaking window pops up.


HELP.....!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
David Fanning
2007-12-19 21:30:24 UTC
Permalink
Post by t***@gmail.com
I tried using the proverbial 'itreset' command. It seems like working,
but in reality, it does not. Because as soon as you restart the
icontour, same freaking window pops up.
Let me check my ammo. I'll see if I can help.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
David Fanning
2007-12-19 21:38:43 UTC
Permalink
Post by David Fanning
Post by t***@gmail.com
I tried using the proverbial 'itreset' command. It seems like working,
but in reality, it does not. Because as soon as you restart the
icontour, same freaking window pops up.
Let me check my ammo. I'll see if I can help.
Actually, I just thought of this. One of the problems
with iTools is that the error messages suck. At least
they suck if you are trying to figure out what the
heck is going on. (I can understand, and I'm even a
little sympathetic to their reasons for not wanting
people mucking around in iTools code, but hey, write
better documentation then!)

So, at one time, I figured out how to add better error
handling to iTools programs. This at least gave
me a line number where I could go and try to figure
out what was going on. Maybe that will help you:

http://www.dfanning.com/itool_tips/errors.html

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
t***@gmail.com
2007-12-20 01:05:51 UTC
Permalink
Dave,
first of all,thanks!
secondly,

(I can understand, and I'm even a
Post by David Fanning
little sympathetic to their reasons for not wanting
people mucking around in iTools code, but hey, write
better documentation then!)
.....could not agree more!

now here comes the bad part.

Using your code, I did get a very 'elaborate' report on what went
wrong.
Only problem is, I can not make anything out of it.

so once again...

My Dear IDL guru,

HELP...!!!!!!!!!!!
Post by David Fanning
Post by David Fanning
Post by t***@gmail.com
I tried using the proverbial 'itreset' command. It seems like working,
but in reality, it does not. Because as soon as you restart the
icontour, same freaking window pops up.
Let me check my ammo. I'll see if I can help.
Actually, I just thought of this. One of the problems
with iTools is that the error messages suck. At least
they suck if you are trying to figure out what the
heck is going on. (I can understand, and I'm even a
little sympathetic to their reasons for not wanting
people mucking around in iTools code, but hey, write
better documentation then!)
So, at one time, I figured out how to add better error
handling to iTools programs. This at least gave
me a line number where I could go and try to figure
http://www.dfanning.com/itool_tips/errors.html
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming:http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
t***@gmail.com
2007-12-20 01:12:23 UTC
Permalink
Dave,

In case u might find it useful, here's the complete error report
generated by the code:


"
Traceback Report from IDLITSYSTEM::CREATETOOL:

Unable to invoke method on NULL object reference: <OBJREF
(<NullObject>)>.
Execution halted at: IDLITGRLAYER::SETPROPERTY 590 C:\RSI\IDL63\lib
\itools\framework\idlitgrlayer__define.pro
IDLITPROPERTYBAG::PLAYBACKPROPERTIES 119 C:\RSI
\IDL63\lib\itools\framework\idlitpropertybag__define.pro
IDLITOBJDESC::GETOBJECTINSTANCE 388 C:\RSI
\IDL63\lib\itools\framework\idlitobjdesc__define.pro
IDLITOBJDESCTOOL::GETOBJECTINSTANCE 250 C:\RSI
\IDL63\lib\itools\framework\idlitobjdesctool__define.pro
IDLITOBJDESCVIS::GETOBJECTINSTANCE 106 C:\RSI
\IDL63\lib\itools\framework\idlitobjdescvis__define.pro
IDLITGRVIEW::INIT 123 C:\RSI\IDL63\lib\itools
\framework\idlitgrview__define.pro
_IDLITLAYOUTMANAGER::CREATEVIEW 193 C:\RSI
\IDL63\lib\itools\framework\_idlitlayoutmanager__define.pro
IDLITGRSCENE::GETCURRENTVIEW 163 C:\RSI
\IDL63\lib\itools\framework\idlitgrscene__define.pro
_IDLITLAYOUTMANAGER::_UPDATELAYOUT 270 C:\RSI
\IDL63\lib\itools\framework\_idlitlayoutmanager__define.pro
_IDLITLAYOUTMANAGER::SETPROPERTY 391 C:\RSI
\IDL63\lib\itools\framework\_idlitlayoutmanager__define.pro
_IDLITGRDEST::SETPROPERTY 270 C:\RSI\IDL63\lib
\itools\framework\_idlitgrdest__define.pro
IDLITGRWINSCENE::SETPROPERTY 256 C:\RSI
\IDL63\lib\itools\framework\idlitgrwinscene__define.pro
CW_ITWINDOW_REALIZE 214 C:\RSI\IDL63\lib\itools
\ui_widgets\cw_itwindow.pro
IDLITWDTOOL 455 C:\RSI\IDL63\lib\itools
\ui_widgets\idlitwdtool.pro
IDLITSYSTEM::_INITIALIZEUSERINTERFACE 2210 C:
\RSI\IDL63\lib\itools\framework\idlitsystem__define.pro
IDLITSYSTEM::CREATETOOL 2416 C:\RSI\IDL63\lib
\itools\framework\idlitsystem__define.pro
IDLITSYS_CREATETOOL 223 C:\RSI\IDL63\lib\itools
\framework\idlitsys_createtool.pro
ICONTOUR 167 C:\RSI\IDL63\lib\itools
\icontour.pro
SOLIDBODY 90 C:\Documents and Settings
\Tareque\My Documents\Research\Data Analysis\Electron trap data\Aziz
\Solidbody.pro
$MAIN$ "


The last Line,of course, refers to my program.

Thanks
David Fanning
2007-12-20 02:21:20 UTC
Permalink
Post by t***@gmail.com
The last Line,of course, refers to my program.
Well, I didn't say it made working with iTools any
easier. I just said at least you have a place to start. :-)

Just off-hand, did you register all the properties of
your object? This look sort of like an automatic
property setting something, something that has gone
bad. Breakpoints and print statements are my old-fashioned
way of working. Don't know what to tell you beyond that.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Loading...