Never mind I found the problem. If I add the following line: memset (bptr, '\0', size + skip_amt); to the function memalloc_align(int size, int skip_amt) immediately after the line bptr = malloc(size + skip_amt);, and immediately before the line addr = PTR2WORD(bptr) & 0xff; then all works OK. Apparently memory get intialize automatically in the Release build that gets left with 0xcd bytes in the debug build. Thanks for anyone who looked at this Mike "Michael Evenson" wrote in message news:R859a.1563$fz3.967@fe08.atl2.webusenet.com... > Help, > > What am I doing wrong. I compiled the kegs32 project using Visual Studio > 6.0 (with the latest service pack) and the release version works just fine, > but the debug version will boot from the harddrive image file.I have the > executables in a directory that has the required peices (all of the original > kegs, the release kegs and the debug kegs are in the same directory). I get > to the point in the debug version where the cmd box has this in it > > Halting for native break! > leaving run_prog, halt_sim:1 > PC=00.c071 A=cdcd X=0102 Y=adab P=005 S=01cf D=01de B=00,cyc:831307.562 > > > > The Apple screen looks like this: > > ---------------------------------------- > Apple IIgs > > > > > > > > > > Copyright Apple Computer, Inc. 1977-1989 > All Rights Reserved. > ROM Version 3 > > ---------------------------------------- > > Thanks for light you can shed on this. > > > >