<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>Den 03/05/2010 kl. 12.13 skrev marius zbihlei:</div><blockquote type="cite"><div>You are right, if you use 2 PV in the cr_route function things will go badly.<br><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" color="#144FAE"><br></font></font></div></blockquote><blockquote type="cite"><div>The reason is that the core function get_str_fparam() returns a pointer to a static buffer, and in total there are three(3) static buffers to return, so after a fourth call the first value (if cached which is the case in your proof) will be overwritten by the fourth. A solution is to increase the number of buffers to a number larger than 3 (but still small - keep in mind that each buffer is 1kB). I have tested with 6 and it works.<br><br></div></blockquote><div><br></div><div>So maybe this can't be fixed (easily) without a performace penalty? At least a note in the doc would have saved me some trouble - or maybe an error message in the log (if possible).&nbsp;</div><br><blockquote type="cite"><div>Please modify PV_PRINT_BUF_NO in sr_module.c(line 1418) to a larger value , compile and retest.<br><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" color="#144FAE"><br></font></font></div></blockquote><br></div><div>Ok, I'll check it out when I upgrade to 3.0.1 or later. For now I've made a workaround in the config with some "if" constructs.</div><div><br></div><div>Thanks,</div><div>Ole</div></body></html>