Path: utzoo!attcan!uunet!crdgw1!grymoire!weesh From: weesh@grymoire.crd.ge.com (Darweesh) Newsgroups: comp.sys.mac.programmer Subject: Think P Segment question Message-ID: <11938@crdgw1.crd.ge.com> Date: 17 Sep 90 13:51:41 GMT References: <90256.234629KPURCELL@LIVERPOOL.AC.UK> <8384@jarthur.Claremont.EDU> <8386@jarthur.Claremont.EDU> <1990Sep17.011113.6180@portia.Stanford.EDU> Sender: news@crdgw1.crd.ge.com Organization: General Electric Corporate R&D Center Lines: 19 Well, I'm trying to write a multi-segment program that would use the Sound Manager heavily if it would stop crashing. I think that the problem has something to do with where my callback procedure (for asynchronous sound) is. In the sample code supplied by apple (soundapp), they put the callback procedure in one unit, but put the actual procedure in a certain segment using {$S main} in MPW (correct me if I get any of this wrong). Is there any way to declare a procedure in a different segment than the rest of a unit in Think Pascal? (is there any way to do a {$S main} in think P) Also, if anyone has any experience in Multi-segment sound manager code in Thinl Pascal, I woul love to hear from you. Any help would be greatly appreciated, but please send to the following address or post c.s.m.programmer if appropriate: weesh@crd.ge.com Thanks, -Mike Darweesh