473,395 Members | 1,639 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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 1448
* "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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: spidey | last post by:
Something weird is happening here... when I run my code from the Visual C++ environment it is 3 to 4x faster than running the same code from the DOS command line. Any explanation why is this...
5
by: Kurt Bauer | last post by:
I have an ASP group calendar application which pulls calendar data from Exchange via webdav into an XML string. I then loop the XML nodes to populate a collection of appointments. Finally I use...
2
by: Andante.in.Blue | last post by:
Hello, I have just inherited a very undocumented legacy database, developed in and still running on Access 97. The file is an MDB file, with no security. It is placed in a shared directory on a...
2
by: Chris | last post by:
I'm using a DataTable in my application. I am able to load rows into the DataTable quickly. What's puzzling me, however, is that when I update a set of cells in the DataTable, the update is really...
4
by: Sean Hoffman | last post by:
Framework 1.1 SP1. Page.xml is about 1.5mg. m_oXSLTransform.Transform takes about 2 minutes. When Page.xml is trimmed down to a smaller doc, it takes about 2 seconds. Same code ran in about...
4
by: David Tilman | last post by:
I've created a web application using ASP .NET that creates tables similar to Gantt charts. There are 5 tables will 180 cells each, so there are about 900 cells on the web page. I had javascript in...
1
by: Jake Pearson | last post by:
Hi, I just upgraded to VS 2005 from 2003, and builds have become much slower (like 10 times worse). I have noticed 2 things that I can not explain: 1. Everytime I build, I get a message on my...
4
by: frizzle | last post by:
Hi group. I have a news management system, with a mySQL backend. I tested it yesterday with 1.000.000+ records, testing my url system. I pulled out records calling them by the url field. It was...
2
by: markszlazak | last post by:
I'm a relatively slow response of table cells changing their background color with mouseover/our in IE6 (Win 2K) but the response is fine (fast) in Firefox. Why? The code is below. Sorry about the...
2
by: marconline | last post by:
Hi everyone and thanks for your help. My web form is formed by a master page, which contains some web user controls. The same web form contains other web user controls. This page is very slow....
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.