C# DLL link in outside information

 

Hello,

I have managed to create a DLL in C# that can be imported by an EA, and pass various types of data around, EG: int, double and string. What I really want to do is connect to a MySql database. Every time I initiate a connection, I get the following error: "Unhandled exception 0xE0434352".

It is not a simple matter of adding a Try/Catch block. I have also tried to add a FileWriter Stream hoping I might be able to get some information that way, but the same issue, as soon as the file should be created, I get the same error.


Example Code in C#:

***

I would really appreciate any ideas on this. Is there any permissions or settings I have to enable in MeteTrader4 to allow my DLL to have inter-process communication?

 
Please insert the code correctly: when editing a message, press the button     Codeand paste your code into the pop-up window. (The first time I corrected your message)