469,366 Members | 2,407 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,366 developers. It's quick & easy.

Slow events

Given two .NET applications A and B. These two application communicate with
each other by using an object C:

A --> C <-- B

Application A has a listview. This listview can be refreshed by pressing F5
OR externally by receiving an event from C.
C will raise an event when it receives data from B.

So, B sends a message to C. And C raises an event that is "catched" by A.
When A receives the event it starts a refresh of the listview.
My problem is: The "F5"-refresh in application A is very fast. The Exteral
refresh of Application A goes very very very slow... (the listview is filled
line by line)

Has anyone an idea why ?


Nov 20 '05 #1
14 1344
* "Marten Van Keer" <ma****@c3.be> scripsit:
Given two .NET applications A and B. These two application communicate with
each other by using an object C:

A --> C <-- B

Application A has a listview. This listview can be refreshed by pressing F5
OR externally by receiving an event from C.
C will raise an event when it receives data from B.

So, B sends a message to C. And C raises an event that is "catched" by A.
When A receives the event it starts a refresh of the listview.
My problem is: The "F5"-refresh in application A is very fast. The Exteral
refresh of Application A goes very very very slow... (the listview is filled
line by line)


How do you "refresh" the ListView? Are you passing the new data to the
event handler?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #2

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:br************@ID-208219.news.uni-berlin.de...
* "Marten Van Keer" <ma****@c3.be> scripsit:
Given two .NET applications A and B. These two application communicate with each other by using an object C:

A --> C <-- B

Application A has a listview. This listview can be refreshed by pressing F5 OR externally by receiving an event from C.
C will raise an event when it receives data from B.

So, B sends a message to C. And C raises an event that is "catched" by A. When A receives the event it starts a refresh of the listview.
My problem is: The "F5"-refresh in application A is very fast. The Exteral refresh of Application A goes very very very slow... (the listview is filled line by line)
How do you "refresh" the ListView?


I thought you were the MVP... =)
Are you passing the new data to the
event handler?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Nov 20 '05 #3
What Herfried meant in his question was how are you going about refreshing
the ListView!

In other words, what are you calling "Refeshing the ListView"
--
Ibrahim Malluf
http://www.malluf.com
==============================================
MCS Data Services Code Generator
http://64.78.34.175/mcsnet/DSCG/Announcement.aspx
==============================================

"CJ Taylor" <no****@blowgoats.com> wrote in message
news:vu************@corp.supernews.com...

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:br************@ID-208219.news.uni-berlin.de...
* "Marten Van Keer" <ma****@c3.be> scripsit:
Given two .NET applications A and B. These two application
communicate
with each other by using an object C:

A --> C <-- B

Application A has a listview. This listview can be refreshed by
pressing
F5 OR externally by receiving an event from C.
C will raise an event when it receives data from B.

So, B sends a message to C. And C raises an event that is "catched"
by
A. When A receives the event it starts a refresh of the listview.
My problem is: The "F5"-refresh in application A is very fast. The Exteral refresh of Application A goes very very very slow... (the listview is filled line by line)


How do you "refresh" the ListView?


I thought you were the MVP... =)
Are you passing the new data to the
event handler?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>


Nov 20 '05 #4
With refreshing the listview I mean:

Go query the database , clear the listview and reload the data into the
listview.

"IbrahimMalluf" <Ib*****@malluf.com> wrote in message
news:OR**************@TK2MSFTNGP10.phx.gbl...
What Herfried meant in his question was how are you going about refreshing
the ListView!

In other words, what are you calling "Refeshing the ListView"
--
Ibrahim Malluf
http://www.malluf.com
==============================================
MCS Data Services Code Generator
http://64.78.34.175/mcsnet/DSCG/Announcement.aspx
==============================================

"CJ Taylor" <no****@blowgoats.com> wrote in message
news:vu************@corp.supernews.com...

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:br************@ID-208219.news.uni-berlin.de...
* "Marten Van Keer" <ma****@c3.be> scripsit:
> Given two .NET applications A and B. These two application communicate
with
> each other by using an object C:
>
> A --> C <-- B
>
> Application A has a listview. This listview can be refreshed by

pressing
F5
> OR externally by receiving an event from C.
> C will raise an event when it receives data from B.
>
> So, B sends a message to C. And C raises an event that is "catched"

by
A.
> When A receives the event it starts a refresh of the listview.
>
>
> My problem is: The "F5"-refresh in application A is very fast. The

Exteral
> refresh of Application A goes very very very slow... (the listview

is filled
> line by line)

How do you "refresh" the ListView?


I thought you were the MVP... =)
Are you passing the new data to the
event handler?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>



Nov 20 '05 #5
Yes... I got that...

Every now and then, espeically thursdays, I like to joke around with
herfried, especially with things he says that makes me laugh..

because he's so damn "proper". =)

love ya herfried, but not that way..
"IbrahimMalluf" <Ib*****@malluf.com> wrote in message
news:OR**************@TK2MSFTNGP10.phx.gbl...
What Herfried meant in his question was how are you going about refreshing
the ListView!

In other words, what are you calling "Refeshing the ListView"
--
Ibrahim Malluf
http://www.malluf.com
==============================================
MCS Data Services Code Generator
http://64.78.34.175/mcsnet/DSCG/Announcement.aspx
==============================================

"CJ Taylor" <no****@blowgoats.com> wrote in message
news:vu************@corp.supernews.com...

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:br************@ID-208219.news.uni-berlin.de...
* "Marten Van Keer" <ma****@c3.be> scripsit:
> Given two .NET applications A and B. These two application communicate
with
> each other by using an object C:
>
> A --> C <-- B
>
> Application A has a listview. This listview can be refreshed by

pressing
F5
> OR externally by receiving an event from C.
> C will raise an event when it receives data from B.
>
> So, B sends a message to C. And C raises an event that is "catched"

by
A.
> When A receives the event it starts a refresh of the listview.
>
>
> My problem is: The "F5"-refresh in application A is very fast. The

Exteral
> refresh of Application A goes very very very slow... (the listview

is filled
> line by line)

How do you "refresh" the ListView?


I thought you were the MVP... =)
Are you passing the new data to the
event handler?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>



Nov 20 '05 #6
* "CJ Taylor" <no****@blowgoats.com> scripsit:
How do you "refresh" the ListView?


I thought you were the MVP... =)


I am MVP, but I am not God...

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #7
* "Marten Van Keer" <ma****@c3.be> scripsit:
With refreshing the listview I mean:

Go query the database , clear the listview and reload the data into the
listview.


As asked before: How do you add the data to the listview when working
with the event handler? Do you pass it to the event handler? Or are
you querying the data in the event handler?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #8
* "CJ Taylor" <no****@blowgoats.com> scripsit:
Yes... I got that...

Every now and then, espeically thursdays, I like to joke around with
herfried, especially with things he says that makes me laugh..

because he's so damn "proper". =)

love ya herfried, but not that way..


;-)))

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #9
I am querying the data in the event handler..

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:em**************@tk2msftngp13.phx.gbl...
* "Marten Van Keer" <ma****@c3.be> scripsit:
With refreshing the listview I mean:

Go query the database , clear the listview and reload the data into the
listview.


As asked before: How do you add the data to the listview when working
with the event handler? Do you pass it to the event handler? Or are
you querying the data in the event handler?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Nov 20 '05 #10
* "Marten Van Keer" <ma****@c3.be> scripsit:
I am querying the data in the event handler..


How do you add it to the ListView? Doing that in the event handler
should not reduce the performance...

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #11
Cor
Hi Marten,

Maybe you can have a look what thread.priority can do for you.

Just a thought,

Cor
A --> C <-- B

Application A has a listview. This listview can be refreshed by pressing F5 OR externally by receiving an event from C.
C will raise an event when it receives data from B.

So, B sends a message to C. And C raises an event that is "catched" by A.
When A receives the event it starts a refresh of the listview.
My problem is: The "F5"-refresh in application A is very fast. The Exteral refresh of Application A goes very very very slow... (the listview is filled line by line)

Has anyone an idea why ?

Nov 20 '05 #12
* "Cor" <no*@non.com> scripsit:
Maybe you can have a look what thread.priority can do for you.


Why should that help?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #13
Cor
Hi Herfried,

Because I thought this is a very old problem and my thought was also that
Marten had told previously that it had to do with threads. The F5 is direct,
while with the threads they need to be busy processing.

Therefore maybe Marten can look if setting the prioritys from the threads to
high, he maybe could come closer to the problem.

But it is all guessing like the previous time we saw this problem.

Do you understand now why?

Cor
Why should that help?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Nov 20 '05 #14
* "Cor" <no*@non.com> scripsit:
Because I thought this is a very old problem and my thought was also that
Marten had told previously that it had to do with threads. The F5 is direct,
while with the threads they need to be busy processing.

Therefore maybe Marten can look if setting the prioritys from the threads to
high, he maybe could come closer to the problem.

But it is all guessing like the previous time we saw this problem.

Do you understand now why?


Yep. I only wanted a confirmation of my thoughts...

;-)

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #15

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Kurt Bauer | last post: by
2 posts views Thread by Andante.in.Blue | last post: by
2 posts views Thread by Chris | last post: by
4 posts views Thread by Sean Hoffman | last post: by
4 posts views Thread by David Tilman | last post: by
1 post views Thread by Jake Pearson | last post: by
4 posts views Thread by frizzle | last post: by
2 posts views Thread by marconline | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.