Web Analytics Made Easy -
StatCounter C++ NullReferenceException - CodingForum

Announcement

Collapse
No announcement yet.

C++ NullReferenceException

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • C++ NullReferenceException

    Hi i have this runtime problem when call a method.

    BioAPI_BIR_PTR birData = NULL;
    BioAPI_GetBIRFromHandle
    (gModuleHandleCapture,
    CapturedImage,
    &birData);

    During runtime, the NullReferenceException points to the &birData argument. Anybody know what's wrong?

    Thanks.

  • #2
    BioAPI_BIR_PTR birData = NULL;
    BioAPI_GetBIRFromHandle
    (gModuleHandleCapture,
    CapturedImage,
    &birData);

    so the value of birData is null but you are trying to pass the address to the value. You might try changing
    BioAPI_BIR_PTR birData = NULL;
    to
    BioAPI_BIR_PTR *birData = NULL;

    that might give you the correct results, otherwise I might be to rusty on my pointers and explanations...



    Jason

    Comment

    Working...
    X