SetProcessWorkingSetSize() Bad to use or good???

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
 
H

Herfried K. Wagner [MVP]

* =?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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top