Memory Useage by ReadOnly Property CreateParams() in windows application RRS feed

  • Question

  • Hi team,

    Can you please suggest here ,

    I am using  following code snippt to avoid flickering :

    Protected Overrides ReadOnly Property CreateParams() As CreateParams
                If intOriginalExStyle = -1 Then
                    intOriginalExStyle = MyBase.CreateParams.ExStyle
                End If
                Dim cp As CreateParams = MyBase.CreateParams

                If bEnableAntiFlicker Then
                    cp.ExStyle = cp.ExStyle Or &H2000000
                    cp.ExStyle = intOriginalExStyle
                End If

                Return cp
            End Get
        End Property

    The problems generate due to this is my cpu time peaks up to 100 %.

    Can you please suggest how we can release the memory after its use.

    or How can we reduce my Cpu time to get lower.(Both conditions are required for us: a)Flickering should be avoid b) CPU time should be lower down after its use.

    Please help me to get out from this problem

    Thanks in advance.


    Tuesday, July 16, 2013 1:13 PM