|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Memory UsageI have a 325k VB.Net app that when loaded uses about 25Meg. There's SQL
calls, etc. but how can it take up so much space and how can I reduce the memory footprint? John John wrote:
> I have a 325k VB.Net app that when loaded uses about 25Meg. There's SQL You have to remember that the 325k vb.net app uses the .net framework > calls, etc. but how can it take up so much space and how can I reduce the > memory footprint? John > > classes, so your executable uses a subset of some 25 meg .net install. Chris Well i also thought that the memory footprint of a .Net application is way
to big untill i discovered the following trick Private Declare Auto Function SetProcessWorkingSetSize Lib "kernel32.dll" (ByVal procHandle As IntPtr, ByVal min As Int32, ByVal max As Int32) As Boolean Friend Sub SetProcessWorkingSetSize() Try Dim Mem As Process = Process.GetCurrentProcess() SetProcessWorkingSetSize(Mem.Handle, -1, -1) Catch ex As Exception End Try End Sub this will trim you applications memory usage ,,,, it is safe to use the method call after the first start of your application and when your program is beeing minimized Show quoteHide quote "John" <j***@marxfamily.org> wrote in message news:OzZbfFofFHA.3656@TK2MSFTNGP09.phx.gbl... >I have a 325k VB.Net app that when loaded uses about 25Meg. There's SQL >calls, etc. but how can it take up so much space and how can I reduce the >memory footprint? John >
(newbie warning) vb.net, stdregprov, deletekey - Invalid cast
Loop thru all subfolders and list all files under each imagelist and bitmaps saved bitmap size How to convert error code to text?? Two quick Questions Need a Strategy to store the Single Quotes in the Database My.Settings.Add Error: Cast From String to type Integer not valid Loading two separate instance of the same assembly |
|||||||||||||||||||||||