What appears to be the issue is that in the following code in of_restore pfc_n_cst_winserv_preference the SetRedraw(FALSE) on the Frame is called and the routine never returns from the li_rc = of_Restore (True, as_regkey, '') leaving the window frame not being repainted
//Prevent flickering of toolbars.
lnv_menu.of_GetMDIFrame(iw_requestor.MenuID, lw_obj)
If IsValid(lw_obj) Then
lw_obj.SetRedraw(False)
Else
iw_requestor.SetRedraw(False)
End If
li_rc = of_Restore (True, as_regkey, '')
//Prevent flickering of toolbars.
If IsValid(lw_obj) Then
lw_obj.SetRedraw(True)
Else
iw_requestor.SetRedraw(True)
End If
======================================
// the code continues to run until it tries to run of_setpossize twice (without any intervening calls return points in the debugger ) at which point the code stops executing and fails to return
If IsNull(iw_requestor) Or Not IsValid (iw_requestor) Then
Return -1
End If
//Confirm that the WindowState is of type Normal!
If iw_requestor.WindowState = Normal! Then
ii_normalstate_x = iw_requestor.X
ii_normalstate_y = iw_requestor.Y
ii_normalstate_width = iw_requestor.Width
ii_normalstate_height = iw_requestor.Height
Return 1
End If
Return 0
// If I don't comment the preference service and instead just comment the SetRedraw statements the window(sheet) appears but there other strange behaviors - so it looks as if whatever is going on in the pfc preferences services is straining the compiler.