thientung / winforms-geplugin-control-library

Automatically exported from code.google.com/p/winforms-geplugin-control-library
GNU General Public License v3.0
0 stars 0 forks source link

Refresh after FetchKmlLocal causes threading exception #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Attempt to use Refresh after FetchKmlLocal.

What is the expected output? What do you see instead?
The kml file to refresh. An exception

NB:

Comment by joshua2519, Dec 01 (Dear fraser: I found a bug with 
FetchKmlLocal?(). when I fetch a local kml file, Refresh button will not 
reload the kml file. beacaue the kml File has been read by a thread.

I fixed this bug by adding a argument, FileShare?.Read in FetchKmlLocal?() 
show below FileStream? stream = File.Open(path, FileMode?.Open, FileAccess?
.Read, FileShare?.Read);

Original issue reported on code.google.com by fraser.c...@gmail.com on 4 Dec 2009 at 12:41

GoogleCodeExporter commented 9 years ago
It is most likely that the FetchKmlLocal function will be depreciated. Mainly 
because 
the new server class is much better suited to loading local kml/kmz files (i.e. 
local 
image support). Fraser

Original comment by fraser.c...@gmail.com on 4 Dec 2009 at 12:44