[comp.sys.mac.hypercard] Problems Writing HC 2.0 XCMDs and XFCNs

smithc@thor.acc.stolaf.edu (Christopher Smith) (04/19/91)

I posted an article with the same question as this one a while ago,
but I got no response, probably because our computers were messing up
and the article disappeared into the black hole again.  So here goes
again.

I recently downloaded the new THINK Pascal Support Files for writing
HyperCard XCMDs and XFCNs from sumex (and also from CompuServe:  they
were listed as being the official ones from Symantec), and I went
about writing a simple XFCN that would take a number as its parameter
and add 1 to it -- simple test to see if everything works.  The
support files consisted of a new HyperXCmd.p and a HyperXLib.o.  I
went about making a new HyperXLib.lib file by putting the two support
files into a separate project and then making a library out of them.
No problem.  Then I included that into this simple increment XFCN,
compiled it, and it went okay.  Then, after including it into a simple
stack, I ran the XFCN and the computer crashed, first with error 28
(too many things competing for application stack heap or something to
that effect) and then error 2 (address bus error).  I have tried this
with my normal INIT/CDEV combination, and I've tried it without any of
them.  I've run this under Finder and MultiFinder with no difference.
If it matters, I'm running the 6.0.7 set.

Alright, so here are my specific questions:

	*  Did I compile the HyperXLib.lib incorrectly;
	*  What do I need to do differently when writing XCMDs and
	   XFCNs for HyperCard 2.0 instead of HyperCard 1.2.5?

I'm still looking through the explanation in the HyperCard 2.0
Hypertalk reference book (or whatever it's called).  Any feedback
would be greatly appreciated as I need to write a couple XCMDs and
XFCNs for a project soon.

Please respond via email since I won't be able to check the newsgroups
for a few days at least.  Thank you VERY much in advance!!!


Christopher Smith
St. Olaf College, Northfield MN
Internet:  smithc@stolaf.edu