Hi Stefano,<br><br>Sorry to have you disturbed. It was an error :(<br>I made a &quot;make clean&quot; and it&#39;s ok.<br><br>Bye and thanks for your speed response :)<br><br><div class="gmail_quote">2009/6/12 Stefano Barbato <span dir="ltr">&lt;<a href="mailto:barbato@koanlogic.com">barbato@koanlogic.com</a>&gt;</span><br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Mickael,<br>
<br>
do you get a runtime error on windows? is there any message in the log file?<br>
<br>
stefano<div><div></div><div class="h5"><br>
<br>
On 12/giu/09, at 11:07, Mickael Auger wrote:<br>
<br>
</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">
Hi,<br>
<br>
Situation :<br>
- I compile my application to WindowsXP with Cygwin.<br>
- I use KLone 2.2.0<br>
<br>
<br>
Question and problem :<br>
I have a file, &quot;lang.conf&quot;, in &quot;/webapp/etc&quot; (like &quot;kloned.conf&quot;).<br>
<br>
I read this file with source code (source given by KLone team in a previous message) :<br>
=========================<br>
static int drv_io_open(const char *uri, void **parg);<br>
static int drv_io_close(void *arg);<br>
static char *drv_io_gets(void *arg, char *buf, size_t size);<br>
static u_config_driver_t drv_embfs = {<br>
    drv_io_open, drv_io_close, drv_io_gets, NULL<br>
};<br>
static int drv_io_open(const char *uri, void **parg){<br>
    io_t *io = NULL;<br>
    dbg_err_if(uri == NULL);<br>
    dbg_err_if(strlen(uri) == 0);<br>
    dbg_err_if(parg == NULL);<br>
    warn_err_ifm(emb_open(uri, &amp;io),<br>
            &quot;unable to open embedded resource: %s&quot;, uri);<br>
    *parg = io;<br>
    return 0;<br>
err:<br>
    if(io)<br>
        io_free(io);<br>
    return ~0;<br>
}<br>
static int drv_io_close(void *arg){<br>
    io_t *io = (io_t*) arg;<br>
    dbg_err_if(io == NULL);<br>
    io_free(io);<br>
    return 0;<br>
err:<br>
    return ~0;<br>
}<br>
static char *drv_io_gets(void *arg, char *buf, size_t size){<br>
    io_t *io = (io_t*)arg;<br>
    dbg_err_if (arg == NULL);<br>
    dbg_err_if (buf == NULL);<br>
    nop_err_if(io_gets(io, buf, size) &lt;= 0);<br>
    return buf;<br>
err:<br>
    return NULL;<br>
}<br>
<br>
<br>
//my function to read my conf file.<br>
void printLangConf()<br>
{<br>
  u_config_t *myconffile;<br>
  if(u_config_load_from_drv(&quot;/etc/lang.conf&quot;,&amp;drv_embfs,0,&amp;myconffile)==0)<br>
    u_config_print(myconffile,0);<br>
}<br>
======================================<br>
<br>
This source code is functional in Linux system (compile with standard toolchain of Linux), but it&#39;s not functional in WindowsXP system (compile with cygwin).<br>
<br>
Can you have a solution, please ?<br>
In WindowsXP, I don&#39;t understand that &quot;webapp/etc/kloned.conf&quot; is read but not my &quot;webapp/etc/lang.conf&quot;. I think that I don&#39;t use the good code.<br>
<br>
For information, I test this function that read my conf file if this file is external at klone binary.<br>
Hovewer, I wish keep my conf file in embedded system to protect its of modifications.<br>
======================================<br>
void printLangConf()<br>
{<br>
  u_config_t *myconffile;<br>
  if(u_config_load_from_file(&quot;lang.conf&quot;,&amp;myconffile)==0)<br>
    u_config_print(myconffile,0);<br>
}<br>
======================================<br>
<br>
Thanks.<br>
-- <br>
Mickaël AUGER<br>
<br></div></div>
_______________________________________________<br>
Klone-users mailing list<br>
<a href="mailto:Klone-users@koanlogic.com" target="_blank">Klone-users@koanlogic.com</a><br>
<a href="http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users" target="_blank">http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users</a><br>
</blockquote>
<br>
<br>
_______________________________________________<br>
Klone-users mailing list<br>
<a href="mailto:Klone-users@koanlogic.com" target="_blank">Klone-users@koanlogic.com</a><br>
<a href="http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users" target="_blank">http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Mickaël AUGER<br><br>