VS 2010 70KB App Takes 10MB Of RAM?
Jul 4, 2011
Was just wondering, why would a 70KB application takes almost 10MB of RAM? All the application does is that it shows the amount fo FREE RAM my computer has. It has 2 pictures, an icon and 2 labels. The amount remains the same, it doesn't increase with the passing of time, I just think such a small application shouldn't eat that much memory.
All code is below:
vb.net
Public Class Form1
Dim drag As Boolean
Dim mousex, mousey As Integer
[Code]....
View 5 Replies
ADVERTISEMENT
Aug 19, 2009
is this a good idea or not really? instead of having to open a file through filestream, i would like to just save text in an encrypted format in application settings. is this OK if the text is under 10mb? what would be the best way of implementing this?
View 2 Replies
Aug 28, 2010
What can I use to make my 40mb .NET app 10mb or less? I tryed netz compressor but that only takes it down to 30mb not to mention the EXE doesn't work after that. Its compiled in .NET Framwork 4.0.
View 4 Replies
Nov 18, 2011
I am working on a simple vb project to read data from a PC serial port and write that data to a file.The data is ascii sent in Hex format. I used MySerialPort.ReadChar() to read data and MyStreamWriter.Write(MySerialPort.ReadChar()) to write it to a file.
I copied my code below, sorry about the format.The trouble is: MySerialPort.ReadChar() acts the same as MySerialPort.ReadByte() , both takes the Hex data input and returns data in decimal format.I tried to use Convert.ToChar(MySerialPort.ReadChar()) to covert decimal to char, but it's too slow.I tried decimal.ToChar(MySerialPort.ReadChar()), but VB doesn't recognize decimal.ToChar, even after I installed .NET4.
Did I do something wrong? how to make MySerialPort.ReadChar() to read Hex data and return char?
[Code]...
View 8 Replies
Nov 9, 2010
Every time I make even a very small change to a form in the form designer, when I try to move off the screen to write code, or run the application, VS 2010 takes up to 1 hour to figure out what the small change was, process it and then let me continue. Is there some fix that I am missing to make VS 2010 be able to handle small changes to the form_designer, or is this just the way it is?
View 6 Replies
Mar 6, 2011
I've been trying to make a program which access the internet and takes the source code from the webpage. I've copied this code from the internet:
[Code]...
View 2 Replies
May 10, 2010
A couple days, I figured up a working program and it was def. faster than what we needed. Now, adding a couple more loops, the program barely uses any memory, but the cpu used spikes up to 90+ and just letting it sit doesn't help.I tried taking out the couple loops I put in, but it does not revert back to being fast. It's nothing big, but since dealing with 1000+ excel files a day, I'd rather not do that by hand.
how many infinite loops vb.net can support without dragging down the system? I know, infinite loops are poor design, but it works.
View 11 Replies
Feb 9, 2010
When I run my .net application exe .It takes time while loading first time How can I reduce a loading time of my application exe ?
View 6 Replies
Apr 24, 2012
I have a multi-threaded application that sends requests to my online app and that page is less than 1kb now the question is how do 15 threads take 300kbs
View 1 Replies
Feb 2, 2010
im using asp.net with vb.net in backcode. On my first page, i diplay names of all employees. I want to give that a hyperlink, that when clicked upon shall open the next page with say a querystring and opn only that employees records. Also I want the save the employeeid (which is not shown on page 1) on the second page, cause when i do updates on second page, I want to use that employeeId in "where" clause for update or insert statements.
View 2 Replies
Feb 4, 2010
When I run my .net application exe .It takes time while loading How can i reduce a loading time of my application exe.
View 2 Replies
Feb 1, 2012
I designing a form with different control have different opacity values.the problem is when i use the transparency key method to make a portion of the form transparent the resulting form and text is not smooth and traces of the transparency colours can be seen is there a way to remove this or any other way to implement transparency?
View 2 Replies
Apr 16, 2012
I have a client application that connects to a WCF service, i get the file size from the server as a long value then i convert it at the client to a string so it appears like ex:52.21 MB the application gets too many files sizes every time user changes the directory pathso the question is :should i convert the values to a string format from WCF service app then return it to the client as a string format or should i just return the size as a long value and let the client to convert it to a string format in other way which value take more bytes in the memory:
[Code]...
View 3 Replies
Aug 3, 2010
Ok, this might be something stupid that im not doing right, but here is my problem. Im moving from my 1st form, a small window, into my second form, that is full screen, but it takes like 4-5 seconds to load the full form. It sucks because during this 4-5 second load time, parts of the form at transparent and it just look bad. I think it might be because i have around 35 labels and a few other objects on the form. Does anyone know a way to make this not happen? Im in VB08.
View 14 Replies
Jan 1, 2012
I have a function that takes a String as a parameter And in it I have variables, so if I call it it's like
Dim Text As String = MyStringConverter("Hello Mr. " & Name & " " & Surname "!")
View 4 Replies
Jan 28, 2009
I'm using the following code to fetch a mac address
Try
Dim cls As New ManagementClass("\" & IP & "
ootcimv2", "Win32_NetworkAdapter", New ObjectGetOptions(Nothing, TimeSpan.MaxValue, False))
Dim col As Object
[Code]...
It is working as expected. My problem is that it seems to wait far too long for devices which do not respond, and when the output of GotMac is "The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)" How do I shorten the wait time for these types of events?
View 5 Replies
Dec 23, 2010
I have a method/sub that takes an object as a parameter, then it scans through a panels controls and trys to find if it is in the window.
Public Sub removetype (ByVal findobject As Object)
Dim types As System.Type = findobject.GetType
For Each ThisCtrl In Flow.Controls 'flow is a panel
[Code]......
View 3 Replies
May 13, 2012
I run a simple SELECT (noted below) in a stored procedure of a table that's around 1,500 rows.
[Code]...
This operation takes around 7 seconds. I inserted Breakpoints and used F11 to determine that upon MySqlAdapter.Fill is where the lag starts. Both my computer and the server hosting the MySQL database are NOT challenged spec wise. I'm guessing it's the query itself. collectionitem holds the 2 foreign keys linking an itemproperty to a collection. we feed the sproc sId(PK of collection) so that the subquery returns all the itemids from a specific collection and then we use the itemid(PK) in itemproperty. Is there any way to speed up the process?
UPDATE My issue was entirely due to improper indexing. Once I learned which columns to index, everything is extremely smooth!
View 2 Replies
Oct 26, 2009
I am writing a program that takes a SSN into a number field.Issue is when a SSN is entered with a leading 0. Ex. 012-34-5678 The zero is cut off and turns it into an 8 byte field, which is not good for SSN obviously.What can I do to prevent this from happening?
View 10 Replies
Mar 18, 2009
I have some code that takes a screen capture of my monitor. This code seems to work perfectly OK and can take multiple screen captures, apart from when I do a Print Screen using the keyboard or open SnagIT 8, when I then try to run my code again I get an error "A generic error occured in GDI+"
I am at a bit of a loss, I have had a look on the internet, but everything I seem to find appears to be related to web apps. and access permissions. This is a window based application and therefore can not seem to find an answer.Below is the code I am running:
[Code]...
View 1 Replies
Dec 4, 2009
Ok, this is going to be a bit bizarre, but I'm looking for something strange, so all suggestions are welcome:I have a function that takes a single byte as an argument. From that byte, without using any random function, I need to create two other random bytes. I specifically cannot use the Random object, but fortunately, the other bytes do not need to be random relative to the argument. Also, the argument is random.
Therefore, one other byte can be created by XORing with &HFF, which will create the inverse of the argument. Since the argument is random, the inverse is also random. I need one other technique that will create that last pseudo-random byte. I thought about bit shifting, but that results in something quite a bit less than random (it will be biased high or low, depending on the bit shifting).
One possibility that I am trying is to use CByte(100000/arg). Does anybody have any other suggestions?
EDIT: The result of that equation for all values of the argument is a very interesting pattern. It will probably be fine, but I'd still take suggestions.
View 10 Replies
Jul 23, 2009
I have the following expression that takes a value in a combo box and appends it to a string :
Dim Expression As String = "COMPANY = '" & cmbCompany.Text & "'"
View 2 Replies
Apr 5, 2011
I achieved all functionality what was needed but my issue is creating and disposing the object is time consuming.Is there any method by which we can make it faster .
I am using word object for spell checking in richtextbox
View 3 Replies
Dec 16, 2011
I am creating a WPF Application that uses Fluent library.
On my computer with Windows 7, 2GB RAM and AMD Triple Core processor, after double clicking on the program icon, The Splash image shows after about 1-2 seconds.
But on my brother's old computer with Windows XP, 512MB RAM and Intel Celeron 2.0 GHz Processor (Single core), after double clicking on the program icon, First, a process called PresentationFontCache.exe runs and it uses almost 100% of CPU for some seconds. And Total time is needed for displaying the initial Splash image is almost 30 seconds (or more).
I don't want that some users have to wait 30 seconds for displaying splash image and about 7-8 seconds for loading application. (my application load process takes 7-8 seconds)
View 3 Replies
Jan 22, 2011
How would i write a program that takes three values X Y and Symbol. the program is supposed to display a rectangle which is X
View 1 Replies
Apr 29, 2010
Is there a way in vb.net to create a sub/function that will take as an argument some kind of pointer to another function, and allow this new sub/function to execute the passed function? What I have are 10-12 xml-rpc functions I am calling against a remote server. Each of these functions has different argument lists (one takes 1 string, another might take 3 strings and one int, etc). All of them return an object.
[Code]...
View 4 Replies
Aug 3, 2010
This loop takes forever to run as the amount of items in the loop approach anything close to and over 1,000, close to like 10 minutes. This needs to run fast for amounts all the way up to like 30-40 thousand.
'Add all Loan Record Lines
Dim loans As List(Of String) = lar.CreateLoanLines()
Dim last As Integer = loans.Count - 1
For i = 0 To last
[Code]...
View 6 Replies
Dec 11, 2009
In my new application i have to process a SQL statement.Depending on the settings , the statement takes between 10 an 20 seconds.is there a possibility to display a second from / dialog / popup for this time?
View 5 Replies
Nov 20, 2009
I am not recieving any errors, but the program is not doing what I had expected. I wish to make a program that randomly takes characters (well, not completely randomly. I used the table of letter frequency from wikipedia and included that data in my program by figuring out the max for the random numbers from the percentages in the wikipedia chart.) and adds them to a long list of characters ands saves the file every 5 minutes. I have calculated the timer interval so that the number of miliseconds shown is equal to 5 minutes. I am getting the textwindow, and it is showing (rather rapidly, as I need it to be) a long random list of characters (including spaces). The problems are (A) I am having difficulty saving the text as a file. You'll find the code that is supposed to do that at the bottom. The other problem I am having is once so many characters are added, the ones at the top start disappearing. I would scroll to the top, and each time I did so the letters at the top had changed (this is all during the same test), but I need all characters to be stored when the file saves. Granted, I haven't actually seen one of the saved files as I have not figured out how to make that work. One other thing, not sure if it's important, I haven't run a published version yet. I've only been running the debug builds. Does that affect how it handles actions with files?
Module RandomModule
Dim X, Y, contents As Primitive
Sub Main()[code].......
View 4 Replies
Jun 1, 2011
in my program i have a timer, and every 5 sec (for example) i send a string by serial.i have to read every key pressed between each 5 sec and send a number that tells me what i am sending.what I've done is to send 1 as long as up key is pressed and send 8 as long as left key is pressed and send 9 as long as both are pressed.when i run my program, the first time i press up and left at the same time and i keep them pressed, the serial send me the first time 9 and then ignores the up key and send me 8 always.and sometimes send me 9 and after that always send me 1 and ignores the left key..the point is that vb ignores the first button i press even if i keep pressing it..what should i do to make vb.net takes two arrows keys at the same time?
View 4 Replies