Jump to content
Geochemist's Workbench Support Forum

Unable to get the saturation results in C# project in Debug mode.


Delli Babu

Recommended Posts

Hi Team,

We have purchased the GWB essential license to calculate the chemical species saturation values by using SpecE8 plugin, which is included in GWB Essentials.

I have implemented a wrapper CLR DLL project in C++ which is linking the Gwbplugin.lib & referred in C# dot net project.

When I am debugging C# dot net project which calls chemplugin code mention below the C# application is getting crashed. 

var plugin = new ChemPlugin();

var input = new List<string>
            {
                "decouple Fe+++",
                "9.500000 pH",
                "temperature 250.000000 C",
                "1.000000 free kg H2O"
              };

plugin.Execute(input);

var result = plugin.GetSaturationResults();

Could you please assist how to proceed further to continue to debug our C# application by getting saturation result from SpecE8, Chemplugin with some examples.

 

ChemPluginSpecE8Issue.docx

Link to comment
Share on other sites

Hello,

If you need to run your project in debug mode, you must attach a debugger after the initialize call to GWBplugin, otherwise your program will encounter a run-time error. Please see the Plug-in Feature chapter in the GWB Reference Manual for more information. You can access any of the GWB user guides and reference manual in the Gwb folder where you installed the software.

If you are looking for example SpecE8 scripts, you can look in the Gwb -> Scripts folder for input files that end with the extension .sp8.

Hope this helps,
Jia Wang
Aqueous Solutions LLC

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...