Hatem Sioud
Hatem Sioud

Reputation: 1

BrightIdeasSoftware MungerException

I have two applications A and B which call the same dll (C), in this (C) I have a UC (E) which use another UC (D) as a Popup where is an objectlistview,

When i use E in A everything is ok. When I use E in B, when E call D I have a BrightIdeasSoftware.MungerException (see image below) it tells 'try to access to undefined method'

enter image description here

Upvotes: 0

Views: 1015

Answers (4)

S0und
S0und

Reputation: 377

The easiest way to figure out which Property/Aspect is causing this is:

  1. Check ON the Common Language Runtime Exceptions in the Exceptions Settings

  1. Place two breakpoints here. MungerException happens at the second breakpoint. Pin this.AspectName variable, and see if it reaches the 2nd breakpoint or not.

enter image description here

Upvotes: 0

Joel Crosby
Joel Crosby

Reputation: 21

This happens when the Model objects you assign to the list i.e using ListView.SetObjects() doesn't implement a property or method that the column AspectNames are set too or that those properties/methods are declared private.

Makes sure the AspectName properties on your Object Listview columns match the properties on your objects and that those properties are declared public.

Upvotes: 1

Hatem Sioud
Hatem Sioud

Reputation: 1

Thank you for answers.

So Finally the problem is solved but i didn't know why and how? so this what happens :

First, before posting my question, I've all ready check that my properties are public and matches with the AspectNames Columns. Since I didn't understand the source of the problem, and I needed go forward, I've install the dotnetbar2 tool to replace the listbox of objectlistview.

Just after the install of the tool, my visual studio "passed away", no way to view codes, i've got just a black screen, i've become crazy, i didn't understand whats happen, so i decided to uninstal the devnotbar2 tool and use a classic list view of the MS framework. But what happens is strange my problem with the Objectlistview disappear, i've did change anything in my code but there's no more Munger Exception.

Anyone have an explication of what it happens? And how, the install and the uninstall of a tool could change something? And why my visual studio became crazy after the install of the dotnetbar? It's very useful tool, and I want to use it but i'm afraid that it make troubles again.

Upvotes: 0

Kraeven
Kraeven

Reputation: 21

Did you check if all of the properties of your object are set to public? See this link: Exception when adding list to ObjectListView

Upvotes: 0

Related Questions