...

View Full Version : C++ NullReferenceException



ahLi
02-20-2004, 06:50 AM
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.

Jason
02-20-2004, 10:55 PM
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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum