[comp.sys.apple] Programming problem

shankar@SRC.Honeywell.COM (Subash Shankar) (09/18/89)

When using Orca Pascal, I very frequently run into "out of zero-bank memory"
(not exact wording) error messages.  These come even on small (300 lines or
so) programs - one was a simple program which opened a window, started up a
custom control, then drew an alert before closing everything.  

Since I find it hard to believe that such a small program really ran out of
bank zero memory, I was wondering if it could be caused by either system
bugs or memory used elsewhere and not purged.  Does anybody else have this 
problem?

In a typical session, I boot up the 5.0 finder (on a 1.75 Meg system with
128K RAMdisk), then go to the Orca Desktop.  The problem occurs even on the
first attempt to "compile to memory" after loading the program.  If I then
try "compile to disk", I get a plain out of memory error message.

HELP!  It's rather ridiculous when you can't write a simple custom control
without running out of memory.
---
Subash Shankar             Honeywell Systems & Research Center
voice: (612) 782 7558      US Snail: 3660 Technology Dr., Minneapolis, MN 55418
shankar@src.honeywell.com  srcsip!shankar

c326-18@alberta.uucp (Keen Jeffrey Alfred) (09/18/89)

In article <31468@srcsip.UUCP> shankar@src.honeywell.com (Subash Shankar) writes:
>
>When using Orca Pascal, I very frequently run into "out of zero-bank memory"
>(not exact wording) error messages.  These come even on small (300 lines or
>so) programs - one was a simple program which opened a window, started up a
>custom control, then drew an alert before closing everything.  
>
[...]
 typical session, I boot up the 5.0 finder (on a 1.75 Meg system with
>128K RAMdisk), then go to the Orca Desktop.  The problem occurs even on the
>first attempt to "compile to memory" after loading the program.  If I then
>try "compile to disk", I get a plain out of memory error message.
>
>HELP!  It's rather ridiculous when you can't write a simple custom control
>without running out of memory.

I find your problem interesting.  I have 1.25 meg and the desktop however 
after the first day I put the desktop away because although the debugger
is good the desktop just slows me down.  I have complied many programs 
of simliar size to the one you mention.  I also have the assembler 
installed (not on the desktop) and have not had the problem you seem to 
have.  I would suggest you try using a sample program source on the desktop
and the shell and if you would like verification I could try to do the same
file and see if I get the same problem.

Jeff Keen                     (University of Alberta)
jasper!c326-18

shankar@SRC.Honeywell.COM (Subash Shankar) (09/20/89)

In article <1989Sep18.155615.3140@alberta.uucp# c326-18@jasper.UUCP (Keen Jeffrey Alfred) writes:
#In article <31468@srcsip.UUCP# shankar@src.honeywell.com (Subash Shankar) writes:
#
##When using Orca Pascal, I very frequently run into "out of zero-bank memory"
##(not exact wording) error messages.  These come even on small (300 lines or
##so) programs - one was a simple program which opened a window, started up a
##custom control, then drew an alert before closing everything.  

#I find your problem interesting.  I have 1.25 meg and the desktop however 
#after the first day I put the desktop away because although the debugger
#is good the desktop just slows me down.  I have complied many programs 
# I also have the assembler 
#installed (not on the desktop) and have not had the problem you seem to 
#have.  I would suggest you try using a sample program source on the desktop
#and the shell and if you would like verification I could try to do the same
#file and see if I get the same problem.

I wasn't able to duplicate the out of zero-bank memory error with any of the 
samples, but I got a similar problem as follows.

  This is on a system with 1.75 Megs, with 256K RAMdisk (I haven't tested
    this case, but these bugs generally occur with OK RAMdisk too)
  Boot up 5.0 (typical system file, no toolboxes other then those on the
               Apple system disk, quite a few fonts, 11 active NDAs and
               11 active CDAs including those on the system disk, nothing
               else special).
  Go from Finder to Orca Desktop.  The Desktop has the assembler installed.
    (I need that since my application involves both Pascal and ASM code)
  Load the reversi.pas file found in orca/samples/desktop
  Select Compile to Memory
  Get Memory Manager: out of memory error message in shell window 

Thanks.




---
Subash Shankar             Honeywell Systems & Research Center
voice: (612) 782 7558      US Snail: 3660 Technology Dr., Minneapolis, MN 55418
shankar@src.honeywell.com  srcsip!shankar