PC Review


Reply
Thread Tools Rate Thread

Bug in framework?

 
 
nntp
Guest
Posts: n/a
 
      22nd Jun 2005
I'm having a very funny behaviour in my application.

My windows App running on XP sp2, has data from various table.

If I make changes to only 1 table on the form and click save, it gives an
error:

"Object reference not set to an instance of an object."

If I debug the code, it crashes on the line with "*" (I'm showing the code
above, so that it would give a better idea)

public void UpdateDataSet()

{

// Create a new dataset to hold the changes that have been made to the main
dataset.

ClientManagementPro.dsClientT objDataSetChanges = new
ClientManagementPro.dsClientT();

// Stop any current edits.

this.BindingContext[dvClient,"relClient-ClientAddress"].EndCurrentEdit();

this.BindingContext[dvClient,"relClient-ClientNote"].EndCurrentEdit();

this.BindingContext[dvClient,"relClient-Action"].EndCurrentEdit();

this.BindingContext[dvClient,"relClient-Child"].EndCurrentEdit();

this.BindingContext[dvClient,"relClient-Job"].EndCurrentEdit();

this.BindingContext[dvClient].EndCurrentEdit(); *
<------------------- It crashes here (mind u dvClient is the only thing
that is modified).



Now, after it gives that error, if I click save, it goes through just fine!

Again this only happens sometimes, if I edit the same fields on the same
tab, it works just fine.



I'm completely lost here and have no clue how to troubleshoot this, any
insights would be highly appreciated.



Thanks



HS


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Microsoft .NET Framework 3.5 Service Pack 1 and .NET Framework 3.5 Family Update for .NET versions 2.0 through 3.5 (KB951847) x86 Dr. Indera Windows XP General 14 5th Jul 2010 07:15 AM
Any suggestion for directory layout of project support both Full.NET Framework and Compact Framework? ping235 Microsoft C# .NET 0 24th May 2007 03:22 AM
Any suggestion for directory layout of project support both Full.NET Framework and Compact Framework? ping235 Microsoft Dot NET Framework 2 22nd May 2007 02:35 AM
Upgrade from VS2003(Framework 1.1) to VS2005(Framework 2.0). Easy Peasy or Nasty Basty? ChrisM Microsoft Dot NET 0 29th Jun 2006 04:03 PM
simple TCP socket connect (emulator - framework FAIL); framework - framework - Works [Help will be compensated] Yechezkal Gutfreund Microsoft Dot NET Compact Framework 0 16th Jul 2003 06:28 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:08 AM.