Application Made In Studio Takes Very Long To Start Up
Dec 29, 2011
I wrote an app in Visual Studio and is about 20k+ lines, but I don't know why it takes so long to start up. I have a splash screen just to test it to see if the program is working, and it is, but I have to wait for so long for the app to actually get to the start up form. A splash screen for this app isn't ideal, but was only using a splash screen for test purposes.
View 1 Replies
ADVERTISEMENT
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
Jul 24, 2011
I have custom asynchronous WebRequest class that I am testing to find out how fast the request will be cancelled and found some odd results, that starting 6 WebRequests with TPL and cancelling them right away takes 25 sec, but when I used just regular background threads it took only 5 sec.
Update: Running them without cancelling takes with Task.Start 9 sec and Thread.Start 3 sec accordingly.
Imports System.Net
Imports System.Threading
[Code]....
View 1 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
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
Feb 18, 2010
I've been using VB for exactly a week today and for that past 4 hours I've been pulling my hair out! My problem is that our software can only run on one PC on a site, if two instances are running they cause issues. So instead of checking each PC individually I created a program with VB to do this (and other tasks) for me. The problem with the network search is that if I cannot access a remote PC (usually access is denied) then it hangs for a long time before moving on to the next. Can I introduce a timeout feature where the program tries to access the c drive but if it does this for more than 5 seconds and gets nowhere then it moves on? [code]'testcpath' is \pcnamec$ and the other two paths look for the software I'd need to remove if found. So basically, if I have access to every c drive it works fine and completes within a few minutes. If I don't have access to even a small amount then it takes an absolute age.
View 2 Replies
Jun 13, 2012
Actually, I am trying to find out whether the partno is existing in the database table or not and it takes long time in count = checkCommand.ExecuteReader statement
Public Function CheckProductNo(ByVal Partno As String) As Boolean
Dim count As SqlDataReader
Dim valid As Boolean = False
Using connection As New SqlConnection
[code]....
View 4 Replies
Oct 25, 2010
How to terminate function/code (not entire page) when it takes some time, for example, more than 1 sec?[code]...
I found the command "Server.ScriptTimeou", but it stops the entire page instead of one command.
View 2 Replies
Sep 9, 2009
I'm trying to time how long an operation takes in Visual Basic (VS 2008) but its not working. the code I have is as follows:
[code]...
this is in an OnClick event, so what happens is that the user can click a menu item, and it goes and sends any changes it has to a database, and pulls down any new changes to a local data cache. This operation takes time, depending on how many changes are on the server and how many are cached locally. I've thought about making this a background task, so it doesn't draw away from the main app while it's running, but before doing that, I'd like to get an idea how long the operation takes. Since I can't exactly do a progress bar, I figured using the stopwatch would tell me how many ticks/milliseconds would occur between click, and when the "total synced" message comes up, but every time i run it and do an update the message always shows 0 ticks/ms. I don't think it's accounting for the delay, just from start to finish. Is there any way to make it so it detects a message popping up and times off that?
View 6 Replies
Aug 12, 2009
Here's the (Timer1's interval is set to "1" in the designer, and it is set to "Enabled" in the designer as well.)
vb.net
Public timeElapsed As Int32Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
timeElapsed = 0
Timer1.Start()
[Code]...
The issue is, timeElapsed always comes back as equaling 0, so fileCopySpeed always equals infinity. Also note that test.dat is a 100MB file. There's no way it's getting copied in under 1 millisecond!
View 12 Replies
Apr 20, 2011
I've written a small application that keeps track of my thesis notes and essentially I have a few textboxes for keywords, ideas and notes. When I type in the textboxes and hit my update button it works fine...when I cut and paste from a text editor into the textboxes and then hit my update button it takes way to long to return control to the form. Is there something I need to do to text that is copied and pasted into a text box before I send it to the database?
View 3 Replies
Apr 18, 2011
I am using the below code to get the local Administrator members, but this code takes about 6-7 seconds to execute. More precisely the "GetObject" takes that long.Is there another way to get the same information but faster?Also, where can I find what other properties the objects holds ? (To see what other useful information I can get)[code]
View 1 Replies
Feb 10, 2010
Whenever I publish my app, or when I run the exe from teh debug folder it takes a couple of seconds before the splash screen shows.However, when I run it from within VB (by pressing the "play" button) the splash screen shows immediately.
What could be the cause of this?
View 2 Replies
Aug 1, 2011
i have developed an application using OPEN XML SDK Tool 2.0 which generates Excel file. I have Data table of 100000 row and 30 columns and i want to generate excel file with these 100000 rows and 30 columns but it takes about 2 minutes of time to generate excel file. What can i do to reduce this time.
View 3 Replies
Aug 15, 2009
everyone know the start page of Visual studio it seems to be a web page, how I can make like it in my applications?
Edit, Add more details:
let us say that I want to show the recently opened forms or the Tip of this day, who I can do that, where to store the data and how to generate the HTML file?
View 3 Replies
Apr 25, 2010
When starting the default browser like this: Dim trgt1 As String = [URL]
[Code]...
View 10 Replies
Feb 28, 2011
I have made my application to start automaticly when windows start (registry ../currentversion/run/appname + path). In this mode the application start minimized and an little icon appear in the notification icon area. With this icon you can maximize the app or exit it.If you exit the app and start it again using the Menu (Start/programs etc) than the application start in minimized mode (and in this case I would like to have it in normal mode) because the setting autostart is still true.Is there a way you can detect when the application start when windows startup using the above registry or when people click on an icon in the programs menu (or desktop)?
View 2 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 27, 2009
My intentions are to add command line switching. I am trying to see if i could run my application in varoius ways i.e.
App.exe -S - Start the application in XX Mode
app.exe -T30 - Start application with 30 second delay
and that kinda switching.
View 7 Replies
Dec 6, 2010
When I start a web browser I made in VB.NET it starts off with a white page. I want when it starts for it to load up a certain page such as Google. I want to do this without using the home variable.
View 4 Replies
Feb 15, 2012
Ok I have Googled for the answer but couldn't find one. I want to run my project on another computer without visual studio. I have created a setup file but after installing also i need visual studio.Isn't there any another way round?
View 2 Replies
Oct 28, 2009
I've a solution with 15 projects (14 class libraries and one web application). Each class library has corresponding test project (i.e. if I have MyApp.Services project there exists MyApp.Services.Tests -- using NUnit). Everything is written in VB.NET. The problem is that when VS tries to compile any of *.Tests project it stops responding (the bigger the project the longer the period without reposnse). I don't know where to start looking for an issue. I'll add that I've R# 4.5 installed.
UPDATE 1:Is there any way to benchmark a build in visual studio? To get build times for every project?
UPDATE 2:It seems that there is no difference after disabling R#.
View 4 Replies
Oct 21, 2010
I am trying to use Setup project. Want my setup to create a desktop shortcut with my application.I donot understand how to do it. Clicked on User's desktop, I created Shortcut to User's desktop, changed the properties Target and Working Folder as 'Application Folder'But it does not connect with MyApplication.exe When I ran the setup and tested Desktop short cut, it took me to the folder where application was installed, instead of running the application.How to make the application run using this shortcut?
View 1 Replies
Jun 2, 2011
I need to migrate projects that was made in visual studio 2003 but this projects includes several applications that acts as the base for different clients and every client has its own personalization of the product.visual studio 2008 use an architecture in order to turn everything into a single system with differents configurations?
View 1 Replies
Sep 27, 2009
I have a program that requires a string. The string is 20 characters long. The string also have to be split into 2 words the first word is 12 characters and the second is 8. If the strings is not 20 characters long I get an error. I wanted to know how can I get the program to start back over and let me enter another 2 more words if the string is not 20 characters long. At the moment after I get the string is not 20 characters long error it continues to read the rest of the program but I want it to stop after an error and let me start over from the beginning.
View 3 Replies
Aug 1, 2011
I would like to run a .exe file made with visual studio 2003 but I get an error every time I run it on a windows 7 machine, vista machine, and xp machine. The error on Windows 7 and vista says "application has stopped working" and then makes me close the error box. In windows xp it's a little different error, "the application failed to operate (0xc0000135) Click on OK to terminate the application."
View 3 Replies
Aug 4, 2009
I'm using Process.Start to start an external command line application and using the StartInfo.Arguments method to send parameters to the application. I imagine I'll need to use a loop... but I can't figure out exactly how yet.I need to send anywhere from 1 - an infinite number of files names to this application. Each file has to be sent one after the other. So once the first one is done, I need to loop back around and past the second one.I can probably use the Directory.GetFiles method to get all of the files, but I don't know how to assign them.
View 7 Replies
Feb 24, 2012
Visual Basic 2010 - Net Framework 4.0 Client
I have an application (application #1) running with Administrator privileges on Windows 7.
I want application # 1 to start another application (application #2) without Administrator privileges so application #2 is running as a standard user.
Is there a way to do this? I have been using Process.Start.
View 5 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
Feb 9, 2010
I am working with the my.application partial class and I was trying to launch some events off of the networkavailabilitychanged event and what I have noticed is that it takes 9-10 seconds to fire that event if I disable wi-fi and pull the LAN cable on my development machine. What I would like to do is significantly shorten this duration. Something like 100ms would be great. If no, what else can I poke for a network status that will handle this response time?
[Code]...
View 3 Replies