Re: Application hang after screensaver
- From: mateusz.zajakala@xxxxxxxxx
- Date: Wed, 10 Oct 2007 23:22:26 -0700
On 5 Paź, 20:18, Peter Duniho <NpOeStPe...@xxxxxxxxxxxxxxxx> wrote:
And as far as which class the static method is in, the call would be the
same either way. The only real difference here is whether the function
is static or not. A static function is (_very_ slightly) more efficient
because no "this" reference needs to be passed in the call. But which
class a static or instance method exists in is irrelevant as far as
performance goes.
(And frankly, the performance difference between static and instance
methods is so tiny it's not worth consideration IMHO; generally
speaking, whether to make a method static or not should be a design
decision, not a performance decision).
That's what I wanted to know. Thanks for explenation.
you need to fix your code so that it uses an existing instance of
your form class, rather than creating a new one.
That's what I'll do. After your explenation I know exacly where I did
my mistakes and what to do with it.
So thank you for your time and answers.
Mateusz Zajakala
.
- References:
- Application hang after screensaver
- From: mateusz . zajakala
- Re: Application hang after screensaver
- From: mateusz . zajakala
- Re: Application hang after screensaver
- From: mateusz . zajakala
- Re: Application hang after screensaver
- From: Peter Duniho
- Re: Application hang after screensaver
- From: mateusz . zajakala
- Re: Application hang after screensaver
- From: mateusz . zajakala
- Re: Application hang after screensaver
- From: Peter Duniho
- Re: Application hang after screensaver
- From: mateusz . zajakala
- Re: Application hang after screensaver
- From: Peter Duniho
- Application hang after screensaver
- Prev by Date: Re: Future of C#
- Next by Date: Re: Break thread sleep
- Previous by thread: Re: Application hang after screensaver
- Next by thread: Military Time conversion
- Index(es):
Relevant Pages
|