<div dir="ltr"><div dir="ltr"><div>Well, i have some notes,</div><div><br></div><div>1. I tried to chage P in sixbit to every suitable datatype: byte, string, pointer, etc. No good.<br></div><div>2. I "unested" the structs, so I got no segfault but obviously I still cant get any suitable value in ais_state1 after I call the method assemble_vdm. By "unested" I mean I made only one struct with both contents. If you look at the contents using the debuger, there will be garbage.<br></div><div><br></div><div>You can check assemble_vdm is ok by changing any character in the sSentence string, so Handler will return something between 1 and 5, based on wich field was changed. By using the debuger you can see it cleary, as well as the mess at ais_state1.<br></div><div><br></div><div>I really have no clue...</div><div><br></div><div>The library's authors made a simple example here <a href="https://github.com/bcl/aisparser/blob/master/c/examples/text/main.c">https://github.com/bcl/aisparser/blob/master/c/examples/text/main.c</a> but it does nothing more than my souces at all.<br></div></div></div><br><div class="gmail_quote"><div dir="ltr">Em qua, 28 de nov de 2018 às 15:39, T Lee Davidson <<a href="mailto:t.lee.davidson@gmail.com">t.lee.davidson@gmail.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Well, in a rare flash of inspiration, I thought to simply change the name of the library file on disk and use 'Library "libais"'<br>
(duh). I also successfully loaded the library using the syntax specified at the External Function Declaration wiki page [0] as<br>
was mentioned (ie: Library "./libais:1.9").<br>
<br>
I get a segfault no matter whether 'p' in the sixbit structure is defined as a String, as a Pointer, or as a Byte.<br>
<br>
<br>
___<br>
Lee<br>
<br>
[0] <a href="http://gambaswiki.org/wiki/lang/extdecl" rel="noreferrer" target="_blank">http://gambaswiki.org/wiki/lang/extdecl</a><br>
<br>
<br>
On 11/28/18 12:05 PM, gen braga wrote:<br>
> Hi Lee<br>
> <br>
> I just copied the aislib to /usr/lib and also tried to use pointer at sixbit, but wasnt better.<br>
<br>
----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br>
</blockquote></div>