Edward, If the record is large it can exhaust the stack since it is allocated from the stack. Try to change to: skelSRDB* recordPtr; and allocate it from the heap (MemPtrNew).
Regards, Miron. "Edward P. Ross" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Hello Tom, > > Thanks - I didn't even realize that I had somehow left that out of the loop. > > Thanks again, > Edward Ross > > Tom wrote: > > > Edward, > > > > Did you remember to allocate memory for record.ExType with MemPtrNew? > > > > - Tom > > > > "Edward P. Ross" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > > > > Hello All, > > > > > > The first time my app is run, I populate a database with multiple records. > > My > > > original method used to work fine when the items were kept to around 40 or > > so, > > > however, if i add any more - I get an error that states: > > > > > > Application is close to overflowing the stack. > > > > > > I declare a variable with my database type: > > > skelSRDB record; > > > > > > Then I have the following three lines. I loop through and change the > > ExType text > > > each time through: > > > > > > StrCopy(record.ExType, "misc text - pass x"); > > > StrCopy(record.Instructions, "N/A"); > > > error = AddCategoriesToSRDatabase(&record); > > > > > > Maybe there is a better way - or maybe I have completely missed something. > > I'd > > > like to get a fresh set of eyes on it. If anyone has any ideas for this > > relatively > > > elementary question, I'd appreciate anything. > > > > > > Thanks is advance, > > > Ed. > > > > > > > > > -- > > > Acrocat Software, L.L.C. > > > Do you workout? Get Results. Get PDAbs. > > > http://www.Acrocat.com/PDAbs > > > > > > > > > > > > > > > > > > > > > > -- > > For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ > > -- > Acrocat Software, L.L.C. > Do you workout? Get Results. Get PDAbs. > http://www.Acrocat.com/PDAbs > > > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
