rdsesq@Jessica.stanford.edu (Rob Snevely) (03/01/89)
Hello All, Does anybody know what the segment _DataInit does in MPW. I am trying t convertone of Apple's sample programs, Sample (the one that does the traffic light) from MPW to LSP. When I remove the procedure _DataInit; External; and remove the only reference to it UnloadSeg(@_DataInit). It bombs bad. 1: id 28 dsStknHeap "Stack has moved into application heap" which bombs LSP. Or 2: Won't call the first part of the program and locks my machine tight, I can't even hit the interuppt switch to get into macsbug. Of course if I don't remove these sections it gives a link error. Of course if anybody has already converted this sample program to LSP, I would greatly appreciate it if you could mail me a copy of the LSP source. Many thanx in advance, and please e-mail if you don't think it would be of interest to the net. Again, Many thanx in advance. rob snevely rdsesq@jessica.stanford.edu
siegel@endor.harvard.edu (Rich Siegel) (03/03/89)
In article <564@Portia.Stanford.EDU> rdsesq@Jessica.stanford.edu (Rob Snevely) writes:
_DataInit, is, presumably, the startup routine called automatically
by MPW programs to take care of any necessary data initializations (strings,
floating-point constants,etc).
Have you perhaps forgotten to specify a resource file in the Run
Options to use for your menus,dialogs, &c? That has bitten me a few times...
--Rich
Rich Siegel
Staff Software Developer
THINK Technologies Division, Symantec Corp.
Internet: siegel@endor.harvard.edu
UUCP: ..harvard!endor!siegel
Phone: (617) 275-4800 x305
rdsesq@Jessica.stanford.edu (Rob Snevely) (03/04/89)
Many thanx for your response. It seems to be something to do with the segment stuff that MPW does. I think that this piece of code might be suffering from the same problem that of segmenting that does not allow me to use MaccApp with object pascal in LSP. Last I heard Think and Apple were working on solving this. Any new developments? Getting back to the first problem, I think its segmenting but I could be wrong. It wouldn't be the first time, and I'm sure it won't be the last. Thanx again for the help, rob rdsesq@jessica.stanford.edu