|
|
[8.2] Unexpected NullReferenceException after migration to IG 2008 vol 2
-
06-19-2008 8:13
|
|
-
systema_1099


- Joined on 06-19-2008
- Points 470
|
[8.2] Unexpected NullReferenceException after migration to IG 2008 vol 2
I migrated a win-application from IG 2008 vol 1 to IG 2008 vol 2. After compiling and start I get a NullReferenceException on initializing a new Form. In the form is a UltraGrid with an UltraDataSource (dsMain) that will be filled manualy. The Exception is thrown in the InitializeComponent method of my form. private void InitializeComponent() { // ... ((System.ComponentModel.ISupportInitialize)(this.dsMain)).EndInit();
// ... } private Infragistics.Win.UltraWinDataSource.UltraDataSource dsMain;
The StackTrace is: bei Infragistics.Win.UltraWinDataSource.UltraDataSource.UDSBindingSource.SetBindingSources(UltraDataBand band, Dictionary`2 bindingSources) bei Infragistics.Win.UltraWinDataSource.UltraDataSource.UDSBindingSource.InternalSetBand(UltraDataBand band, Dictionary`2 oldBindingSources) bei Infragistics.Win.UltraWinDataSource.UltraDataSource.OnDeserializationComplete(UltraDataRowsCollection deserializedRows, Dictionary`2 oldBindingSources) bei Infragistics.Win.UltraWinDataSource.UltraDataSource.System.ComponentModel.ISupportInitialize.EndInit() bei MyApp.MyForm.InitializeComponent() in D:\MyApp\MyForm.Designer.cs:Zeile 360.
I hope someone can help me! Michael
|
|
-
-
[Infragistics] Mike Saltzman


- Joined on 10-26-2007
- Melville, NY
- Points 89,377

|
Re: [8.2] Unexpected NullReferenceException after migration to IG 2008 vol 2
Answer
Hi Michael, Does this happen every time? Can you duplicate this in a small sample project? If so, you should Submit an incident to Infragistics Developer Support so they can check it out. If this worked in the previous version, it seems like it's probably a bug.
Mike Saltzman R&D Engineer Infragistics, Inc.
|
|
-
-
systema_1099


- Joined on 06-19-2008
- Points 470
|
Re: [8.2] Unexpected NullReferenceException after migration to IG 2008 vol 2
Hi Mike, 1) Yes it does every time, when I start my small demo (see attached archive IGDemo.zip). 2) Unfortunately I found an other bad thing about the new Version of IG. The visual studio designer add every time when I modify something in the grid (like the size of a column) some lines of code to the designer file (MyForm.Designer.cs) that can't be compiled: // // gridMain // this.gridMain.DataSource = this.bsMain; appearance2.BackColor = System.Drawing.Color.White; appearance2.BorderColor = System.Drawing.Color.SlateGray; ApplyResources(appearance2.FontData, "appearance2.FontData"); ApplyResources(appearance2, "appearance2");
Is this an bug? Michael
|
|
-
-
[Infragistics] Mike Saltzman


- Joined on 10-26-2007
- Melville, NY
- Points 89,377

|
Re: [8.2] Unexpected NullReferenceException after migration to IG 2008 vol 2
That looks like a bug I have come across a couple of times when upgrading projects from earlier version of visual Studio into VS2008. It's nothing to do with the grid or the Infragistics controls as far as I know.
Try changing it to: resources.ApplyResources(appearance2.FontData, "appearance2.FontData");
Mike Saltzman R&D Engineer Infragistics, Inc.
|
|
-
-
systema_1099


- Joined on 06-19-2008
- Points 470
|
Re: [8.2] Unexpected NullReferenceException after migration to IG 2008 vol 2
Could you reproduce the NullReferenceException with my sample? Michael PS: I use VS 2005
|
|
-
-
[Infragistics] Mike Saltzman


- Joined on 10-26-2007
- Melville, NY
- Points 89,377

|
Re: [8.2] Unexpected NullReferenceException after migration to IG 2008 vol 2
Oh, I didn't notice the sample at first. I just ran it now and yes, I can reproduce the NullReferenceException. This appears to have been introduced by a recent bug fix. You should Submit an incident to Infragistics Developer Support. If you include your same sample project you have attached here, they should be able to track it down and get it fixed.
Mike Saltzman R&D Engineer Infragistics, Inc.
|
|
-
-
-
[Infragistics] Mike Saltzman


- Joined on 10-26-2007
- Melville, NY
- Points 89,377

|
Re: [8.2] Unexpected NullReferenceException after migration to IG 2008 vol 2
Answer
If you are experiencing the same issue, you should conteact Developer Support. They can update you on the status of the issue and notify you when a fix becomes available.
Mike Saltzman R&D Engineer Infragistics, Inc.
|
|
-
-
oxygenating


- Joined on 09-24-2008
- Points 25
|
Re: [8.2] Unexpected NullReferenceException after migration to IG 2008 vol 2
I’ve observed this problem too. When I make any changes in the graphical designer in VS2008(german) SP1 the automatic updated code in the file "MainForm.Desiger.cs" does generate these lines in the UltraWinGrid v8.2 section.
ApplyResources(appearance21.FontData, "appearance21.FontData"); ApplyResources(appearance21, "appearance21"); ApplyResources(appearance22.FontData, "appearance22.FontData"); ApplyResources(appearance22, "appearance22");
These lines don’t compile.
Changing manually to resources.ApplyResources(appearance21.FontData, "appearance21.FontData"); solves the problem.
The UltraExplorerBar v8.2 in the same project has always the right "resources." prefix resources.ApplyResources(ultraExplorerBarItem1, "ultraExplorerBarItem1");
Best regards
|
|
-
-
systema_1099


- Joined on 06-19-2008
- Points 470
|
Re: [8.2] Unexpected NullReferenceException after migration to IG 2008 vol 2
Good luck if you change your designer file! Changing it manualy is not a solution, because it happens every time when you change the content of the form in the designer. This meansmove a component or resize something.
Unfortunalty Infragistics told me: Hello,
Our developers have completed their review of development incident BR35349. They have determined that this is "not a bug" for the following reasons:
[This may be a bug in Visual Studio, but is has nothing to do with our controls. I don't know why VS is removing the "resources." before ApplyResources, but this is handled by VS, not by us. In my experience, if you simply put the word "resources." back in, it will work fine and it does not get removed the second time.
Also, I don't think this has anything to do with upgrading the Infragistics components. This has only happened to me when I upgraded a project from one version of the VS to another.]
I have marked this incident as "Awaiting Customer Action" in our incident tracking system, pending your approval of closure. If you have further information regarding this issue or require further explanation of the conclusion, please respond to this message so that I can research further and provide you with the appropriate feedback in this regards.
Sincerely, Saurabh Developer Support Engineer Infragistics, Inc.
After i sent them a video they resubmitted this as a bug. But since 1 Month I heard nothing about any progress. Today I looked to "My Supported Requests" and I found: We don't have any support requests associated with this account Our records show that you have not yet submitted any support
requests using this account. If you'd like to submit a request, please
head on over to the New Support Request page and let us know.
What does it mean? They fixed it or they ignored it??? Michael
|
|
-
-
[Infragistics] Mike Saltzman


- Joined on 10-26-2007
- Melville, NY
- Points 89,377

|
Re: [8.2] Unexpected NullReferenceException after migration to IG 2008 vol 2
The issue with ApplyResourcs was indeed a bug in some of the Infragistics controls and has been fixed. Make sure you download the latest Hot Fix. If that does not help, or if the Hot Fix is not yet available, then you should contact Infragistics Developer Support and ask to be notified when the Hot Fix does become available. I'm not sure why the incident doesn't show up on your support requests page any more.One guess is that the issue was fixed andyou were sent an e-mail about the Hot Fix, but perhaps the e-mail was lost or got filtered out by a spam filter or something. If you contact Developer Support, please include a link to this forum
post so they can see we have already had a discussion on the issue. There is no question that this was a bug and has been fixed and they tell you any differently, please reply here and let me know.
Mike Saltzman R&D Engineer Infragistics, Inc.
|
|
-
-
[Infragistics] Mike Saltzman


- Joined on 10-26-2007
- Melville, NY
- Points 89,377

|
Re: [8.2] Unexpected NullReferenceException after migration to IG 2008 vol 2
Answer
FYI - I just took a look at the original report (BR35349) and it appears that this issue has been fixed internally, but the Hot Fix is currently in testing and hasn't been released yet. So it will be fixed in the next hot fix. Contact Infragistics Developer support to get on the notification list.
Mike Saltzman R&D Engineer Infragistics, Inc.
|
|
-
-
[Infragistics] Vince McDonald


- Joined on 08-31-2007
- Princeton, NJ
- Points 9,144

|
Re: [8.2] Unexpected NullReferenceException after migration to IG 2008 vol 2
systema_1099:After i sent them a video they resubmitted this as a bug. But since 1 Month I heard nothing about any progress.
Today I looked to "My Supported Requests" and I found:
We don't have any support requests associated with this account
Our records show that you have not yet submitted any support requests using this account. If you'd like to submit a request, please head on over to the New Support Request page and let us know.
What does it mean? They fixed it or they ignored it???
Developer Support recently moved to a new support tracking system. The page you're looking at only shows cases that were entered in the new system (which it seems you have none), and can't show any cases in our old system. If your issue were fixed and possibly closed, you'd see a "Resolved" tab that would show all of your closed support requests, and an "Active" tab showing those that haven't been closed.
Can you provide me with an incident number for when you first submitted this? I'll be able to determine if this was something that may have been lost during the transfer, or if there simply have been no status updates to provide. My suspicion, without looking in more detail, is that we've probably fixed this (as Mike mentioned) but haven't yet released a hot fix containing the change. Wiht the incident number, I'll be able to see what actually happened.
By the way, if you ever encounter a problem with a support request, such as if you don't hear from it in a long time, you can contact me at dsmanager@infragistics.com and I'll be happy to help. Generally, you can also request for information or escalation by updating the case itself through our web interface, but in this specific situation, there isn't a case in our current system for you to update.
Vince McDonald Manager of Developer Support, MCP Infragistics, Inc. Was this post helpful? Please let me know by using the star ratings and the "Answered" button from the forum's web interface. Need help? Find the various ways you can ask for help from Infragistics.
|
|
Page 1 of 1 (13 items)
|
|