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
Forums: 

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

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

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

Cheers,

Attachments: