Mac Woes Continue [message #46106] |
Wed, 02 November 2005 00:03  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Folks,
I continue to see strange things on Mac computers in my IDL classes.
Here is an example.
I have a program XSTRETCH:
http://www.dfanning.com/programs/xstretch.pro
It is a fairly old widget program. I have never had any problems
with it. The last time I made a modification to it was three
years ago. But it simply won't run on a Macintosh computer. :-(
I traced the problem to this line in the code:
XManager, 'xstretch', histo_tlb, Group=group, $
No_Block=1-Keyword_Set(block), $
Event_Handler='XStretch_Histogram_Resize', $
Cleanup='XStretch_Cleanup'
Here, the variable "block" is undefined, so the NO_BLOCK
keyword should evaluate to 1. To make this program work
on a Macintosh, I have to set the NO_BLOCK keyword explicitly
to 1:
XManager, 'xstretch', histo_tlb, Group=group, $
No_Block=1, $
Event_Handler='XStretch_Histogram_Resize', $
Cleanup='XStretch_Cleanup'
Does anyone have *any* idea what this could be!?
Cheers,
David
P.S. My other Macintosh problem seems to be that it is
reporting incorrect window sizes in geometry situations.
This causes me to calculate negative window sizes in widget
resize events. I haven't yet chased this to the source.
(Hard to debug code in the middle of a class.) But if you
Macophiles want to lend me a hand, the problem code is
MPI_PLOT:
http://www.dfanning.com/programs/mpi_plot.zip
I will say this about the Macs. The keyboard is very,
very cool! I just wish the darn things would run perfectly
good IDL code! :-)
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|