Click here to Skip to main content
15,843,727 members
Please Sign up or sign in to vote.
1.22/5 (3 votes)
See more:
Dear

I install my supermarket application Xp and windows 7 OS. when I open xp os it open quickly but windows 7 take long time



Backend : SQL it install windows 2008 server OS

(window server os : Window Firewall disable time only my application open. I need do windows firewall enable.) please tell me your advice
Posted
Comments
Ron Beyer 22-Nov-13 14:02pm    
Way too little information to go on here. What is the hardware in the two different systems? What version of the OS (64-bit/32-bit), what is the network to the database server from the two computers?

Have you debugged at all (debug on the slow machine, hit the pause when you notice the delay, see what line its on)? There are additional things here that we can't see or know to make a good answer for you.
ZurdoDev 22-Nov-13 14:04pm    
Check event viewer. Trace it. We can't see anything so there's no way we can know.
Sergey Alexandrovich Kryukov 22-Nov-13 15:36pm    
Not a question. There is no a common recipes. Time your code, find out bottleneck, etc...
—SA

1 solution

Please see my comment to the question. Time fragments of your code to find bottlenecks. For timing with very good accuracy, you can use the class System.Diagnostics.Stopwatch, for logging — the class System.Diagnostics.EventLog:
http://msdn.microsoft.com/en-us/library/system.diagnostics.stopwatch%28v=vs.110%29.aspx[^],
http://msdn.microsoft.com/en-us/library/system.diagnostics.eventlog%28v=vs.110%29.aspx[^].

Consider finding and using some code profiler: http://en.wikipedia.org/wiki/Profiling_%28computer_programming%29[^].

If, with all your improvements, application start up it still too slow, use some splash screen: http://en.wikipedia.org/wiki/Splash_screen[^].

—SA
 
Share this answer
 
v2
Comments
Ron Beyer 22-Nov-13 15:53pm    
Hope you mean "splash screen", using a flash screen may give the user epilepsy. Either way its a good method for letting the user pass the time :)
Sergey Alexandrovich Kryukov 22-Nov-13 16:37pm    
Oh gosh! Thank you very much for the fix.
Unfortunately, when you sometimes forget what you just wanted to write, get distracted and then mechanically write something else, the spell checker does not care. :-)
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900