473,387 Members | 1,512 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,387 software developers and data experts.

Hiccup in master-detail display

Hello,

I have a strange performance delay of about 2 sec's in moving to the next
row. I use multiple forms with each master-detail table relations. The
master-table displays it's table rows in databound textboxes, the detail
tables in datagrids, and of course relations defined between the master and
detail tables. All the tables are part of one dataset (per form). The
following happens.

When moving to the next tablerow (next record) I get an performance delay of
about 2 sec's: only if one of the (child)datagrids is empty (no records to
show) and this happens only one time per application-startup. If I end this
form and startup the same or another form the problem doesn't exist any more,
until the program is stopped and started again. So it happens only one time
per appliation-use, and is definitely bound to the "empty detail grid".
Filling the empty grid with one record, the problem moves to another master
row having an "empty detail grid". At the moment of this delay the
application is not getting data from Sql-sever (checked via a trace), and I
found that running my projects on an VS.NET-2002 with framework 1.0 machine
does NOT show this problem. What can cause this problem?

My machine: XP-Pro + VS.NET 2003 Framework: 1.1.4322 SP1

Nov 21 '05 #1
2 1352
I'm not sure what is causing your problem, but the behavior is similar
to that of an exception being thrown. The first time an exception is
thrown it takes a second or two and then thereafter, that delay is
gone, unless you restart the app.

Could there be an exception being thrown down in your code somewhere
that is just being swallowed and not logged or reported? Perhaps when
the detail grid is empty an exception is being thrown that is
subsequently swallowed up.

Just a thought.

Nov 21 '05 #2
Thanks for your suggestion. It helped me a step forward. I did the following:
in the Debug menu -> Exception... I put the option "when the exception is
thrown" to "Break into the debugger", for all kind of exceptions. Running my
project shows at the critical point an exception:

A first chance exception of type "System.IndexOutOfRangeException" occurred
in system.windows.forms.dll. Additional information: Index was outside the
bounds of the array.

At this critical point the code is executing the following line:
Me.BindingContext(mDv1).Position += 1
hereby mDv1 declared as DataView

Have you any idea how to go further to get this solved?

"Chris Dunaway" wrote:
I'm not sure what is causing your problem, but the behavior is similar
to that of an exception being thrown. The first time an exception is
thrown it takes a second or two and then thereafter, that delay is
gone, unless you restart the app.

Could there be an exception being thrown down in your code somewhere
that is just being swallowed and not logged or reported? Perhaps when
the detail grid is empty an exception is being thrown that is
subsequently swallowed up.

Just a thought.

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jurrie | last post by:
Hi all, I use apaches FOP to translate an XML-document into a PDF-document. I use repeatable-page-master-alternitives, but FOP gives some strange errors: Unsupported element encountered:...
0
by: webhosting | last post by:
After a failure, we promoted a slave to master. This included renaming the server to the old master's name and ip address, but leaving the server id alone. The new master works fine. We...
4
by: Steve Franks | last post by:
I have this cool nested master page scenario working great. However what is the correct way to be able to access a strongly typed property at the top level master from a content page that has a...
2
by: Jon Spivey | last post by:
Hi, Using VS 2005/VB.net. I need to add a meta description tag and change a stylesheet link from a page based on a master page. Found this article...
3
by: ivanpais | last post by:
Hi, I have a Web User Control, Lets say "Foo.ascx", that contains a button "btnFoo". I have a Master Page "Bar.master", that has a label "lblBar". This label is exposed by a public property...
17
by: Rob R. Ainscough | last post by:
Again another simple concept that appears NOT to be intuitive or I'm just stupid. I've read the WROX book and the example doesn't actually show how the .master page links in the other content...
4
by: melton9 | last post by:
I have a form that updates once a second. When it updates there is no other processing going on. It generally works fine, but a few times a min sometimes less, sometimes more it will hiccup and...
7
by: Just Me | last post by:
Hi I have a master page with a control on it, but I need to set a property of that control from the content. my master page is called Admin.Master and the class is Admin. I have tried this
5
by: =?Utf-8?B?bXVzb3NkZXY=?= | last post by:
Hi guys I'm trying to make my code as streamlined as possible, and add CSS file references dynamically when they are required, for example, if a page contains a webcontrol, then the related CSS...
4
by: harijay | last post by:
Hi I am new to writing module and object oriented python code. I am trying to understand namespaces and classes in python. I have the following test case given in three files runner , master and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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,...

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.