|
According to both of your answer.I have my own result,my application is low performance...
Thanks!
|
|
|
|
|
Is it ? I'll ask a lot of questions now, you dont have to provide the answers, I just
want to make you think a bit more about it.
By how much, i.e. what kind of speed up would you want ?
Do you think that is achievable ?
If so, why dont you have it right now, i.e. where are you loosing it ?
Is there a particular part of your app responsible for its (lack of) performance ?
I recall your CPU load was low, so this seems to indicate you are mainly waiting
on something. Any idea what ? (the database ? the network ? running out of sockets ?
having a resource leak ? swapping virtual memory all the time ?)
Is the UI responsive all the time (if not you definitely did something wrong) ?
Hope this helps.
Luc Pattyn
|
|
|
|
|
I would have not defined it any better!!! Thumbs up!
|
|
|
|
|
What you're seeing is the working set and this should not be trusted. If you're truly interested in your managed application's performance, you should take a look at using various .NET performance counters in your perf monitoring tool (perfmon in Windows) and add those counters.
Additionally, on MSDN you'll find links and articles to various performance tools that peer inside of managed applications and show you allocations or even profile your code to show you where your heaviest calls are, or where your application spends the most time. Optimizing based on profiling is an extremely useful tool.
As far as the working set for managed Windows Forms applications goes, if you minimize and then restore your app you'll most often notice that number go down. A lot of this is just how the memory manager allocates memory, and how and when the GC collects. Again, you can find lots more data about all that in MSDN at http://msdn.microsoft.com.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Customer Product-lifecycle Experience
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
My Software is installed on a terminal server. So 5 users connect to it at the same time.
I want to refer each user that an instance of the programm he wants to start is already running.
Now i have the Problem that the first user starts the programm and all users after him get the message they've already started.
I thought, comparing the owner of the process with the current user would make it better, but i still get the processes for all users(depending on the machine) and not for the current windows user.
i hope somebody can parse what i want with this
|
|
|
|
|
Hi,
you could create a Mutex with a name that includes your process name (in order not to interfere with other programs that might do similar things) AND the user's name
(e.g. from Environment.UserName). And then try a WaitOne on it:
string name="myProgName"+Environment.UserName;
Mutex m=new Mutex(false, name);
if (myMutex.WaitOne(1,true)) {
... this is my first instance
} else {
... I already have an instance running
}
You should keep m as a global variable so its life spans your app's life.
I typically have a class that does such singleton test before I create my main form,
hence in the static void Main() method.
PS: you could use Environment.GetCommandLineArgs()[0] to obtain your prog name
(actually its exe's file name).
Hope this helps
Luc Pattyn
|
|
|
|
|
Hi ,
I am using vs.net 2005
i run a windows application after running
My problem is when i click the top of the form th form is noveable.
i want to fixed it .
i set minize box= true
and maximize box=true
plz help me
|
|
|
|
|
To prevent the form from being moved, you need to hide the entire non-client window frame. You can do this by changing FormBorderStyle to FormBorderStyle.None like so:
using System;
using System.Windows.Forms;
class MainForm : Form
{
static void Main()
{
Application.EnableVisualStyles();
Application.Run(new MainForm());
}
MainForm()
{
FormBorderStyle = FormBorderStyle.None;
Button btn = new Button();
Controls.Add(btn);
btn.Text = "&Exit";
btn.Click += delegate(object sender, EventArgs e)
{
Close();
};
}
}
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Customer Product-lifecycle Experience
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
Hey,I'm new for the group, I have a little problem with menuItems.
I'm developing a pocket pc application in vb.net (compact framework), so I have an indefinited number of "Inherits System.Windows.Forms.Control" and
only one "Inherits System.Windows.Forms.Form" alias the MainForm.
In this MainForm I have created the menu and I have added the menuItems visible for all the "Controls".
I want personalize the menuItems and render visibles some menuItems in some controls and not in other.
which is the best way to improve my code?
I've tryed to disabled my menuItems with the fragment "me.menuItem.disabled = true" in maiform, and it give back correcty disabled the component in every forms, but if I want render it disabled in some other form, what should I do?
thank to everybody!
daniele castrovinci
danael
-- modified at 7:40 Wednesday 14th February, 2007
|
|
|
|
|
Hi,
I am using vs.net with windows application. My screen resolution is 1024 by 768 pixels. My form size is fixed to 1024 by 740. What i want is if i increase the resloution form will fit to the screen automatically. If i decrease the resolution, the scrollbars have to be appear. How to this. ?
Plz help me urgent.
|
|
|
|
|
Hi,
I suggest you have a look at SystemEvents.DisplaySettingsChanged event.
Luc Pattyn
|
|
|
|
|
Hi
My idea is using Anchors. Each control will be having one property called anchor. Set the anchor. When the form is resizing controls will also resize
Cheers
Navaneeth!!
|
|
|
|
|
Just a general query, as i am under the illusion that with the .net framework installed on the host computer that vb.net applications can run with it.
Can someone clarify this for me please, and if it is possible how is it easily done?
Thanks
|
|
|
|
|
Visual Studio.NET is not required to run .NET applications. If it was, then each user would be required to license a copy which, considering the cost of VS, would be a spectacular own goal. You don't even need VS.NET to write .NET applications. You code, if you want, write them using Notepad. I'm not saying you should, only that you could.
Borland have a .NET IDE and there is a free one called SharpDevelop.
Anyway, to run the application all you need to do is compile it up as an EXE and run it on a machine with the appropriate version of the .NET framework installed.
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
I need a Charmap-like control in .NET.
I want to display a List<char> in this control, to display a "select a special character" dialog to the user.
What would be the best approach to display the list in a similar way like in the charmap.exe? Is there a control I can user for this (didn't find one by now) or do I have to write this control from scrath by myself?
Thanks in advance,
Sebastian
|
|
|
|
|
PhoenixHawk wrote: Is there a control I can user for this
Haven't come across one.
PhoenixHawk wrote: I have to write this control from scrath by myself?
Looks like it, perhaps just using the DataGridView is enough?
|
|
|
|
|
l you have to do is shell out to charmap.exe.
This applet puts your selected symbol into the clipboard buffer and then you can paste them anywhere you want.
See => ©«®¶Æ
|
|
|
|
|
Hello all,
I've been looking for an answer to this all over the internet, so I think I already know the answer to this. I just need to be reassured.
So, when a Kill() command is invoked on a running process, can that process trap/catch the signal, or is there an event that is raised before the process is killed? Or is there perhaps a similar command to Kill that can be sent from one process to another which can then be caught; something similar to the kill signal overloading on POSIX system? (ie. sigusr1)
BTW, I need to know if this is possible using the .NET framework 1.1
Thanks.
|
|
|
|
|
There is no signal or event to the process. The target process is stopped and the memory it occupies is freed. There is nothing the target process can catch and do anything with.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi
i am working in .net 1.1 with vs2003 and my domain is travel in which we communicate with the GDS's to get available fares of Flight, Hotels etc..
i am working on a web service which returns the available fare from the GDS. it 's working fine in .net 1.1 with vs2003 but when i migrated my WS from .net 1.1 to .net 2.0 i am getting System.FormatException while converting datetime from string using DateTime.Parse method. it was not happening earlier when i was using .net 1.1. My WS converted from vs2003 to vs2005 using a wizard and it doesn's shows a single error.
i did lots of googling on this issue but didnot gets any help ,
so any reply in the matter will be highly appericiable.
thanks
vishal sharma
vishalsharma808@hotmail.com
Thanks & Regards
Vishal Sharma
vishalsharma556@yahoo.co.in
|
|
|
|
|
IMHO a problem like this does not need a lot of googling, what you should do is
add some code to the try-catch that is (or now should be) surrounding the failing
DateTime.Parse(someString) so you can see what is in someString, and then take
appropriate corrective action.
If you then fail to fix the problem, publish the value of someString that makes
things fail and you will get more help.
Luc Pattyn
|
|
|
|
|
Hi all
in my application i need to desply output in CommandPrompt..
and also i need to take the commands which r desplayed in command prompt..
please can u let me know.
How to desply Output in CommandPrompt....In WINDOWS APPLICATION
Thnk in advance
prashanth,
s/w Engineer,
Syfnosys.
prashanth,
s/w Engineer,
Syfnosys.
|
|
|
|
|
Is Console.WriteLine(***) ?
wang
|
|
|
|
|
Console.WriteLine(someString) will send someString to the Console.
The console is:
- the output pane when running inside Visual Studio
- the console windows when executing from a DOS command window
- absent when simply double-clicking the exe in Windows Explorer.
Luc Pattyn
|
|
|
|
|
Hi,
is it possible to process each individual word in a microsoft word document from VB.NET.
For example, if i have a phrase say 'HE IS A BOY', is it possible for VB.NET to identify each single word??
can anyone help??
Thanks in advance
Regards
Nitin
|
|
|
|