APOLLO & ECW/JP2 Discussions

Wondering how others have configured their ERDAS APOLLO server or what data they are crawling? The ERDAS APOLLO Discussion board is a place to find information, share ideas and more. Join the community, connect, contribute and share.
Showing results for 
Search instead for 
Do you mean 
Reply
Occasional Contributor
Posts: 8
Registered: ‎02-21-2019

Re: ECW SDK 5.4.0 Exception with macos mono, fine with windows - SOLVED

Hi Mark,

sorry for the delay.

The problem is solved now.
Thanks to your sample I found the most simplest reason:

I simply forgot to call NCSInit(); on app-start, on both windows- and mac-app.

 

For reasonns I don't know, this didn't have any consequences on windows, but on the mac-side it causes this trouble.

 

Thanks

Tom

Staff
Posts: 6
Registered: ‎02-27-2019

Re: ECW SDK 5.4.0 Exception with macos mono, fine with windows - SOLVED

On Windows when linking against the dlls, NCSInit() and NCSShutdown() area automatically called in dll attach/detach. On other platforms (Linux, Mac, iOS, Android) or when linking against the static libraries, the application must call these functions. They are reference counted and thread safe so calling them multiple times is safe.

 

Mark

Highlighted
Occasional Contributor
Posts: 8
Registered: ‎02-21-2019

Re: ECW SDK 5.4.0 Exception with macos mono, fine with windows - SOLVED

For future releases I suggest to add a proper error-message, if NCSInit() was not called instead of just crashing.

This was basically my initial question, what these errors mean.


Would have saved me and us many hours of work.