Bug fixes plus GDAL

posted Aug 5, 2014, 3:32 PM by Lesley Bross   [ updated Aug 5, 2014, 3:48 PM ]
I spent most of today working on the bugs that were reported yesterday. The first bug was relatively straightforward once I updated the source code for the version of Century Succession that Melissa was using. I found that Century used some properties of the Validator that weren't used by Age Only Succession. I copied the functionality for the RandomNumberGenerator and the timestamps from the Model to the Validator and that fixed Melissa's issue (for me). I haven't heard back from her yet.

Megan's error was more difficult. For some reason she is running a later version of GDAL with an earlier version of gdal_csharp.dll than what is used in the official LANDIS-II installer. Yesterday I implemented some more flexible code for adding the GDAL folder to the PATH but that only fixed half the problem. It looks like the binding redirect directive also needs to be set to point to the exact version of gdal_csharp.dll that is installed. This tells the assembly loader that it can use a version other than what the Launcher/Replicator were compiled with. Here is the directive I added:
<bindingRedirect oldVersion="0.0.0.0-1.0.4704.30777" newVersion="1.0.4551.37186"/>

I'll need to check with Rob to see what the chances are of other users having a similar issue as this solution isn't easy to package/deploy. The locally installed version of gdal_csharp.dll needs to be hard-coded into this .config file and if we can't assume that every installation of L-II 6.0 has the same version, then we have a problem. I've attached copies of Melissa's custom .config files to this blog post. 

ċ
Landis-II Launcher.exe.config
(1k)
Lesley Bross,
Aug 5, 2014, 3:32 PM
ċ
Landis-II Replicator.exe.config
(2k)
Lesley Bross,
Aug 5, 2014, 3:32 PM
Comments