[Yazlist] Problems with Zoom.Net and Yaz 5

Stephan Gertsobbe sgertsobbe at lib-it.de
Fri Jul 24 14:56:42 UTC 2015


Part of my Problem I found the solution for. DLL Property Walker say's it the calling Convention in the newer Versions of Windows YAZ DLL has changed. So it's not Cdecl anymore it's now stdcall. That's fine.

But I'm still having trouble calling ZOOM_resultset_record. I have a record in my resultset (SIZE 1) but when I call resultset_record 0 is returned. From documentation that means the record isn't there in the requested syntax. But when I run my exact same query against the database I can see the record there. So any suggestions are welcome.


Regards Stephan

> -----Ursprüngliche Nachricht-----
> Von: Yazlist [mailto:yazlist-bounces at lists.indexdata.dk] Im Auftrag von yazlist-
> request at lists.indexdata.dk
> Gesendet: Donnerstag, 23. Juli 2015 14:56
> An: yazlist at lists.indexdata.dk
> Betreff: Yazlist Digest, Vol 145, Issue 2
> 
> Send Yazlist mailing list submissions to
> 	yazlist at lists.indexdata.dk
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yazlist
> or, via email, send a message with subject or body 'help' to
> 	yazlist-request at lists.indexdata.dk
> 
> You can reach the person managing the list at
> 	yazlist-owner at lists.indexdata.dk
> 
> When replying, please edit your Subject line so it is more specific than "Re:
> Contents of Yazlist digest..."
> 
> 
> Today's Topics:
> 
>    1. Problems with Zoom.Net and Yaz 5 (Stephan Gertsobbe)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Thu, 23 Jul 2015 14:55:50 +0200
> From: Stephan Gertsobbe <sgertsobbe at lib-it.de>
> To: "yazlist at lists.indexdata.dk" <yazlist at lists.indexdata.dk>
> Subject: [Yazlist] Problems with Zoom.Net and Yaz 5
> Message-ID:
> 	<4B62E54DB407D845A774A2409D507C4D01AC6D12DEEE at vm-
> libitsrv17.lib-it.de>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> Hi everybody,
> 
> we tried to port the old Zoom.Net Implementation to Yaz5. So we went through
> and checked all the existing DLLImports in yaz.cs and changed them to yaz5.dll.
> The EntryPoints are all correct, the method signatures seem to be still correct
> and the same.
> 
> BUT: when we try to use our C# Based Client on setting the Options for the
> connection, or setting the database of the connection we get a
> 
> PInvokeStackImbalance ist aufgetreten.
> Message: Der Assistent f?r verwaltetes Debugging ""PInvokeStackImbalance""
> hat ein Problem in
> ""D:\src\LIBEROAPI\CATGMDGenerator\TestBoxf?r\bin\x86\Debug\TestBoxf?r.
> vshost.exe"" festgestellt.
> Zus?tzliche Informationen: Ein Aufruf an die PInvoke-Funktion
> "Zoom.Net.YazSharp!Zoom.Net.YazSharp.Yaz::ZOOM_options_set" hat das
> Gleichgewicht des Stapels gest?rt. Wahrscheinlich stimmt die verwaltete
> PInvoke-Signatur nicht mit der nicht verwalteten Zielsignatur ?berein.
> ?berpr?fen Sie, ob die Aufrufkonvention und die Parameter der PInvoke-
> Signatur mit der nicht verwalteten Zielsignatur ?bereinstimmen.
> 
> My Development system speaks german so here is he exception from google
> PInvokeStackImbalance has occurred.
> Message: The Wizard managed debugging "" PInvokeStackImbalance "" has a
> problem in "found" "D \ src \ LIBEROAPI \ CATGMDGenerator \ TestBoxf?r \ bin
> \ x86 \ Debug \ TestBoxf?r.vshost.exe".
> Additional information: A call to PInvoke the function "! Zoom.Net.YazSharp
> Zoom.Net.YazSharp.Yaz :: ZOOM_options_set" has upset the balance of the
> stack. Probably true unmanaged PInvoke signature match the target
> unmanaged signature. Check that the calling convention and parameters of the
> PInvoke signature match the target unmanaged signature.
> 
> Of course the entire thing doesn't work.
> 
> So my question did I miss any important changes on the API and Zoom.Net
> simple doesn't do what it's supposed to do as it is unmaintained since 2005
> (Version 0.9c) Could somebody please help me as I need to get the Z Client in
> one of our Library system add-ins to Yaz5 and can't find any proper
> implementation of YAZ.Net
> 
> This is the first call that crashes they somehow all crash with the
> PInvokeStackImbalance Error but this is the first
>              public string this[string key]
>              {
>                     get
>                     {
>                            return Yaz.ZOOM_options_get(_zoomOptions, key);
>                     }
> 
>                     set
>                     {
>                            Yaz.ZOOM_options_set(_zoomOptions, key, value);
>                     }
>              }
> 
> 
> I attach my current version of yaz.cs to this email.
> 
> Kind regards and thanks a lot for any help Stephan
> 
> 
> 
> 
> 
> 
> 
> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> <http://lists.indexdata.dk/pipermail/yazlist/attachments/20150723/49f55df7/at
> tachment.html>
> -------------- next part --------------
> An embedded and charset-unspecified text was scrubbed...
> Name: Yaz.cs
> URL:
> <http://lists.indexdata.dk/pipermail/yazlist/attachments/20150723/49f55df7/at
> tachment.ksh>
> 
> ------------------------------
> 
> Subject: Digest Footer
> 
> _______________________________________________
> Yazlist mailing list
> Yazlist at lists.indexdata.dk
> http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yazlist
> 
> 
> ------------------------------
> 
> End of Yazlist Digest, Vol 145, Issue 2
> ***************************************



More information about the Yazlist mailing list