1

Resolved

Failures on parallel access

description

I get a lot of errors at parallel call of BasicCoordinateTransform.Transform. it can be fixed by making the _geoCoord local.

comments

FObermaier wrote Sep 1, 2012 at 7:48 PM

Andreas2 wrote Sep 26, 2012 at 12:40 PM

You forgot to initialize the geoCoord. NullReferenceExceptions are thrown.

FObermaier wrote Oct 5, 2012 at 1:31 PM

As far as I can see _geoCoord is initialized with new ProjCoordinate(0, 0)
Could you provide a TestCase please?

Andreas2 wrote Oct 10, 2012 at 1:22 PM

The _geoCoord is (or was) initialized. But you are now using the local geoCoord which is set to null. TestCase is any use of BasicCoordinateTransform.Transform in the current public trunk. (commit 76924)
see line 113

110 public Coordinate Transform(Coordinate src, Coordinate tgt)
111 {
112 // NOTE: this method may be called many times, so needs to be as efficient as possible
113 Coordinate geoCoord = null;
114 if (_doInverseProjection)

sebasbaumh wrote Oct 16, 2012 at 2:14 PM

Latest trunk still had the problem with NullReferenceException.
I created a patch (id 13050) to fix it.

wrote Feb 14, 2013 at 2:52 AM

wrote May 16, 2013 at 7:57 AM

wrote May 16, 2013 at 7:57 AM

wrote Jun 14, 2013 at 7:00 AM