For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings


Need to speed up your development?
Have a look at our:

Samples & Tools


Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

Accessing TColStd_HArray1OfReal values

Dmitry Ledentsov's picture

It might be a stupid question, but how is the array of that type accessed/initialized correctly?
Handle(TColStd_HArray1OfReal) anArray=new TColStd_HArray1OfReal(0,5);

gives a segmentation fault error at the function call. Am I missing something out?

All the best and thanks in advance


Dmitry Ledentsov's picture

->ChangeValue(3)=10; solves the issue.


M.Saravanakumar's picture


Do you have any idea how to solve this error when working with Handles:

error C2661: 'new' : no overloaded function takes 3 parameters
Error executing cl.exe.

OCsdi.obj - 1 error(s), 0 warning(s)

Stephane Routelous's picture

at the beginning of your file, you should have something like :
#define new DEBUG_NEW

it is added by the VisualStudio wizard to help tracking memory leaks.

just remove the line


Contact us

Attention: DO NOT use this form for all kind of request for the removal of your personal data. Please follow this link for such cases.