Re: Mac Woes Continue [message #46059] |
Thu, 03 November 2005 08:42  |
Craig Markwardt
Messages: 1869 Registered: November 1996
|
Senior Member |
|
|
David Fanning <david@dfanning.com> writes:
> 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. :-(
Hi David, it works fine for me on Mac OSX 10.3.9, with IDL 6.0 and 6.1.
Craig
--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@REMOVEcow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
|
|
|
|
|
|
|
|
Re: Mac Woes Continue [message #46100 is a reply to message #46097] |
Wed, 02 November 2005 05:58   |
btt
Messages: 345 Registered: December 2000
|
Senior Member |
|
|
David Fanning wrote:
> 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!?
>
Hi David,
This works for me using your linked version of XSTRETCH. I am on Mac OS
10.3.9
IDL> print, !VERSION
{ ppc darwin unix Mac OS X 6.2 Jun 20 2005 32 32}
IDL> xstretch, bytscl(hanning(300,300))
% Compiled module: HANNING.
% Compiled module: XSTRETCH.
% Compiled module: LOADCT.
% Compiled module: FILEPATH.
% Compiled module: PATH_SEP.
% Compiled module: TVIMAGE.
% Compiled module: XMANAGER.
I can't tell what the problem might be from this end. Are you having
this problem from the command line or from within a managed routine?
Ben
>
> 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! :-)
>
|
|
|
|
Re: Mac Woes Continue [message #46290 is a reply to message #46212] |
Wed, 09 November 2005 07:56  |
James Kuyper
Messages: 425 Registered: March 2000
|
Senior Member |
|
|
David Fanning wrote:
> Macs. Sigh....
>
> You know what would really help? If everyone could just
> decide on one operating system and use that. :-)
When has "everyone" ever agreed on anything? I just wish more people
would agree with the right choice (mine :-} ).
|
|
|
Re: Mac Woes Continue [message #46291 is a reply to message #46212] |
Wed, 09 November 2005 07:16  |
Michael Wallace
Messages: 409 Registered: December 2003
|
Senior Member |
|
|
> You know what would really help? If everyone could just
> decide on one operating system and use that. :-)
Long live Linux!
> P.S. Why it is Mac users are more loathe to upgrade than
> Windows users? Or is this finding skeletons in the closet?
Windows users have been taught by M$ to expect to upgrade and to expect
it a lot. Mac users are conditioned to think that Macs are perfect and
so it doesn't make sense to upgrade something that's already perfect.
-Mike
|
|
|