# New release candidates for MapWinGIS and MapWindow5 are available

**URL:** <https://mapwindow.discourse.group/t/new-release-candidates-for-mapwingis-and-mapwindow5-are-available/604>\
**Category:** Uncategorized\
**Created:** [June 1, 2020, 6:13pm UTC](https://mapwindow.discourse.group/t/new-release-candidates-for-mapwingis-and-mapwindow5-are-available/604 "2020-06-01T18:13:15Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![pmeems](https://yyz2.discourse-cdn.com/free1/user_avatar/mapwindow.discourse.group/pmeems/32/9_2.png) [@pmeems](https://mapwindow.discourse.group/u/pmeems)\
**Post date:** [June 1, 2020, 6:13pm UTC](https://mapwindow.discourse.group/t/new-release-candidates-for-mapwingis-and-mapwindow5-are-available/604/1 "2020-06-01T18:13:15Z")

</div>

[**UPDATE** 31 Jul. 2020]  
After several release candidates, I just released the stable release of [MapWinGIS v5.2](https://github.com/MapWindow/MapWinGIS/releases), with internal version number 5.2.4  
I also published the stable release of [MapWindow5 v5.6](https://github.com/MapWindow/MapWindow5/releases/), with internal version number 5.6.3

Please download them, try them and let us know on this forum if you run into trouble.

Most work has been done by @Mathijs.Dumon and @jerryfaust

---

<div class="post-metadata">

**Author:** ![pmeems](https://yyz2.discourse-cdn.com/free1/user_avatar/mapwindow.discourse.group/pmeems/32/9_2.png) [@pmeems](https://mapwindow.discourse.group/u/pmeems)\
**Post date:** [June 15, 2020, 3:12pm UTC](https://mapwindow.discourse.group/t/new-release-candidates-for-mapwingis-and-mapwindow5-are-available/604/3 "2020-06-15T15:12:20Z")

</div>



---

<div class="post-metadata">

**Author:** ![nnikos123](https://avatars.discourse-cdn.com/v4/letter/n/9fc29f/32.png) [@nnikos123](https://mapwindow.discourse.group/u/nnikos123)\
**Post date:** [June 18, 2020, 2:08pm UTC](https://mapwindow.discourse.group/t/new-release-candidates-for-mapwingis-and-mapwindow5-are-available/604/4 "2020-06-18T14:08:34Z")

</div>

hello, something causing app crash and is probably related to TilesThreadPoolSize property value and when tile provider is openstreetmap and/or when the user switches between providers and the map has not finished loading all tiles.  
when TilesThreadPoolSize =30 crashes are more often compare to value of 5.  
here is the settings I use:

```
 var gc = new GlobalSettings()
        {
            BingApiKey = bingKey,
            AllowProjectionMismatch = true,
            ReprojectLayersOnAdding = true,
            ApplicationCallback = new Callback(),
            LabelsCollisionMode = tkCollisionMode.LocalList,
            TilesThreadPoolSize = 30,

        };
        gc.HotTrackingMaxShapeCount = 1;

        axMap1.Tiles.set_MaxCacheSize(tkCacheType.Disk, 500);
        axMap1.Tiles.set_UseCache(tkCacheType.Disk, true); // is on by default
        axMap1.Tiles.set_UseCache(tkCacheType.RAM, true); // is on by default

        axMap1.Tiles.set_DoCaching(tkCacheType.RAM, true); // is on by default
        axMap1.Tiles.set_DoCaching(tkCacheType.Disk, true); // is off by default

```

Thread size plays a role I think.

–  
making more testing about this issue I can say that prior to app crash there is a noticeable delay in tile loading, especially for openstreetmap. So maybe there are some sort of rejected requests from the tile server not properly handled in mapwingis, although not sure if that is the case.

---

<div class="post-metadata">

**Author:** ![jerryfaust](https://yyz2.discourse-cdn.com/free1/user_avatar/mapwindow.discourse.group/jerryfaust/32/378_2.png) [@jerryfaust](https://mapwindow.discourse.group/u/jerryfaust)\
**Post date:** [June 23, 2020, 8:00am UTC](https://mapwindow.discourse.group/t/new-release-candidates-for-mapwingis-and-mapwindow5-are-available/604/5 "2020-06-23T08:00:47Z")

</div>

Hello @nnikos123, @pmeems

I was able to crash the app once using the settings above. I’d like to repeat it but it’s late and I’ll try again tomorrow. The crash, interestingly, was in **libeay32.dll** , which has come up before in a different ticket.

I’m running a 32-bit app using the latest OCX code, linked against GDAL 2.4.0.

Addendum:  
Ok, so I stayed up a little longer, and I was able to crash it again, in libeay32.dll called from the cURL library.

Any suggestions? Should I move to GDAL 2.4.2, which was stable for @nnikos123?

 ![image](https://global.discourse-cdn.com/free1/uploads/mapwindow1/original/1X/81197e3eee5522a2c0c90155e70b34670b51fbff.png)

---

<div class="post-metadata">

**Author:** ![nnikos123](https://avatars.discourse-cdn.com/v4/letter/n/9fc29f/32.png) [@nnikos123](https://mapwindow.discourse.group/u/nnikos123)\
**Post date:** [June 23, 2020, 8:49am UTC](https://mapwindow.discourse.group/t/new-release-candidates-for-mapwingis-and-mapwindow5-are-available/604/6 "2020-06-23T08:49:25Z")

</div>

> [@jerryfaust](#):
>
> GDAL 2.4.2

Hi Jerry , your latest gdal version according to your doc on github is 2.4.4 . I suggest to start from this one and then downgrade.  
The interesting thing is that arcgis of bing providers does not give crash incidents such as openstreetview.

---

<div class="post-metadata">

**Author:** ![nnikos123](https://avatars.discourse-cdn.com/v4/letter/n/9fc29f/32.png) [@nnikos123](https://mapwindow.discourse.group/u/nnikos123)\
**Post date:** [July 5, 2020, 3:57pm UTC](https://mapwindow.discourse.group/t/new-release-candidates-for-mapwingis-and-mapwindow5-are-available/604/7 "2020-07-05T15:57:33Z")

</div>

Hi Jerry  
Did you find any solution on this matter? I am still receiving crashes even using the latest RC 5.2.2.

---

<div class="post-metadata">

**Author:** ![jerryfaust](https://yyz2.discourse-cdn.com/free1/user_avatar/mapwindow.discourse.group/jerryfaust/32/378_2.png) [@jerryfaust](https://mapwindow.discourse.group/u/jerryfaust)\
**Post date:** [July 5, 2020, 6:28pm UTC](https://mapwindow.discourse.group/t/new-release-candidates-for-mapwingis-and-mapwindow5-are-available/604/8 "2020-07-05T18:28:09Z")

</div>

Hello @nnikos123

Sorry for not getting back to this earlier.

I am not able to make it crash right now. I’ve tried quite a number of times. I have linked in GDAL 2.4.4. Interestingly, GDAL no longer uses libeay32.dll, so that’s no longer in the mix.

One question; I notice in your code that you’re providing a Bing key. Are you using Bing as opposed to OpenStreetMaps? Or did you say that it is crashing also for OpenStreetMaps?

---

<div class="post-metadata">

**Author:** ![nnikos123](https://avatars.discourse-cdn.com/v4/letter/n/9fc29f/32.png) [@nnikos123](https://mapwindow.discourse.group/u/nnikos123)\
**Post date:** [July 6, 2020, 5:59am UTC](https://mapwindow.discourse.group/t/new-release-candidates-for-mapwingis-and-mapwindow5-are-available/604/9 "2020-07-06T05:59:19Z")

</div>

I am not absolutely sure about Bing but definitely I have crashes using openStreetMaps.  
For now I use Bing and ArcGis (World Topo and Imagery) without issues so far.

It seems very unlikely to have bug in other parts of my code since the only change is the map provider and it happens almost instantly when I switch from Bing to OSM  
Here is the trace on the Windows event Log

* * *

## Faulting application name: NLogManager.exe, version: 1.0.0.0, time stamp: 0x5f01f67d Faulting module name: LIBEAY32.dll, version: 1.0.1.8, time stamp: 0x59abda9d Exception code: 0xc0000005 Fault offset: 0x00007f91

---

<div class="post-metadata">

**Author:** ![nnikos123](https://avatars.discourse-cdn.com/v4/letter/n/9fc29f/32.png) [@nnikos123](https://mapwindow.discourse.group/u/nnikos123)\
**Post date:** [July 6, 2020, 6:30am UTC](https://mapwindow.discourse.group/t/new-release-candidates-for-mapwingis-and-mapwindow5-are-available/604/10 "2020-07-06T06:30:39Z")

</div>

Hi Jerry,

Something has changed in openssl that uses libeay32.dll and ssleay32.dll . Recent versions do not have libeay32 , see link below

> <https://github.com/arvidn/libtorrent/issues/1931>
>
> Please provide the following information
> libtorrent version (or branch): master
> platform/architecture: windows 10 x64
> compiler and compiler version: visual studio 2008
> please describe what symptom...

as a workaround I have downloaded a more recent version of libeay32 (v1.0.2.20 ) from

> **[Nx Software crashes due to libeay32.dll on Windows](https://support.networkoptix.com/hc/en-us/articles/115015730007-Nx-Software-crashes-due-to-libeay32-dll-on-Windows)**
>
> \-------------------------Affected Roles: System Owner • System Administrator Related Nx VMS Apps: Nx Server • Nx ClientDifficulty: Medium-------------------------
> What is the problem? 
> Server and D...

  
and crashes seems to have stopped. I will release my version for testing and I will let you know about it.

---

<div class="post-metadata">

**Author:** ![jerryfaust](https://yyz2.discourse-cdn.com/free1/user_avatar/mapwindow.discourse.group/jerryfaust/32/378_2.png) [@jerryfaust](https://mapwindow.discourse.group/u/jerryfaust)\
**Post date:** [July 6, 2020, 6:45am UTC](https://mapwindow.discourse.group/t/new-release-candidates-for-mapwingis-and-mapwindow5-are-available/604/11 "2020-07-06T06:45:35Z")

</div>

Thanks for the update.

I don’t believe that libeay32.dll should even be distributed with MapWinGIS (with GDAL 2.4.4). I do not install MapWinGIS on my build machine, and when I cleaned out the build and installed GDAL 2.4.4, it no longer included libeay32. Instead it included libssl-1\_1 and libcrypto-1\_1 dlls. I was able to build and run the OCX against this installation of GDAL, and this is what I tested, and I did not get any errors.

However, I went to a clean machine and installed the latest MapWinGIS, and it still includes libeay32.dll (and does not include the libssl or libcrypto dlls). Something seems wrong, and I’m not convinced that the release of MapWinGIS actually includes the latest 2.4.4 version of GDAL. I’m confused by this at the moment, and it will take a little more research. (@pmeems, am I missing something here?)

Hopefully we’ll get this figured out.

Thanks again for your input.

Regards,  
Jerry.

---

<div class="post-metadata">

**Author:** ![nnikos123](https://avatars.discourse-cdn.com/v4/letter/n/9fc29f/32.png) [@nnikos123](https://mapwindow.discourse.group/u/nnikos123)\
**Post date:** [July 6, 2020, 8:07am UTC](https://mapwindow.discourse.group/t/new-release-candidates-for-mapwingis-and-mapwindow5-are-available/604/12 "2020-07-06T08:07:54Z")

</div>

well, cure on this matter has not been found yet. I even tried libeay32 & ssleay32 v1.0.2.21 and crashes still happening.  
It is almost reproducible if the user tries to zoom very fast while tiles are still loading. hope that helps you more.

---

<div class="post-metadata">

**Author:** ![jerryfaust](https://yyz2.discourse-cdn.com/free1/user_avatar/mapwindow.discourse.group/jerryfaust/32/378_2.png) [@jerryfaust](https://mapwindow.discourse.group/u/jerryfaust)\
**Post date:** [July 6, 2020, 8:10pm UTC](https://mapwindow.discourse.group/t/new-release-candidates-for-mapwingis-and-mapwindow5-are-available/604/13 "2020-07-06T20:10:47Z")

</div>

@pmeems

It appears, if I’m not mistaken, that the dependent DLLs for GDAL have changed with v2.4.4. However, the build process uses CopyTamasFiles.bat to copy very specific DLLs from the GDAL directory to the MapWinGIS bin directory. I believe that this bat file needs to change for the latest MapWinGIS build.

I wonder, additionally, why it doesn’t just copy all DLLs from the GDAL directory, rather than specifying a specific set of DLLs.

Thank you,  
Jerry.

Addendum:  
After cleaning out the bin\win32 directory and rebuilding MapWinGIS, the build failed to register the OCX until I modified CopyTamasFiles.bat as follows:

```
REM Copy needed Tamas binaries:
REM FOR %%G IN (cfitsio.dll geos.dll geos_c.dll hdf5.dll hdf5_hl.dll hdf5_cpp.dll hdf5_hl_cpp.dll libcurl.dll 
REM iconv.dll libeay32.dll libmysql.dll libpq.dll libxml2.dll lti_lidar_dsdk_1.1.dll netcdf.dll  
REM openjp2.dll proj.dll spatialite.dll sqlite3.dll freexl.dll  
REM ssleay32.dll szip.dll tbb.dll xdrdll.dll zlib1.dll libtiff.dll expat.dll NCSEcw.dll) DO (
REM IF EXIST %_from_dir%\%%G (
REM xcopy /v /c /r /y %_from_dir%\%%G %_to_dir%
REM )
REM )
xcopy /v /c /r /y %_from_dir%\*.dll %_to_dir%
```

---

<div class="post-metadata">

**Author:** ![pmeems](https://yyz2.discourse-cdn.com/free1/user_avatar/mapwindow.discourse.group/pmeems/32/9_2.png) [@pmeems](https://mapwindow.discourse.group/u/pmeems)\
**Post date:** [July 10, 2020, 8:28am UTC](https://mapwindow.discourse.group/t/new-release-candidates-for-mapwingis-and-mapwindow5-are-available/604/14 "2020-07-10T08:28:38Z")

</div>

After an off-list conversation with @jerryfaust it seems GisInternals has updated his binaries and now includes the libssl-1\_1 and libcrypto-1\_1 dlls.  
I updated our build process and created new installers. For now only available at my Google Drive:  
[https://drive.google.com/drive/folders/0B8UeIGgvyx2VQXRDVndvTUVlUFE?usp=sharing](https://drive.google.com/drive/folders/0B8UeIGgvyx2VQXRDVndvTUVlUFE?usp=sharing)

Since I can’t reproduce the mentioned error, can you (@nnikos123) test this version and let us know?

---

<div class="post-metadata">

**Author:** ![nnikos123](https://avatars.discourse-cdn.com/v4/letter/n/9fc29f/32.png) [@nnikos123](https://mapwindow.discourse.group/u/nnikos123)\
**Post date:** [July 10, 2020, 2:42pm UTC](https://mapwindow.discourse.group/t/new-release-candidates-for-mapwingis-and-mapwindow5-are-available/604/15 "2020-07-10T14:42:26Z")

</div>

Gentlemen I think we nailed it!  
I made some first checks and works. I had crashes almost every time I changed my provider to OSM.  
I will make more tests during the weekend and I will report you back

Thank you again for your efford on this

---

<div class="post-metadata">

**Author:** ![nnikos123](https://avatars.discourse-cdn.com/v4/letter/n/9fc29f/32.png) [@nnikos123](https://mapwindow.discourse.group/u/nnikos123)\
**Post date:** [July 14, 2020, 5:46am UTC](https://mapwindow.discourse.group/t/new-release-candidates-for-mapwingis-and-mapwindow5-are-available/604/16 "2020-07-14T05:46:18Z")

</div>

Hello,  
I confirm that no more crashes happened after the last modification and exclusion on old libs  
thank you very much for your help.  
Nikos

---

<div class="post-metadata">

**Author:** ![nnikos123](https://avatars.discourse-cdn.com/v4/letter/n/9fc29f/32.png) [@nnikos123](https://mapwindow.discourse.group/u/nnikos123)\
**Post date:** [July 20, 2020, 8:47am UTC](https://mapwindow.discourse.group/t/new-release-candidates-for-mapwingis-and-mapwindow5-are-available/604/17 "2020-07-20T08:47:50Z")

</div>

Hello @pmeems, @jerryfaust  
which VC redist version must be installed to the target machine for this fix version?  
I am using the ISOLATED flag and custom installer without ocx reg.

---

<div class="post-metadata">

**Author:** ![jerryfaust](https://yyz2.discourse-cdn.com/free1/user_avatar/mapwindow.discourse.group/jerryfaust/32/378_2.png) [@jerryfaust](https://mapwindow.discourse.group/u/jerryfaust)\
**Post date:** [July 20, 2020, 6:45pm UTC](https://mapwindow.discourse.group/t/new-release-candidates-for-mapwingis-and-mapwindow5-are-available/604/18 "2020-07-20T18:45:10Z")

</div>

Hello Nikos.

I believe Paul uses VS2017 for the builds. It looks like you can get the [latest redist here](https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads?ranMID=24542&ranEAID=msYS1Nvjv4c&ranSiteID=msYS1Nvjv4c-w8eVtsyEyqOKCRTRNZwY4A&epi=msYS1Nvjv4c-w8eVtsyEyqOKCRTRNZwY4A&irgwc=1&OCID=AID2000142_aff_7593_1243925&tduid=(ir__mhc3xiof9skftkkskk0sohziee2xi3aspdwc6j2300)(7593)(1243925)(msYS1Nvjv4c-w8eVtsyEyqOKCRTRNZwY4A)()&irclickid=_mhc3xiof9skftkkskk0sohziee2xi3aspdwc6j2300), and it will work for 2015, 17, and 19.

Regards,  
Jerry.

---

<div class="post-metadata">

**Author:** ![pmeems](https://yyz2.discourse-cdn.com/free1/user_avatar/mapwindow.discourse.group/pmeems/32/9_2.png) [@pmeems](https://mapwindow.discourse.group/u/pmeems)\
**Post date:** [July 24, 2020, 7:07am UTC](https://mapwindow.discourse.group/t/new-release-candidates-for-mapwingis-and-mapwindow5-are-available/604/19 "2020-07-24T07:07:15Z")

</div>

Yes, I use VS2017 for the build.

I just published a new release candidate: [https://github.com/MapWindow/MapWinGIS/releases/tag/v5.2.3](https://github.com/MapWindow/MapWinGIS/releases/tag/v5.2.3) with the fix for the `LIBEAY32` problem.

---

<div class="post-metadata">

**Author:** ![birkal](https://avatars.discourse-cdn.com/v4/letter/b/bb73d2/32.png) [@birkal](https://mapwindow.discourse.group/u/birkal)\
**Post date:** [July 31, 2020, 11:02pm UTC](https://mapwindow.discourse.group/t/new-release-candidates-for-mapwingis-and-mapwindow5-are-available/604/20 "2020-07-31T23:02:30Z")

</div>

Hello I tried building MW5 v5.6.3 using VS2017 and I ran into these errors. How do I fix these errors? I registered the win32 MapWinGIS.ocx and installed syncfusion winform.

 ![image](https://global.discourse-cdn.com/free1/uploads/mapwindow1/original/1X/e8a747dde7cf867e7d3db2e7258bea7414ed45df.png)

---

<div class="post-metadata">

**Author:** ![pmeems](https://yyz2.discourse-cdn.com/free1/user_avatar/mapwindow.discourse.group/pmeems/32/9_2.png) [@pmeems](https://mapwindow.discourse.group/u/pmeems)\
**Post date:** [August 24, 2020, 3:02pm UTC](https://mapwindow.discourse.group/t/new-release-candidates-for-mapwingis-and-mapwindow5-are-available/604/21 "2020-08-24T15:02:00Z")

</div>

Hi @birkal, sorry for the late reply.

Can you build only the Shared project and then the API project?  
If so can you try to build the other projects one by one?

[Next page](https://mapwindow.discourse.group/t/new-release-candidates-for-mapwingis-and-mapwindow5-are-available/604.md?page=2)
