Chun: Hi! It is wrong the port, it must be a string. Example:<br><br>| cs c |<br>
cs _ DBXConnectionSettings      host: &#39;localhost&#39;       port: 3306    
 database: &#39;test&#39;        userName: &#39;root&#39;        userPassword: &#39;test&#39;.<br>
c _ DBXConnection platform: DBXSqlitePlatform new settings: cs.<br>
c connect.<br>
c open.<br>
c close.<br>
c disconnect.<br><br>In which OS are you? If windows, you must use OpenDBX 1.4.1 (not 1.4) because there was a problem fixed there with sqlite in windows.<br><br>You can see examples in subclasses of from DBXBackendFacility method createConnection. Also in the wiki: <br>
<a href="http://wiki.squeak.org/squeak/6067">http://wiki.squeak.org/squeak/6067</a><br><br>Tell me if it works!<br><br>Cheers,<br><br>Mariano<br><br><br><div class="gmail_quote">On Mon, Jul 6, 2009 at 8:51 PM, &quot;S.J.Chun&quot; <span dir="ltr">&lt;<a href="mailto:chunsj@embian.com">chunsj@embian.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
I&#39;ve tested with squeak 3.10.2 with ffi and squeakdbx 1.0 but encountered following error:<br>
<br>
Cannot use integer as pointer<br>
<br>
at apiInitialize: handle backend: backend host: host port: port<br>
which seems to related with FFI.<br>
<br>
My test code is;<br>
<br>
| cs c |<br>
cs _ DBXConnectionSettings      host: &#39;localhost&#39;       port: 3306      database: &#39;test&#39;        userName: &#39;root&#39;        userPassword: &#39;test&#39;.<br>
c _ DBXConnection platform: DBXSqlitePlatform new settings: cs.<br>
c connect.<br>
c open.<br>
c close.<br>
c disconnect.<br>_______________________________________________<br>
SqueakDBX mailing list<br>
<a href="mailto:SqueakDBX@lists.squeakfoundation.org">SqueakDBX@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/squeakdbx" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/squeakdbx</a><br>
<br></blockquote></div><br>