To clarify: RB2K7r1, OS X, building OS X UB. One array of singles in the struct (not an array of structs), + about 40 bytes of other vars.
My reading of the RB docs suggests structs are allocated on the stack and passed by value, hence on the stack. Using a memblock was my next thought but, alas, memblocks are not allowed within structs: curious, why can't i store a 4-byte ptr to a block of allocated memory in a struct as you can do in C? No dice. In the end I created a new class instead of a struct. Thx for the tip re "global", I changed to "globalModule" to not violate any reserved words. P. On 5/16/07, Norman Palardy <[EMAIL PROTECTED]> wrote: > > On 16-May-07, at 8:46 AM, Daniel Stenning wrote: > > > Yes, you may be right if it is an RB array like : > > > > dim myarray() As mystruct > > That is what I meant > > > But I believe that the person asking the question was referring to > > cases > > where a structure itself has one or more arrays INSIDE its own > > definition. > > In his case a very large array - hence the stack problem. > > True, except I can declare a structure with 16000 singles and did not > get the error in the debugger. A built app may behave differently but > I doubt it > > An array of 16000 singles also did not cause it > > However, global being a reserved word might cause compiler errors but > I'd expect a better error message > _______________________________________________ > Unsubscribe or switch delivery mode: > <http://www.realsoftware.com/support/listmanager/> > > Search the archives: > <http://support.realsoftware.com/listarchives/lists.html> > -- ------------------------------------------------------------------------------- Peter K. Stys, MD Professor of Medicine(Neurology), Senior Scientist Ottawa Health Research Institute, Div. of Neuroscience Ottawa Hospital / University of Ottawa Ontario, CANADA tel: (613)761-5444 fax: (613)761-5330 http://www.ohri.ca/profiles/stys.asp ------------------------------------------------------------------------------- _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
