Personal tools
You are here: Home Forum Use Windows SDK 6.6: DataArrays badly initialized ?

Windows SDK 6.6: DataArrays badly initialized ?

Up to Use


This forum is DEPRECATED, please create new topics in the new SALOME forum.
For existing topics please transfer them to the new forum.

Windows SDK 6.6: DataArrays badly initialized ?

Posted by smarchetto at July 01. 2013

Hello,

I'am using the C++ library MEDCoupling on Windows 8 with Visual Studio 2010. 

I've issues with the initialization of DataArryayInt or DataArrayDouble classes.

The following simple code crashes in Debug or Release, with the SDK in version 6.6 (i haven't tested other versions).

ParaMEDMEM::DataArrayInt* iarray = ParaMEDMEM::DataArrayInt::New();

std::cout << iarray->getName() << std::endl;

It seems that after the New, the name attribute of the DataArray object is not initialized or is corrupted. I can't figure why. What am i doing wrong here ?

I've attached a VS solution to reproduce it. If you want to test on your environment, you just have to change the Include and Lib directory of Salome SDK in the C++ project properties. 

Is any of you can reproduce this issue ? I will be grateful for any help.

Simon

 

Attachments

Re: Windows SDK 6.6: DataArrays badly initialized ?

Posted by smarchetto at February 13. 2014

The sample code still crashes with SALOME 7.3.0. 

I've tested it on Visual Studio 2012, Windows 8.1 64bit.


This forum is DEPRECATED, please create new topics in the new SALOME forum.
For existing topics please transfer them to the new forum.

Powered by Ploneboard
Document Actions