0

In the use of the win10 system, the CanLoadResource sometimes method causes the program to hang and cannot perform any operation, and the code does not execute. but it is normal to use in a win7 system. Why did this happen?

Intercepting the Requests.

Public Function CanLoadResource(resourceParams As ResourceParams) As Boolean Implements ResourceHandler.CanLoadResource
    If resourceParams.URL.Contains("gallery?") Then
        GM.theReadForm.Invoke(GM.theReadForm.MIBActionGaller, resourceParams.URL)
        Return False
    End If
    Return True
End Function

GM.theReadForm.MIBActionGaller delegate registered a very simple method.

Private Sub OnMIBActionGalleryCallback(ByVal urlstring As String)
    MessageBox.Show("OK")
End Sub

Have you experienced something like me?

success log: enter image description here

error log: enter image description here

0 Answers0