Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Feb 2004
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 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
    Regular Coder
    Join Date
    Feb 2003
    Location
    California
    Posts
    925
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •