none
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
            Get
                If intOriginalExStyle = -1 Then
                    intOriginalExStyle = MyBase.CreateParams.ExStyle
                End If
                Dim cp As CreateParams = MyBase.CreateParams

                If bEnableAntiFlicker Then
                    'WS_EX_COMPOSITED
                    cp.ExStyle = cp.ExStyle Or &H2000000
                Else
                    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.


    rishi

    Tuesday, July 16, 2013 1:13 PM

Answers