-
Notifications
You must be signed in to change notification settings - Fork 741
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ambiguous #ctor in VB.NET #146
Comments
Can you please include a copy of the error. On Mon, Jan 19, 2015 at 11:21 AM, landersohn [email protected]
|
C:\Users\andersl\Desktop\PicturePerfect.NET-trunk\frmMain.vb(4038) : error BC31429: '.ctor' is ambiguous because multiple kinds of members with this name exist in class 'Tesseract. I googled this and it appears there are several components that show this kind of error under VB.NET |
Thanks, I'll have a look into this when I have the time. Might not be until the weekend though. Sorry. On Mon, Jan 19, 2015 at 12:56 PM, landersohn [email protected]
|
No problem, appreciate the quick response. BTW, I think that you are doing this project is pretty awesome. |
I think the problem may be that the constructors that accept the config file(s) have this parameter as optional, so VB.NET can not always decide which one to call. removing the "=null" from the function prototype may just do the trick |
I recompiled the wrapper, commenting out the constructors except the one with the collection argument. It compiles but now I get an exception at runtime that seems to be thrown by the leptonica dll, or more precisely when loading the lib
InnerException:
|
The exception is the same as in #141. The dll is located in the same folder where my app resides which is also the current working folder. |
Hi, I've had a look at this and can't reproduce using vs2013. I think you're correct and it is related to the default constructor arguments. Can you post your code that calls the constructor? BTW did you resolve your other issue with it not finding the dlls? |
|
I've updated the constructor signatures, while maintaining backwards compatibility, and added support for Sauvola Binarization in the recently released version 2.2.0. Should hopefully nullify this issue, please reopen if it doesn't. |
My VB.NET app does not compile with 2.1.1.1 wrapper. The error is that #ctor is ambiguous. I think VB.NET gets confused by the two overloaded constructors, one wants a string for a config file, the other wants a collection for a list of config files.
The text was updated successfully, but these errors were encountered: