<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi,</p>
<p>No problem! Should've expected that, given I'm using alpha
version.<br>
</p>
<p>I have one extra question (forgot to include it). <br>
</p>
<p>I noticed that, when I pin some object (in my case it's Form's
bits) that I'm about to pass to FFI call, the call fails with
"could not...". However, the call succeeds when called again with
the same object. <br>
</p>
<p>When I don't pin it, the call succeeds the first time.</p>
<p>Could you explain it?<br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">W dniu 2021-09-07 o 11:30, Marcel
Taeumel pisze:<br>
</div>
<blockquote type="cite"
cite="mid:Mailbird-a8cac559-f1ce-439f-9ec5-c3a0cb6ea55e@hpi.de">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div id="__MailbirdStyleContent" style="font-size:
10pt;font-family: Arial;color: #000000;text-align: left"
dir="ltr"> Hi, there.
<div><br>
</div>
<div>> <span style="font-family: Arial, Helvetica,
sans-serif;font-size: 13px">However, I'm unable to do this
because the call results in "could not</span></div>
<span style="font-family: Arial, Helvetica,
sans-serif;font-size: 13px">> coerce the arguments" error.</span>
<div><span style="font-family: Arial, Helvetica,
sans-serif;font-size: 13px"><br>
</span></div>
<div><a
href="https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/569"
moz-do-not-send="true"><span style="font-size:
10pt;font-family: Arial, Helvetica, sans-serif">https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/569</span></a><br>
</div>
<div><span style="font-family: Arial, Helvetica, sans-serif"><span
style="font-size: 13px"><br>
</span></span></div>
<div><span style="font-family: Arial, Helvetica, sans-serif"><span
style="font-size: 13px">We are on it. Sorry for the
inconvenience.</span></span></div>
<div><span style="font-family: Arial, Helvetica, sans-serif"><span
style="font-size: 13px"><br>
</span></span></div>
<div><span style="font-family: Arial, Helvetica, sans-serif"><span
style="font-size: 13px">Best,</span></span></div>
<div><span style="font-family: Arial, Helvetica, sans-serif"><span
style="font-size: 13px">Marcel</span></span></div>
<blockquote class="history_container" type="cite"
style="border-left-style: solid;border-width: 1px;margin-top:
20px;margin-left: 0px;padding-left: 10px;min-width: 500px">
<p style="color: #AAAAAA; margin-top: 10px;">Am 07.09.2021
08:58:36 schrieb Michał Olszewski
<a class="moz-txt-link-rfc2396E" href="mailto:m.olszewski@nexat.pl"><m.olszewski@nexat.pl></a>:</p>
<div style="font-family:Arial,Helvetica,sans-serif">Hello,<br>
<br>
I'm currently working on bindings to vector graphics engine
library and, <br>
to avoid creating redundant classes, I pass float arrays
(Float64Array) <br>
to functions expecting a struct (the parameter is declared
as <br>
void*/double*. Its not like C cares whether its an array of
constant <br>
size or a struct).<br>
<br>
However, I'm unable to do this because the call results in
"could not <br>
coerce the arguments" error.<br>
<br>
I performed a small test, by using #adoptInstance (damn,
love how I can <br>
fiddle with guts of the system, so cool) on Float64Array
object to turn <br>
it into ByteArray and... it actually works.<br>
<br>
Am I doing something wrong or it's just that the FFI doesn't
support <br>
passing RawBitsArray subclasses (besides ByteArray) yet?<br>
<br>
PS. I'm using Squeak 6.0 20623<br>
<br>
<br>
<br>
</div>
</blockquote>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">
</pre>
</blockquote>
</body>
</html>