HDTenEightyP/NetNews huggingface dataset:
From: kurisuto@chopin.udel.edu (Sean J. Crist)
Subject: Opening resource file prevents segments from being loaded
Organization: University of Delaware
Date: Tue, 24 Nov 1992 03:42:54 GMT

This may be a FAQ, but here's what's happening.  My program is divided in
the normal way into CODE segments, including two which I will call segment
A and segment B.  At a point where segment B hasn't yet been loaded into
memory (i.e., I haven't called any procedures in it yet), segment A opens
a resource file.  Then, when a procedure in segment B is called, the
segment loader balks and doesn't load segment B, which of course brings
the program to a speedy crash.

By inserting calls in segment A to a do-nothing routine in segment B, I
have narrowed the problem down to the line in my code where I open the
resource file.  If I call segment B before that, segment B loads fine; if
I call segment B even one line after opening the resource file, then
segment B is not loaded.  I don't think the problem is a lack of memory
because I have tried making my heap bigger, which didn't keep this from
happening (and besides, by looking at my heap with a debugger I can see
that there's all kinds of space there for segment B).

Of course, the easy way around the problem is to simply load segment B by
calling a do-nothing routine in segment B before opening the resource
file.  This is what I'm currently doing, and it works fine.  But there's
something strange going on here which I don't understand, and you know how
such islands of ignorance can come back and bite you on the nose.  Surely the
segment loader doesn't use the one-deep resource manager calls?

(The problem occurs within the run environment in Think Pascal 4.0.  I've
observed it both on an SE and on a IIcx.  I haven't checked to see whether
the problem also occurs in a stand-alone application.)

--Kurisuto

Newsgroups: comp.sys.mac.programmer
From: Albert-Lunde@nwu.edu (Albert Lunde)
Subject: Re: DES encryption algorithm for Mac???
Followup-To: comp.sys.mac.programmer
Originator: lunde@casbah.acns.nwu.edu
Reply-To: Albert-Lunde@nwu.edu (Albert Lunde)
Organization: Northwestern University, Evanston, Illinois, USA
Date: Thu, 19 Nov 1992 04:43:49 GMT

I think the password (in-)security program "Crack" includes a fast
implementation of UNIX crypt. Look for it on archie. This is not
quite the same thing as DES and may not be extremely secure.

-- 
    Albert Lunde                      Albert-Lunde@nwu.edu
                                      alunde@nuacvm.bitnet
From: dpb@huelings.harvard.edu (David Baker)
Newsgroups: comp.sys.mac.programmer
Subject: Warping the Pointer
Date: 16 Nov 92 23:44:25 GMT
Article-I.D.: scws6.DPB.92Nov16154425
Distribution: comp
Organization: Department of Psychology, Harvard University

Is there any way to <gasp> warp the pointer to a specified location on the
screen?  I know, I know, it's against the law, and all, but this is not your
ordinary application.  Does anyone know if/how this can be done?

Thanks.
--
--------------------------------------+----------------------------------------
David P. Baker			      | 
Work: dpb@huelings.harvard.edu	      | The only reason we think we're free is 
Home: baker4@husc.harvard.edu	      | that we cannot imagine the alternative.
Office: William James Hall 844	      |	
	Department of Psychology      | 
	Harvard University	      |	N.B.: If responding by mail, please
	(617) 495-3773		      |	      use my "Work" address above.
--------------------------------------+----------------------------------------
From: werner@soe.berkeley.edu (John Werner)
Newsgroups: comp.sys.mac.programmer
Subject: Re: that zooming rectangle
Followup-To: comp.sys.mac.programmer
Date: 17 Nov 1992 18:08:11 GMT
Organization: UC Berkeley School of Education
Distribution: world
NNTP-Posting-Host: 128.32.157.31

In article <880840m.52.721868202@ace.acadiau.ca>, 880840m@ace.acadiau.ca
(MICHAEL ALEXANDER MCKAY) wrote:
> What is the Toolbox routine that draws those zooming-at-ya rectangles that 
> you see when you launch an app from the Finder?

There isn't one that does the whole job.  But take a look at the DTS
snippet "ZoomRecter", in the ":Toolbox & IAC:Other:" folder.  I think it's
also available on ftp.apple.com.

--
John Werner                         werner@soe.berkeley.edu
UC Berkeley School of Education     510-642-9651
Newsgroups: comp.sys.mac.programmer
From:  ()
Subject: NOW Util. 4.0, System 7.1, and Virtual memory???
Followup-To: comp.sys.mac.programmer
Organization: Trinity College, Hartford, CT.
Date: Mon, 23 Nov 1992 16:37:30 GMT

Here is a quick question:

	I just loaded 7.1 and NOW util. 4.0 onto my startup.
	WHen I restarted (sucesfully), I realized that I had
	to restart again to turn on my virtual memory!  When 
	I did, my system crashed.  But before it did, as the 
	inits loaded...certain init icons started to repeat
	themselves! Upon the next startup, NOW startup Manager
	notified me that there were "two or more copies of
	Appleshare on the startup disk." This simply was not 
	true! REMEMBER EVERYTHING WAS FINE UNTILL I SWITCHED
	ON THE VIRTUAL.

	I have since loaded 7.1 and NOW several times (disableing
	all other extensions.....and I get the same result!!!!

	What the hell is going on??????????????
	HELP.

	padams@mail.trincoll.edu

	PLEASE POST AND E-MAIL ME DIRECTLY IF POSSIBLE
From: iscjcw@uccvma.ucop.edu (Jerry Wilcox)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Now theres THINKC 5.0.4???
Followup-To: comp.sys.mac.programmer
Date: 20 Nov 1992 17:43:32 GMT
Organization: University of California, Office of the President
Distribution: world
NNTP-Posting-Host: ajax.ucop.edu

In article <hurtz.722206110@mcl>, hurtz@mcl.ucsb.edu (Gary Hurtz) wrote:
> 
> Ive recently been trying to catch up with all of the thinkc and tcl updates
> and  thought I finally got it.  But now,  saw it posted that thinkc 504 is
> out. I havent been able to find anywhere, now.  If someone out there knows where it can be found, can you please mail me???
> 

Yes, Virginia, there is a TC 5.0.4!

Let's see, I got the updater from info-mac (sumex-aim.stanford.edu)
yesterday. It is /info-mac/lang/think-c-504-updater.hqx. I'm sure it is by
now available at several other popular ftp sites and could be found by
archie.

Note, TCL was NOT updated this time around. If you are currently at TCL
1.1.2, you are at the right level. If you aren't, then from info-mac, get
/info-mac/lang/think-c-504-tcl-112-update.hqx instead, which also includes
the TCL update.

-----------
Jerry Wilcox - iscjcw@uccvma.ucop.edu
All opinions expressed are MINE -- I'd have a different job if the
University wanted me to speak for it.
Newsgroups: comp.sys.mac.programmer
From: sokoloff@athena.mit.edu (James T Sokoloff)
Subject: Re: Specifying stack size in Think C 5.03?
Organization: Massachusetts Institute of Technology
Distribution: usa
Date: Mon, 23 Nov 1992 18:50:45 GMT

In article <z5nqw7+@lynx.unm.edu> espen@leo.unm.edu (Peter Espen) writes:
>	I am using Think C 5.03 to run some generic C programs using the
>console window and the ccommand() function. The programs that I am running
>are not that large, but they do have functions that are highly recursive.
>I find myself running out of memory when the recursion starts getting pretty
>deep.  Is there a way in Think C 5.03 to specify the size of the stack??
>
>	Peter Espen
>	espen@leo.unm.edu
>
I'm not sure if this is the correct way to do it.  (Higher net.gods should
correct me if I'm wrong.)  In your main(), do the following:

SetApplLimit( GetApplLimit() - 32768L);

This should "reserve" 32K more for the stack, at expense of the max heap
size.

I believe it should be called before: MaxApplZoom( certainly!) and I think
before toolbox Init & MoreMasters()...  But I'm not a net.god...

---Jim Sokoloff
Newsgroups: comp.sys.mac.programmer
Distribution: world
From: Patrick_J._Toole@uu0570.foggybottom.com
Organization: Foggy Bottom / Washington, D.C.
Date: Sat, 21 Nov 1992 13:41:17 EST
Subject: Modem Program

   Does anyone know what the specifications for a VT100 and XModem are?
-Pat
Foggy Bottom - your FirstClass Mac connection in Washington, DC
From: ozma@kuhub.cc.ukans.edu
Newsgroups: comp.sys.mac.programmer
Subject: Re: THINK Pascal- program crashes only when stand-alone
Date: 20 Nov 92 20:45:45 CST
Organization: University of Kansas Academic Computing Services

In article <1355@my.sm.luth.se>, matti@my.sm.luth.se (Matti Larborn) writes:
> In article <BxtpwD.CAn@news.udel.edu> Sean J. Crist,
> kurisuto@chopin.udel.edu writes:
>>Without going into the specifics, here's my general problem.  I have a
>>program which functions fine when running within the THINK Pascal
>>development environment, but which crashes when compiled as a stand-alone
>>application...

I forgot to call SetPort(xxx) before calling BeginUpdate once and IT worked
under THINK Pascal but crashed when "stood alone".  Just on a lark.

john calhoun-

Newsgroups: comp.sys.mac.programmer
From: jxs18@po.CWRU.Edu (Jerry Sy)
Newsgroups: comp.sys.mac.programmer
Subject: sample code for getting mac zone,machine names
Date: 23 Nov 1992 20:29:15 GMT
Organization: Case Western Reserve University, Cleveland, OH (USA)
Reply-To: jxs18@po.CWRU.Edu (Jerry Sy)
NNTP-Posting-Host: hela.ins.cwru.edu


Is there some sample codes for getting a list of appletalk zones and
the machine names , sort of like the chooser and specifically like
a program called Members Only.

I need that to provide a user interface for finding the location of
a user on the network. (the zone a user is in).

I know I have seen even xcmds that does this before so any help
is appreciated.

jerry
From: hamdyz@xanth.CS.ORST.EDU (Zikif Hamdy)
Newsgroups: comp.sys.mac.programmer
Subject: Looking for (old) APDA Article.
Date: 23 Nov 92 04:56:13 GMT
Distribution: usa
Organization: CS Dept, Oregon State University
NNTP-Posting-Host: xanth.cs.orst.edu

I am looking for information that're featured in one of APDA Catalogs
(published by APDA, date:?). The article is about a medical doctor that
writes an application that has something to with X-Ray/CAT-Scan.
The application can analyze X-Ray scans. The doctor learned how write
programs using MacApp by himself and wrote that program.

Devil made me throw away the issue. My request is does anyone know
the article? If you do, could you please send me a copy of the article? 
I will pay any s/h + copy fee. Plus I will send a box of candy to the first
person who can send me the article.

Thank you very much.

Zikif Hamdy
Oregon State University
Corvallis, Oregon.
Newsgroups: comp.sys.mac.programmer
From: jeffc@comb1.comb.umd.edu (Jeff Clowser; IRG)
Subject: 32bit addressing
News-Software: VAX/VMS VNEWS 1.41    
Organization: University of Maryland, Center of Marine Biotechnology
Date: Thu, 19 Nov 1992 19:54:00 GMT

This is my first time on this news group, posting or reading, so this may
be a FAQ.

I'm writing a program, using MPW 3.2 Pascal.  Runs fine on everything I have
from a plus to a Quadra.  I tried it on a ci, and it continually crashed
everytime I ran it - turned out the ci was running it on was running in 
32bit addressing mode.  When I turn that off, everything works fine.

I was under the impression that anything compiled in MPW 3.2 was compiled
as 32bit compatible.  I guess I was wrong...  Anyway, assuming I am wrong,
how do I compile the program to be 32 bit clean?  If I'm not wrong, any ideas
or no-no's I should check for with 32 bit addressing?

If it's any help, the machine dies (locks up) when I do appletalk calls-
in particular, PLookupName seems to be where it hangs most often.  All 
params are ok, cause it works on any Mac that isn't running 32bit addressing,
and on the same Mac when in 24 bit mode.

Please respond via email, as I rarely can keep up with this newsgroup.

Thanks,
===============================================================================
Jeff Clowser		    			     "A keyboard... how quaint"
JeffC@comb1.comb.umd.edu
Network Administrator, Macintosh Technical Support
Information Resources Group, Maryland Biotechnology Institute
University of Maryland
Jeff
Newsgroups: comp.sys.mac.programmer
From: leonardr@netcom.com (Leonard Rosenthol)
Subject: Partial paths (was Re: How to store file references/names ?)
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Date: Wed, 18 Nov 1992 02:03:05 GMT

In article <RMF.92Nov17175921@chopin.cs.columbia.edu> rmf@chopin.cs.columbia.edu (Robert M. Fuhrer) writes:
>Of course, being able to use "relative" paths in aliases (e.g., "Up 2 folders,
>into the folder named 'Foo'...") would solve the problem much of the time...
>
>Unfortunately, Apple didn't put it in (even though Unix has had this for
>years)!
>
	Apple most certainly DID put in relative aliases (see the "fromFile"
parameter to NewAlias & ResolveAlias), as well as supporting partial pathnames
ever since HFS (when such things became valid).  To move up two leves and 
then into a folder named foo, you would use "::::foo:".


-- 
-----------------------------------------------------------------------------
Leonard Rosenthol			Internet: 	leonardr@netcom.com
Director of Advanced Technology		AppleLink:	MACgician
Aladdin Systems, Inc.			GEnie:		MACgician
Newsgroups: comp.sys.mac.programmer
Distribution: world
From: Daniel_R._Sandler@uu0570.foggybottom.com
Organization: Foggy Bottom / Washington, D.C.
Date: Sat, 21 Nov 1992 16:43:06 EST
Subject: Is Background Sound Around?

I have seen this feature in lots of games, even HyperCard, all running
nicely on a 68000 Mac, and what I want to know is--
How do you play sound asynchronously (i.e. in the background) so that
once a sound is loaded and played, I can continue to do stuff like
animation?
I have tried all kinds of channel stuff, and I always get a -201
notEnoughHardwareErr as sson as I call SndPlay.

Thanks in advance.

Daniel Sandler
95dsandler@vax.mbhs.edu

Foggy Bottom - your FirstClass Mac connection in Washington, DC

Newsgroups: comp.sys.mac.programmer
From: absurd@apple.apple.com (Tim Dierks, software saboteur)
Subject: Re: Remembering file locations
Date: Fri, 20 Nov 1992 00:53:30 GMT
Organization: MacDTS Marauders
Followup-To: comp.sys.mac.programmer

In article <1278@scvme3.UUCP>, kevinc@scvme3.UUCP (Kevin Cutts) wrote:
> 
> even after the program has been quit and restarted. I've used the 
> System 7 Alias manager with great success. Now I have a user using 
> sys6 who wants the same sort of capability...without the upgrade. 
> What are the techniques used to handle this task. I don't want to 
> reprogram the alias manager but would like to offer a very small
> subset of its capabilities. Currently my program can locate a file 
> on the same volume as my application but has trouble locating the 
> file across volumes. Inside Mac expounds on all the methods that 
> don't work but none that do!!!
> 
> tanx in advance,
> kevinc

Remember:

  1) The file's name
  2) The directory ID of the file's parent directory
  3) The name of the volume the file is on

This is the simplest stable reference.  It can be expanded for more
flexibility or stability, which is really what the alias manager
does.  Useful things to add might be:

  4) The file's full path name, in case the directory ID changes
      (this should only happen if the directory is deleted and
      recreated, as might happen if the volume is resotred from
      backup)
  5) The volume's creation date, to distinguish multiple volumes with
      the same names or in case the volume's name changes
  6) More information about the file to make identifying it easier,
      should its name or location change.

Tim Dierks
MacDTS, but I speak for myself
From: rudolph@unixg.ubc.ca (Christopher E Rudolph)
Newsgroups: comp.sys.mac.programmer
Subject: Where is Movies.h PLEASE?
Date: 22 Nov 92 21:09:44 GMT
Organization: The University of British Columbia
NNTP-Posting-Host: unixg.ubc.ca
Summary: I am looking for movies.h
Keywords: movies.h

I have searched the networks for the file movies.h, but can't seem to get
a hold of it.  If anyone has it or knows where it is I would be appreciative.

Please respond via email if possible, as I am still new to the commands
using nn.

thanks,
----------------------------------------------------------------------------
Chris Rudolph (computer science UBC) <rudolph@unixg.ubc.ca>
----------------------------------------------------------------------------

Newsgroups: comp.sys.mac.programmer
From: mark@cheers.jsc.nasa.gov (Mark Manning)
Subject: Re: Command-Option-Down Arrow broken! (MPW)
Organization: Simulacron I
Date: Wed, 18 Nov 1992 15:39:59 GMT

My only suggestion is to check out your inits, cdevs, and das.  Sometimes
they interfere with other programs.  Suitcase is one example which, when
the Command-K key is depressed, will sometimes pop up for no reason at
all.  Even though the Command-K key is already being used in the menu
somewhere.

My $0.02 worth.
From: helm@dutiws.tudelft.nl (Aadjan van der Helm)
Newsgroups: comp.sys.mac.programmer
Subject: TCL & Graf3D
Date: 16 Nov 92 09:28:53 GMT
Organization: Delft University of Technology

Hi there

I am writing an application with the Think Class Library. The application has 
a window with a pane in which I draw with the Graf3D library. Whenever I print 
the contents of the window, the printing gets done but in subsequent calls to 
the Graf3D routines I get "illegal instructions" and "bombs".

Do you know of any problems involving Graf3D and the TCL software/printing?
Do you know of any example TCL programs using Graf3D?
Do you know how I should handle a pane with a GrafPort of it's own?

If you can comment on any of these questions I would appreciate it!
Please mail me directly, not via this newsgroup. I will post a summary if the 
response makes it worthwhile.

Thanks for reading this.

Aadjan van der Helm
aadjan@duticg.twi.tudelft.nl
From: udmorrow@mcs.drexel.edu (Daniel Morrow)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Hilite a Rect
Keywords: color, hilite, novice
Date: 19 Nov 92 00:09:19 GMT
Organization: Drexel University

In article <19386@ucdavis.ucdavis.edu> cklarson@burrito.engr.ucdavis.edu (Christopher Klaus Larson) writes:
>In article <1e9v71INNgqn@agate.berkeley.edu> bfoley@obelisk.berkeley.edu (Brian Foley) writes:
>>
>>How do you hilite a rect using the current hilite color?
>>I am using InvertRect() now, but it would be "better" to do it
>>in color.  Inside Mac is rather vague on the subject I tried using 
>>
>>BitClr ((Ptr) HiliteMode, pHiliteBit);  /* IM V-61 */
>>
>
>If you are using THINK C >= 5.0, the variable HiliteMode contains the 

(some stuff deleted, then) Try this:
>
>	*((char *)0x0938) &= 0x7F;
>
>	or
>
>	HiliteMode &= 0x7F; (THINK C only)
>

I use Think 5.0 and all I do is say:
	BitClr(&HiliteMode, pHiliteBit);

This works quite nicely.

-Dan.
From: ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Funny thing...
Date: 17 Nov 92 17:12:49 +1300
Organization: University of Waikato, Hamilton, New Zealand

In article <1992Nov15.211918.9774@nntp.hut.fi>, jmunkki@vipunen.hut.fi (Juri Munkki) writes:
>
> Maybe it's the programming that's making me crazy or the lack of sunshine,
> but when I saw that "floating point support" is "liukulukutuki" it was
> quite impossible not to be amused...

Yes, I've heard about these non-Indo-European languages...

;-)

Lawrence D'Oliveiro                       fone: +64-7-856-2889
Computer Services Dept                     fax: +64-7-838-4066
University of Waikato            electric mail: ldo@waikato.ac.nz
Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
Newsgroups: comp.sys.mac.programmer
From: Quinn <quinn@cs.uwa.edu.au>
Subject: Re: AppleTalk packets OR ATP and DDP, oh how they echo
X-Xxdate: Wed, 18 Nov 92 00: 35:42 GMT
Organization: The University of Western Australia
X-Useragent: Nuntius v1.1.1d12
Date: Wed, 18 Nov 1992 00:46:51 GMT

Johnathon Suker, jsuker@orion.oac.uci.edu (incorrectly) writes:
>	I have come screaming to a halt in front of a brick wall known as
>AppleTalk ATP and DDP packets.  I have this program I am trying to write
>(dont we all) which will utilize the ECHO PROTOCAL.  Unfotunately,
everything
>I have read (Inside Mac, Inside AppleTalk, Programming with AppleTalk)
merely
>state that EP is implemented throught DDP.
>And DDP is not directly accessible to the programmer.
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Damn!  I'll just go and tell my co-programmer that the DDP network
program we spent the last few month writing is impossible (-;

But seriously check out Inside Mac II-308..312 (OpenSkt, CloseSkt
and WriteDDP), II-329..330 (writing a socket listener (yuk!)) and
V-510..515 (the 'Preferred' AppleTalk interface).  Oh, and be
prepared for some assembly (yum!).

Share and Enjoy.

Quinn "The Eskimo!"      <quinn@cs.uwa.edu.au>     "Support HAVOC!"
Department of Computer Science, The University of Western Australia
  -- 'Preferred' -> 'Working'
From: serickso@ub.d.umn.edu (Scott Erickson)
Newsgroups: comp.sys.mac.programmer
Subject: Odd address error in THINK C 5.0.4
Date: 23 Nov 1992 12:00:42 -0600
Organization: University of Conformity
Distribution: usa
Reply-To: serickso@ub.d.umn.edu
NNTP-Posting-Host: ub.d.umn.edu

Hello:


  I have this problem that has me perplexed.  I am using alloc to return a
pointer to 2048 character positions.  The code snippet follows:

#define YYLMAX	2048
	extern char	*yysbuf, *yytext, *yysptr;

-->     yysbuf = (char *)alloc(YYLMAX);
	yysptr = yysbuf;
	yytext = (char *)alloc(YYLMAX);


  My problem is I get a bomb on the line with the arrow.  I get a message
saying odd address. When I use the THINK C debugger, it returns the message 
"Ox4CD3DE".  I am assuming this is the odd address, but is alloc returning
this address?  What can I do to get around this problem? 
  Please respond via email at serickso@ub.d.umn.edu.  Your help is
appreciated.
-- 
serickso@ub.d.umn.edu                                         Scott Erickson
Newsgroups: comp.sys.mac.programmer
From: CFYX33@mgvax.ulster.ac.uk (George Row)
Subject: xcmds mpw pacsal and the linker
Date: Fri, 20 Nov 1992 20:27:00 +0000

Help!!!!
I am using MPW Pascal 3.2 and writing an Xcmd for Hypercard. 
I want to read the contents of a file using MPW's "Read" and 
"Readln" into a few variables for manipulation within the Xcmd. 
The Xcmd compiles but gives the following link error:

### Link: Error: Undefined entry, name: (Error 28) "errno"
  Referenced from: %_SETIORSLT in file: Mike:MPW:MPWFolder:Libraries:PLibraries:PasLib.o
### Link: Error: -- --- more of the same ---etc.

This code links and works OK as a program the problem 
only happens when linking as an xcmd!?

Any advice or assistance would greatly appreciated
					Mike McCool
Magee College
University of Ulster              MCCool.M@mgvax.ulster.ac.uk
From: grobbins@Apple.COM (Grobbins)
Newsgroups: comp.sys.mac.programmer
Subject: Re: need Get folder dialog sample code
Date: 16 Nov 92 08:41:33 GMT
Organization: Apple Computer Inc., Cupertino, CA

In article <74261@apple.apple.COM> evans@Apple.COM (John Evans) writes:
>MacDTS has written a fair amount of sample code, one piece of which deals
>with almost exactly this problem.  It's sample code #18, and contains
>several modifications to standard file, including selecting a directory.

That sample code is rather old, though it is System 6-compatible.
Better C and Pascal System 7-only examples of folder selection are in
the snippets collection (available via anonymous ftp from ftp.apple.com
in the /dts/mac/sc/snippets/files directory) and in the New Inside Mac
volume on Files.

Grobbins         grobbins@apple.com

Usual disclaimers apply.