Quantcast
Channel: SCN : All Content - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2935

PB Classic to .NET migrated application: Null object reference error

$
0
0

Hello everyone,

 

We have an application in PB 12.5.2 Build 5583 and have migrated it from PB Classic to PB .NET. This is a PFC application.

 

After migration, we are getting 'Null object reference error' while trying to open a screen from the Menu. Other 2 screens from the same application opens fine. The error doesn't give much details and looks like -

 

System Error (pfc_systemerror)

Error Number 0.

Error test = Null object reference

Window/Menu/Object = .

Script = .

Line in Script = 0.

 

On debugging we see that the error seems to be somewhat related to Resize. The code goes multiple times through different Resize events like -

 

pfc_w_master.resize

pfc_w_frame.resize

pfc_n_cst_winsrv_statusbar.pfc_resize

pfc_u_dw.resize

 

Then at one point of time, the flow goes to systemerror event from the following code of pfc_w_master.resize event -

 

If IsValid (inv_preference) and This.windowstate = normal! then                     (--> goes to systemerror from here)

     inv_preference.Post of_setPosSize()

End If

 

Could you please help us to resolve this issue ?

 

thanks & regards,

Mazibar


Viewing all articles
Browse latest Browse all 2935

Trending Articles