object reference not set to an instance of an object

  • Thread starter Thread starter Zhihong Yu
  • Start date Start date
Z

Zhihong Yu

Hi,
I encounter the above exception in the following function call where
last two parameters are declared as ByRef:
Dim fai As WP_PCORR2_In
Dim fao As WPCORROut
Dim ret As Integer =
WPAlignAPI.wpPCorrAlign2Images(hnd(1), hnd1(1), fai, fao)

One other similar function call succeeds.

Can anyone give some hint ?
Thanks
 
Zhihong Yu said:
I encounter the above exception in the following function call where
last two parameters are declared as ByRef:
Dim fai As WP_PCORR2_In
Dim fao As WPCORROut
Dim ret As Integer =
WPAlignAPI.wpPCorrAlign2Images(hnd(1), hnd1(1), fai, fao)

One other similar function call succeeds.

What function?!
 
Hi,
The other function has similar signature, with two parameters declared
as ByRef.
I verified that all parameters were not NULL at time of exception.
 
Back
Top