E_POINTER

Invalid Pointer

Beckhoff · TwinCAT 2 Automation Interface

What does E_POINTER mean?

An invalid pointer was provided to the function. For ProduceXml(), this applies to the output pXML parameter, indicating the variable to store the XML string is not properly allocated. For CreateChild(), this means the pipItem pointer, intended to receive the new child item's interface, is invalid, preventing the successful creation and return of the child item.

Additional Steps

Steps 1–2 are listed in Priority Fix.

  1. 3

    Verify the calling environment's COM object handling and pointer management conventions.

Source: Beckhoff TwinCAT 2 Automation Interface
Open Manual (Page 60)