<span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: Helvetica; mso-font-kerning: 0pt"><font face=""><font size="2">
<p>Hello everyone,</p>
<p>I have run into a problem, maybe it was a bug in Spread, whether here is anyone who has encountered the same problem?<br>It happened like this.</p>
<p>First, I write a small program which is just to test whether Spread code can embed into my real application , then I can make my application runs as one process.</p>
<p>In that small program, I just write a main().., in which it just simply call Spread' main function.</p>
<p>the call stack is</p>
<p><em>yy_get_next_buffer<br>yylex<br>yyparse<br>Conf_init<br>spread_main<br>main</em></p>
<p>then the program stay in yy_get_next_buffer() can never come out, I tried to debug, the first time, I find it stay at&nbsp; </p>
<p><strong>YY_INPUT( (&amp;yy_current_buffer-&gt;yy_ch_buf[number_to_move]),<br>&nbsp;&nbsp;&nbsp;yy_n_chars, num_to_read );</strong></p>
<p>I doubt maybe it was something with yyin (a stream to read spread.conf file).</p>
<p><br>Then after 4 or 5 hours(so I shun down the computer) , I tried a second time.</p>
<p>the call stack is:<br><em>yylex<br>yyparse<br>Conf_init<br>spread_main<br>main</em></p>
<p>this time I checked yyin, it works well in Conf_init,&nbsp; but it crash in yyparse() when I do this fscanf(yyin,&quot;%s&quot;, buf).&nbsp; While I removed that line, the program stay at&nbsp; <strong>yy_current_state = yy_next_state
</strong>; in <em>yylex()</em></p>
<p>So, I guess maybe there is some places have memory leak. Because there was so many Globals variable, and the code have little comment, it was really hard to debug.</p>
<p>Could someone give me some idea?</p>
<p>Thanks for reading my e-mail, You help is very important to me.<br></p></font></font></span><br clear="all"><br>-- <br>Yours sincerely<br>Mini Bus.