Hexagon Geospatial
MENU

ERDAS APOLLO & ECW/JP2

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: 14
Registered: ‎05-26-2016

Crash on 2nd call of NCSInit() with Visual Studio 2015 x64

[ Edited ]

 

Hi,

With Visual Studio 2015 x64, and linking statically with NCSEcwS.lib, I encounter a crash with the following code:

 

#include <NCSECWClient.h>

int main()
{
  NCSInit();
  NCSShutdown();
  NCSInit(); // The crash happens here
  return 0;
}


I don't have this issue with Visual Studio 2013 x64.

The call stack is:

 

NCS::SDK::CHeapsManager::Init() Line 19
NCS::SDK::CBuffer2D::Init() Line 110
NCSInit() Line 640
main() Line 8

 

The context of this issue is that our own Init/Finish functions can potentially be called multiple times during the program's execution.

 

Can you tell me if this issue can be reproduced on your side ? And if so, could you tell me if it can be addressed ?

 

Thanks.

Technical Evangelist
Posts: 796
Registered: ‎07-30-2015

Re: Crash on 2nd call of NCSInit() with Visual Studio 2015 x64

Are you using SDK 5.3?
Does the example code also failed in run-time with static link in VS 2015? Or example code works fine, only this particular code setup doesn't work?

 

best
haiyan

Occasional Contributor
Posts: 14
Registered: ‎05-26-2016

Re: Crash on 2nd call of NCSInit() with Visual Studio 2015 x64

Hi,

 

After testing different versions and compilers, here is what i get when running the code from my previous post:

 

SDK 5.3 + static link:

  - Visual Studio 2013 x64 : crash

  - Visual Studio 2015 x64 : crash

 

SDK 5.2.1 + static link:

  - Visual Studio 2013 x64 : no crash

 

To me, it looks like a regression in SDK 5.3.

To answer your questions, the SDK 5.3 works fine for both compilers except for this particular setup.

 

Regards,

Technical Evangelist
Posts: 796
Registered: ‎07-30-2015

Re: Crash on 2nd call of NCSInit() with Visual Studio 2015 x64

Yes, I can see this issue on SDK 5.3 static link.
I will request CR, and let SDK development team know.

 

Thanks & best regards!

haiyan

Technical Evangelist
Posts: 796
Registered: ‎07-30-2015

Re: Crash on 2nd call of NCSInit() with Visual Studio 2015 x64

[ Edited ]

Hi Chuet,

 

Do you use the paid RW version or the free RO version? 

 

best

haiyan

Occasional Contributor
Posts: 14
Registered: ‎05-26-2016

Re: Crash on 2nd call of NCSInit() with Visual Studio 2015 x64

Hi,

 

we use the free Read-Only version.

 

Best,

Charles.

Occasional Contributor
Posts: 14
Registered: ‎05-26-2016

Re: Crash on 2nd call of NCSInit() with Visual Studio 2015 x64

Hi,

 

I received a mail concerning a bug opened on this subject (SR 1-1810525441) but I cannot seem to access it by following the provided link: https://support.hexagonsafetyinfrastructure.com/infocenter/index?page=siebel&view=11&srnum=1-1810525...

 

This directs me to the old forums, and using my old credentials I cannot access the issue.

 

I am not sure how I am supposed to view the contents of this issue, could you please advise ?

 

Thanks.

 
Occasional Contributor
Posts: 14
Registered: ‎05-26-2016

Re: Crash on 2nd call of NCSInit() with Visual Studio 2015 x64

Hello again,

 

I am still unable to look at the previously mentionned bug, could you please inform me on its status ?

When trying to access the bug I get the following error message: 

 

We detected an Error which may have occurred for one or more of the following reasons:

The responsibility of user 'CHHUET' does not allow accessing view 'INGR Service Request Detail View (eService 2.0)'.(SBL-DAT-00329)

 

Thanks

Staff
Posts: 503
Registered: ‎02-02-2016

Re: Crash on 2nd call of NCSInit() with Visual Studio 2015 x64

Hi Charles,

 

We are using a new support system to track product issues, so that old link you were sent is no longer accessible. The problem your reported has been fixed in version 5.4.

 

Kind regards,

 

Stephen Bent

Hexagon Geospatial Support

Highlighted
Occasional Contributor
Posts: 14
Registered: ‎05-26-2016

Re: Crash on 2nd call of NCSInit() with Visual Studio 2015 x64

Thanks for the update !

Do you need immediate support?
If you encounter a critical issue and need immediate assistance please submit a Service Request through our Support Portal.