Hi,
I’m gettting a PInvokeStackImbalance error when opening an ECW or Jpeg2000 raster layer.
My code (which is very basic) looks something like this:
RasterLayer rasterLayer = new EcwRasterLayer(path);
rasterLayer.Open();
rasterLayer.Close(); <- this is the failing line
The error returned was:
PInvokeStackImbalance was detected
Message: A call to PInvoke function ‘MapSuiteCore!qxQ=.RCo=+CloseGeoImageDelegate::Invoke’ has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.
I’m using version 7, build 84, WPF. This was also happening in build 61. Not sure if its related to the file itself, but I have sent to the forumsupport@thinkgeo.com email address.
Thanks,
Steve
PInvokeStackImbalance error on raster layer
Hi Steve,
Thanks for your post and data, but I am sorry to say that it didn’t show up on our end, following is a test vedio on our end with your data: screencast.com/t/r543yep8XH . would you please install “Map Suite Unmanaged Dependencies 7.0.79.0.msi” and try it again, if it didn’t fix, if possible, would you please provide us a small sample for a further test.
Waiting for your further information
Summer