[futurebasic] Re: [FB] Re OSX versus 9.2

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : October 2002 : Group Archive : Group : All Groups

From: Peter A Boyle <pboyle@...>
Date: Tue, 29 Oct 2002 11:48:40 -0500
on 24/10/02 14:18, gnome at gnome@... wrote:

> Le jeudi 24 octobre 2002, à 07:55 , Peter A Boyle a écrit :
> 
>> Does one need Rntm FBII.Incl when compiling in Carbon. It seems
>> to drop me out of the program when it feels like it
>gnome wrote 

 
> although i do believe that the rntm FBII has been carbonised
> [or it just looks like that after having spent too long
> in the microwave], your best bet for future programming
> in carbon is the appearance runtime. as the switching book
> demonstrates.
> 
> if the runtime is quitting on you then it is probably something
> in your code, the most usual causes are accessing lowmem addesses,
> and accessing 'opaque' records.
> 
> try and narrow things down to 'where' it is leaving you hanging.
> 
> [and prefer the appearance runtime. you'll thank me one day
> for recommending that.].
> 
> :-j

> 
 dear gnome 
unfortunately all my programming has been aimed at steel design and
inventory control, I've try to keep away from the interface of the Mac, and
have been successful by using the super program PG Pro which does all of the
mundane stuff for me and saves the windows in resource files. Now i'm faced
with which headers to use, which globals to add, and how the whole interface
goes together. I need guidance and help. The program quits at RunTime.INCL
but only sometimes at the following location


 LOCAL FN pGbestWindow
'~'
DIM TheWindow,wRefCon as long
dim @wPtr&
TheWindow = WINDOW(_activeWnd)<------This point
LONG IF TheWindow
GET WINDOW TheWindow,wPtr&
#if carbonlib
wRefCon = fn GetWRefCon( wPtr& ) and 32768
#else
wRefCon = wPtr&.wRefCon& AND 32768
#endif
LONG IF wRefCon = 0
LONG IF WINDOW(_ActiveDoc)
TheWindow = WINDOW(_ActiveDoc)
XELSE
TheWindow = WINDOW(_activeWnd)
END IF
END IF
END IF
END FN = TheWindow 

obviously the WINDOW() function does not work in Appearance mode
but that would mean that Runtime.INCL is gone which means that Program
Generator is gone, which means I'm in the deep Stuff up to my eyebrows.
Also the switching book as been misplaced when my wife was "Cleaning Up"
This is maybe to much, for the list but any help will be gratefully
accepted.
Thanks 
Triple Pete