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

Home » Public Forums » archive » Re: Mac Woes Continue
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Mac Woes Continue [message #46100 is a reply to message #46097] Wed, 02 November 2005 05:58 Go to previous messageGo to previous message
btt is currently offline  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! :-)
>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: the strange case of readcol.pro in idl 5.6
Next Topic: Mac Woes Continue

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

Current Time: Wed Oct 08 17:31:13 PDT 2025

Total time taken to generate the page: 0.00431 seconds