<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV>I posted this message one hour ago but I can't see it in the list, so here it is again<BR class="Apple-interchange-newline"><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR><BR><DIV><DIV>Le 17 juin 2005 à 12:04, Ruslan Zasukhin a écrit :</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT face="Lucida Sans" size="3" style="font: 11.0px Lucida Sans">And run EACH our example in client/server mode.</FONT></DIV> </BLOCKQUOTE></DIV><BR><DIV>Example "Records_AddDeleteUpdate" :</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>- turned gClient = true</DIV><DIV>- run project in IDE</DIV><DIV>> VException right-away on running in the IDE</DIV><DIV> method CreateDbFiles</DIV><DIV> the VException is not catched</DIV><DIV> I had no error telling me that it was impossible to connect to VServer</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>- then changed host (default "localhost" by the good IP of my Server)</DIV><DIV>- run</DIV><DIV>> seems OK, files are created in Vserver directory</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>- quit running project</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>- run again in IDE</DIV><DIV>> VException right-away</DIV><DIV> method CreateDbFiles</DIV><DIV> the VException is not catched</DIV><DIV> I had no error telling me that the db could not be created because files have already the same name</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>- launch VStudio to unregister the db, so that I could trash its files</DIV><DIV>> VStudio does not show me this db (only the one I'm working on)</DIV><DIV>- stop VServer service, trash the file, launch service again</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>- run the projet again in the IDE</DIV><DIV>- fill the fields with some values</DIV><DIV>- click on the "ADD 10" button</DIV><DIV>> NilObjectException in the "Action" event handler of the pushbutton</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>- launch VStudio (on Windows)</DIV><DIV>- this time, I can see the db in the dbs lists ; I unregister it</DIV><DIV>> nothing happens, this db is always in the dbs list</DIV><DIV>- so I unregister it again; I got a message "invalid file name"; so I say to myself "ok, it has been unregistered anyway"</DIV><DIV>- I quit VStudio and try to trash the files</DIV><DIV>> not possible, Windows says that they are in use</DIV><DIV>- I launch VStudio again, the db is not listed!</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>- so I stop Vserver service, trash the files, and run the service again</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>- back to the RB project, I run it again in the IDE</DIV><DIV>- I see now that I have to click on the "SELECT" button first, so I do</DIV><DIV>- I now click on the "ADD 10" button</DIV><DIV>- all is OK, I can browse the records, excepting that the "text" field has turned to chinese characters...</DIV><DIV> To test this : enter some text in the "text" field, click "update", then "next" and "prev" : all is chinese.</DIV><DIV> But this is not a problem here.</DIV><DIV> </DIV><DIV>- I now add 100's of records using the "ADD 10" button</DIV><DIV>- I can browse them with no problem</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>So what's wrong with my db ?</DIV><DIV>I decide to change the example code so that the db it creates is closer to mine.</DIV><DIV>I change mode 4 to mode 5, since my db is in mode 5 (.vdb + .ind)</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>> VServer ignores this and still creates a db in mode 4 (.blb + .dat + .ind + .vdb).</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>- I think a good idea should be now to rebuild my db in mode 4 and test if I get the same crashes.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Eric</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV></DIV><BR></DIV></BODY></HTML>