SetProcessWorkingSetSize() Bad to use or good???

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is it okay to call this sub so that the user see's that the app uses less memory... I thought about using this sub after form loads, it does seem to the user that the app is using less memory... Bad, Good? Doesn't matter??

Thanks

Anthon


Private Declare Auto Function SetProcessWorkingSetSize Lib "kernel32.dll" (ByVal procHandle As IntPtr, ByVal min As Int32, ByVal max As Int32) As Boolea

Public Sub SetProcessWorkingSetSize(
Tr
Dim Mem As Proces
Mem = Process.GetCurrentProcess(
SetProcessWorkingSetSize(Mem.Handle, -1, -1
Catch ex As Exceptio
MsgBox(ex.ToString
End Tr
End Sub
 
* =?Utf-8?B?QW50aG9ueSBOeXN0cm9t?= said:
Is it okay to call this sub so that the user see's that the app uses
less memory... I thought about using this sub after form loads, it does
seem to the user that the app is using less memory... Bad, Good? Doesn't
matter???

Part of the memory used by the application will be written to disk, so
performance may be reduced.
 
Back
Top