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

Access violation writing location when creating newDocument

Jacob Hockett's picture

I am receiving Unhandled exception at 0x00007FF6A84DC838 in test_cadfile.exe: 0xC0000005: Access violation writing location 0x00000000EA7AF018. in the TDF_LabelNode

(TDF_Data* aDataPtr)
: myFather          (NULL), // The sign it is the root.
  myBrother         (NULL),
  myBrother         ((TDF_LabelNode *)aDataPtr),
  myFirstChild      (NULL),
  myLastFoundChild  (NULL), //jfa 10.01.2003
  myTag             (0), // Always 0 for root.
  myFlags           (0),
  myData            (aDataPtr)
{ // Shows call stack break here. 
#ifdef DEB
  myDebugEntry = '0';

My code to access the new doc is in an image. Was wondering what could be causing this issue. I appreciate the help.