From: Simon Strandgaard <0bz63fz3m1qt3001@...> Date: 2003-06-27T18:24:53+09:00 Subject: Re: collect info about ruby-api On Fri, 27 Jun 2003 19:09:41 +0900, ts wrote: >>>>>> "S" == Simon Strandgaard <0bz63fz3m1qt3001@sneakemail.com> writes: > > S> If its a nested request, then Init_stack will only be invoked once (first > S> request). If its not a nested request, then Init_stack is executed. OK? > > Yes, > > S> Solution to the second request, am I right ??? > S> Init_stack(0xf0000000); > > Yes, it call Init_Stack() with the current value of the beginning of the > stack Wow.. Now I know what Init_stack() does, I feel relieved :-) Thanks everyone. I agree with you that Init_stack is *very* important when one is embedding Ruby into C/C++. This may explain my random segfaults. I better add a Init_stack() section to my tutorial about embedding Ruby into C++. http://metaeditor.sf.net/embed/ Thanks again :-) -- Simon Strandgaard