Rhino5 64bits and MySQL

I am converting a Rhino4 plugin to Rhino5 64 bit. This plugin worked fine with the MySQL API. I have installed a new 64 bit version of MySQL (Community Server 5.6.10) but now Rhino5 is incapable of loading the plugin, with the error:
openNURBS ERROR # 1 RhinoPlugInManager.cpp.3423 CRhinoPlugInManager::LoadPlugIn(): Plugin failed to load.
Rhino5x64_d.exe has triggered a breakpoint

Any suggestions on how to solve this problem? Thank you in advance.

Best regards
Manuel Ventura

Hi Manuel,

Is your MySQL API 32-bit or 64-bit? If you build a 32-bit Rhino 5 plug-in, does it load?

Hi Dale

Thank you for your quick reply. Yes, the same plug-in
worked fine in Rhino4 with a 32 bit version of MySQL.

After loosing a
lot of time trying to convert all the modules (libs and dlls) to 64 bit
I continued to get the same error message. Finally I suspected of the
only component that I was already 64 bit (MySQL). So, I created with the
Rhino5 wizzard a new 64 bit plugin, with only 3 lines of code, to
connect with the MySQL server, and I verified that the error message was
the same that was bothering me since the beginning of the process.

I
have also tried the same exercises , in a computer with the MySQL 32 bit
version. The test with VS 2005 and Rhino4 worked fine. The test with VS
2010 and Rhino5 64 bit did not eve compiled so I assume that all the
components must be actually 64 bit. Is this correct?

In the following
of your question, I have also have done the same exercise with Rhino 5
32 bit, with the same results (not linking). But what is the purpose of
this, if Rhino documentation says that VS 2005 must be used for this
purpose? We are actually using the VS 2005 wizzard and the Rhino4.lib
and associated openNurbs.lib libraries anyway!

How (or when) can we
create a plugin for Rhino5 32 bits that is able to take advantage of the
new functionalities made available with the version 5 SDK?

Thank you
for your attention.

Best regards,

Manuel Ventura

On 2013-07-24 17:27,
dale via McNeel Forum wrote:

dale posted in ‘Rhino5 64bits and
MySQL’ on McNeel Forum:

Hi Manuel,

Is your MySQL API 32-bit or 64-bit? If you build a 32-bit Rhino 5
plug-in, does it load?

To respond,
reply to this email or visit
Rhino5 64bits and MySQL - #2 by dale [1] in your
browser.

To unsubscribe from these emails, visit your user
preferences [2].

Hi Manuel,

How is your 32-bit plug-in connecting to MySQL? Do you have a library or a “connector” that you are linking with? If so, then you will need a 64-bit version of this library/connector to link with your 64-bit plug-in.

The Rhino 5 plug-in wizard generates a plug-in project that will build both a 64-bit plug-in (using VS2010) and a 32-bit plug-in (using VS2005). With Visual Studio 2010, a project can target a different version of the Visual C++ libraries and compiler. This is done by configuring the project use a different Platform toolset.

http://wiki.mcneel.com/developer/sdksamples/trackererror

Sorry I can’t be more helpful with MySQL, as I have never used it…

Hi Dale

The problem was not with MySQL but having on a directory
of the computer (in the path) a copy of the dll of 32 bit, and so not
matching the lib of 64 bits. Now, the plugin is loaded and the
connection with MySQL established.

I am still having problems with the
conversion of some modules in VS2010 x64, such as pugiXML (open source
library), and I have not yet understood if the problem comes from the
STL standard implementation of VS2010 or with the compilation in 64
bits. Any hints about possible known errors related with these topics
are welcome.

Thank you for your attention.

Best regards

Manuel
Ventura

On 2013-07-25 20:55, dale via McNeel Forum wrote:

dale
posted in ‘Rhino5 64bits and MySQL’ on McNeel Forum:


Hi Manuel,

How is your 32-bit
plug-in connecting to MySQL? Do you have a library or a “connector” that
you are linking with? If so, then you will need a 64-bit version of this
library/connector to link with your 64-bit plug-in.

The Rhino 5
plug-in wizard generates a plug-in project that will build both a 64-bit
plug-in (using VS2010) and a 32-bit plug-in (using VS2005). With Visual
Studio 2010, a project can target a different version of the Visual C++
libraries and compiler. This is done by configuring the project use a
different Platform toolset.

http://wiki.mcneel.com/developer/sdksamples/trackererror [1]

Sorry
I can’t be more helpful with MySQL, as I have never used it…


To respond, reply to this email or visit
Rhino5 64bits and MySQL - #4 by dale [2] in your
browser.

To unsubscribe from these emails, visit your user
preferences [3].

Hi Manuel,

See if anything here helps.

http://wiki.mcneel.com/developer/sdksamples/migratevs2010/64bitcompatibility
http://www.codeproject.com/Articles/184458/A-Collection-of-Examples-of-64-bit-Errors-in-Real
http://www.codeproject.com/Articles/18855/20-issues-of-porting-C-code-on-the-64-bit-platform

Hi Dale

Thank you very much for the information.

Best regards

Manuel Ventura

On 2013-08-01 15:27, dale via McNeel Forum wrote:

dale posted in ‘Rhino5 64bits and MySQL’ on McNeel Forum:


Hi Manuel,

See if anything here
helps.

http://wiki.mcneel.com/developer/sdksamples/migratevs2010/64bitcompatibility
[1]

http://www.codeproject.com/Articles/184458/A-Collection-of-Examples-of-64-bit-Errors-in-Real
[2]

http://www.codeproject.com/Articles/18855/20-issues-of-porting-C-code-on-the-64-bit-platform
[3]


To respond, reply to this email
or visit Rhino5 64bits and MySQL - #6 by dale
[4] in your browser.

To unsubscribe from these emails, visit your
user preferences [5].

Links:

[1]
http://wiki.mcneel.com/developer/sdksamples/migratevs2010/64bitcompatibility
[2]
http://www.codeproject.com/Articles/184458/A-Collection-of-Examples-of-64-bit-Errors-in-Real
[3]
http://www.codeproject.com/Articles/18855/20-issues-of-porting-C-code-on-the-64-bit-platform
[4]

[5]
http://discourse.mcneel.com/user_preferences