|
Thanks for the quick response, Dave. I'll quit looking for another way to do it then. I had been doing something similar to what you suggest (just polling with GetForegroundWindow and seeing when it changed to something unexpected) but it seemed like such a hack I thought I must be missing a better way.
I appreciate your help.
Paul
|
|
|
|
|
|
Let's say I have a .NET 2.0 application that needs to load about 30 different .NET 2.0 assemblies during startup. Said application is taking about 35 seconds to cold-start and about 13 seconds to warm-start under a specific environment. I am aware that these numbers are fairly typical of .NET 2.0 applications. Our company did not develop said application, but am tasked with coming up with suggestions on how to improve the cold-start performance.
The reading I have done suggests that the difference in the two times is due to pages still being available in memory and not as many hard-faults (disk accesses) need to be performed to reload an assembly.
Things I have identified as potential solutions are:
1. Update the minimum hardware requirements (not sure what they currently are, but the tests above were done on a 1.8 GHz P4 with 512MB RAM). The cold-start time drops from 35 to 13 seconds on my development box which is a 3.0 GHz Dual Core with 2GB RAM. Warm-start time drops from 13 seconds to 3 seconds.
2. Update the application and all its assemblies to .NET 3.5. Any idea what improvement is this likely to achieve?
3. Generate native images for the assemblies. This is a trade-off between the time needed to load larger disk images and the time required to JIT-compile a CLR assembly. Is this worth pursuing further?
4. Rebase the assemblies. Using Process Explorer from SysInternals I observed that 30 assemblies were relocated by the OS Loader. Preliminary tests indicate that the performance improvement is negligible.
5. Preload the assemblies. What this would try to achieve is to mimic a warm-start, but I'm not sure how it would have to work. If I have a pre-loader application that loads the assemblies needed by the actual application, aren't different copies of the assemblies loaded by each application into its own AppDomain? How would this help improve cold-start performance unless the assemblies are put in a common place? As you can see I'm a little confused. Help?
I have gleaned most of my information online from http://msdn.microsoft.com/en-us/magazine/cc163655.aspx[^].
I look forward to hearing suggestions, ideas. Thanks.
modified on Thursday, April 30, 2009 7:41 PM
|
|
|
|
|
Based on the description of your problem, number 3 is where I'd start. Google "NGEN" and you'll find the command line utility that creates the native images for your assemblies.
|
|
|
|
|
Hi,
to my c#.net 3.5 application i added a setup project. setup created successfully and running fine.
but when am trying to install in a computer where there is no .net 3.5 framework it is asking in window that 'This setup requires the .NET framework 3.5. please install .net framework and run this setup again. The .NET Framework can be obtained from the web. Would you like to do this now?' with Yes and No buttons.
but in my setup project Prequisites property i selected .Net freamework2.0, 3.5 and window installer 3.1
and i selected 2nd radiobutton that is Download prerequisites from the same location as my application.
i build it successfully i got respective folders in to my debug folder.
but during the installation it is not installing automatically that .net framework3.5
forcefully am going to install framework.
To install automatically what i have to do?
Please explain.
Thanks in advance.
--Naren
|
|
|
|
|
Look, you've been failing at this for over a week now. If you have not yet read the documentation I strongly advise you to do so. If you have read it and you still have this ridiculously unintelligent understanding of how this will work then you are not qualified to be doing this job.
|
|
|
|
|
|
hello friends
What points should b consider when i update my project from vs2002 to vs2005.B;coz i m facing too many linker errors like
error LNK2001: unresolved external symbol __imp___CrtDbgReportW
error LNK2001: unresolved external symbol __imp___CrtDbgReportW
error LNK2019: unresolved external symbol "private: class ReferenceMaker & __thiscall ReferenceMaker::operator=(class ReferenceMaker const &)" (??4ReferenceMaker@@AAEAAV0@ABV0@@Z) referenced in function "public: class ReferenceTarget & __thiscall ReferenceTarget::operator=(class ReferenceTarget const &)" (??4ReferenceTarget@@QAEAAV0@ABV0@@Z)
|
|
|
|
|
Are you using Visual Studio 2005 Project Update Wizard?
Either you love IT or leave IT...
|
|
|
|
|
Have a Google on "Breaking changes in Visual C++." You will find an article or two describing the changes in the different versions of the compiler. That should help you in migrating.
|
|
|
|
|
Hi
Can anyone please guide me how do I use ISO 8583 messages with Biztalk. There's no help on Internet. Pls Help
|
|
|
|
|
Hi all!!!
How do i create camera view in smartphones form .NET WM5?
|
|
|
|
|
|
i need a prog to send messages to administrator or account holder's mobile through bluetooth or any other means when an unauthorised person tries to access any system login or user account or any sort of login form.
|
|
|
|
|
That's nice. Perhaps you should break your problem down into small, logical steps which you can do - consider it a form of "idea refactoring"
|
|
|
|
|
first we should develop a login page and we should connect it to database. some password and username are to be stored in the database. whenever any other person tries to enter or give any worng details then it should match with database data and if it is incorrect then an event should be done. it should alert the main user by sending an sms to his mobile. i actually didnot get any idea for performing this last event that is how to handle the operation and how to connect the mobile to the database or the system
|
|
|
|
|
Seems like one of the more idiotic ideas I have seen here, some things you need to think of for yourself.
This will only work if the user id is correct and the password is wrong - you cannot match on an incorrect user id
This is the perfect way to piss off a colleague, get his userid and keep entering an incorrect password - he/she gets a text every time - great fun for a practical joker.
It is a fairly simple exercise to register the mobile of a user and there are PC => SMS services you can use to send the SMS.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
is ther any already developed software and coding for this????
|
|
|
|
|
Hi,
I have one client application that have send email function which use the EmailInterop. The code is like this:
NMailItem itemEmail = EmailInterop.OpenEmailItem("", "", "", Enums.EmailType.Normal);
But if the outlook is not running in the client, the application have problem.
I want to prevent user send mail if the outlook is not running now. So how to detect the outlook is running or not in the client?
thanks.
|
|
|
|
|
Something like:
For Each p As Process In Process.GetProcesses
If p.ProcessName = "OUTLOOK" Then
Console.WriteLine(p.ProcessName & " / " & p.MainWindowTitle)
End If
Next
Console.ReadLine()
|
|
|
|
|
I have a render html like
<table><tr><td>ABC</td></tr></table>
i want print this or exports this render html to pdf file and save this file in My file sysytem.
is it possible? if yes then how?
i m using asp.net+c#+iTextsharp
thankx in advance
|
|
|
|
|
hello dear...
i was reading the artcle ".NET Phone Communication Library" but i was unable to find the competlete article i just found the PART_I and PART_IV
kindly email me the complete article or tell me the path so that i may get the full article myself. kindly help me..
i shall be very thankful to you.
fawada ali
fawadali123@gmail.com
|
|
|
|
|
Parts II and III don't exist.
|
|
|
|
|
Hi all,
I'm quite new to vb.net programming and I'm facing some difficulties with the getchanges method of a datatable...
In my program, I have a standalone datatable which I'm using as the datasource to a datagridview. When I make changes to the datagridview, and I use the getchanges(DataRowState.Modified) method, I get Nothing as the result, no matter what changes I made. I also tried using the table as bindingsource to the datagridview but this didn't help either. Can anybody please point me out what I'm doing wrong? Below is my code:
- usr is an object that contains a table named table
- dgv is a datagridview on my form
- the update sub is a member of usr which is called when a button on the form is clicked
BindingSource1.DataSource = usr.table
BindingSource1.RaiseListChangedEvents = True
dgv.DataSource = BindingSource1
public sub update()
dim tmpdt as new datatable
tmpdt = table.getchanges(DataRowState.Modified)
end sub
Thanks in advance.
|
|
|
|
|
"Steve Ballmer will deliver the keynote at Microsoft Tech-ed India 2009 Conference in Hyderabad. There will be announcements related to Windows 7, Silverlight 3, Microsoft Surface Computer, Tata Nano, IPL, etc. and Microsoft will also provide free certification to all onsite attendees.
What: Microsoft Tech-ed India 2009
Where: Hyderabad
When: May 13-15, 2009
Register: http://www.microsoft.com/india/teched2009
There is also a ""Top Architect"" contest being organized. http://virtualtechdays.com/toparchitect/default.aspx
Official Orkut group:-
|
|
|
|