|
hello all...
An application built on C#.net2.0,i m running this application Windows Server 2003 Enterprise Edition with Sp2..The Application some Times Stops responding
and disappears(Close) during running..can any one plz tel me actual solution or cause of this problem..!
an urgent reply will be appreciated..
zshan
-- modified at 7:38 Friday 2nd November, 2007
|
|
|
|
|
Don't expect solutions without clear explanation of the situation and the error.
What DB do you use?
How do you access the DB?
How many users ?
Do you handle and log exceptions?
|
|
|
|
|
well every line of code is in try and catch block,the application was running fine before updating the windows server 2003,but after updating the windows it's creating problems like hang and gets close during running..before throwing any exception or with out writing any thing in the logs..!!!!
|
|
|
|
|
Maybe you should use profiler and look at performance counters, locks.
Make sure that you have the latest service packs installed.
|
|
|
|
|
How to convert System.Type.DateTime To SqlDbType.DateTime
Yogesh Pekhale
pekhaleyogesh@gmail.com
|
|
|
|
|
If you are using a stored procedure with a SqlDbType.DateTime parameter in it then you can directly assign your DateTime variable into the parameter. You are using parameters aren't you?
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Till now I was thinking that as System.Int32 is Valuetype, it will be stored in stack. But while profiling the application I have seen instances of System.Int32 in the heap.
Can anyone give a little clarification on this?
Thanks
*jaans
|
|
|
|
|
Here's the confusing thing - value types are always placed where they are declared. If they are declared within a method, they will always appear on the stack. If it's declared outside a method, but inside a reference type, it will be placed within the reference type (on the heap).
Confusing huh?
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
|
J@@NS wrote: BTW I have came across an interesting article
Excellent. Well found.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
i have code to save the data to new excel files i need to save and append tha data to already saved file using c# can any one help in this for me
Ramya
|
|
|
|
|
There isn't a whole lot different between opening an existing file and saving new data to it and opening a new file and saving new data to it. If you already have code to do one then the other is pretty much a cut and paste job . . .
is there something specific you're having a problem with?
|
|
|
|
|
Hi all,
I am trying to make the first letter to display as Capital,
i.e when user enters a text in the TextBox the first letter should be capital and the rest should be as they are.
e.g
this is a good example.
should be,
This is a good example.
Thanks,
Prashanth
|
|
|
|
|
The simplistic way:
Capture the keypress event, then read in the text that's already in the textbox. If this is the first alphabetic character, then convert it to uppercase using the string functions. Put the text into the textbox, then set the handled to true.
This is an extremely simplistic way that doesn't take into account things like the user entering text and then moving back to the start of the textbox and entering more text. A more comprehensive way requires you to change the contents of the textbox when it loses focus. That way, you can always find what the first character was - however, this is a single shot solution.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Thanks alot for ur suggestion..
but I want to make the very first letter that the user is going to enter should be Capital..
Not the one thatz already in textbox , I want to make the one which user is going to enter.
thanks
|
|
|
|
|
So you need a psychic handler?
The handler will instinctively know which letter you are ABOUT to press and set CAPS LOCK ON and then turn it off once the letter has been pressed.
Cool.
I still remember having to write your own code in FORTRAN rather than be a cut and paste merchant being pampered by colour coded Intellisense - ahh proper programming - those were the days
|
|
|
|
|
Surely it can know which letter you just pressed, at what position, and change that letter to a capital?
|
|
|
|
|
Thanks, but
I don't know whatz psychic handler,
and How should I configure this handler to make the very first letter to make to CAPITAL.
as I am new here,please be clear.
thanks
|
|
|
|
|
Just like Microsoft Word Automatic Grammar/Spelling check?
|
|
|
|
|
psychic handler, not perfect. but it works
<br />
textbox1.KeyDown +=new KeyEventHandler(Psychic_Handler);<br />
<br />
private void Psychic_Handler(object sender, KeyEventArgs e)<br />
{<br />
if (((TextBox)sender).Text.Length == 0)<br />
{<br />
((TextBox)sender).Text = e.KeyCode.ToString().ToUpper();<br />
e.SuppressKeyPress = true;<br />
((TextBox)sender).SelectionStart = 1; <br />
}<br />
}<br /> If it' stuck, DO NOT pull harder!
|
|
|
|
|
Hi. This would be easy way to do first char in CAPS....
char ci = Convert.ToChar(TextBox1.Text.Substring(0, 1));
TextBox1.Text = TextBox1.Text.Remove(0, 1);
TextBox1.Text = ci.ToString().ToUpper() + TextBox1.Text;
Thanks
|
|
|
|
|
|
hi
all i was asked in interview how often the garbage collector
i.e. gc.collect() will get invoked
i know why? what? about garbage collectore but
interviewer asked me will it be for every 5 minutes the method invokes
can anyone help me...
bye
|
|
|
|
|
When 1) a memory allocation request exceeds the current generation 0 segment capacity (or because of an exlicit call to GC.Collect) and 2) the object is no longer reachable.
If we exclude GC.Collect calls, this means that a GC will only occur on allocation. In other words, objects may well be ready to be released but no allocations are made, meaning no GCs will occur, so memory usage will stay flat.
*jaans
|
|
|
|
|