Open GoogleCodeExporter opened 9 years ago
Ok, i write in VB, but I noticed that in C# it doed not give a very good
error... just
Attempted to read or write protected memory
so i recreated it in VB, and got the same error but more information, the list
box
contains to many items?!?!?!? well after a little playing and testing...
in Style.cs
comment out the overrides ToSting
add property StyleName
and just do a get name
NO SET for this
on the SettingsForm.cs
in SettingsForm function (the NEW function for VB)
where you see the lbStyles.selectedindex = 0
right above that add lbStyles.DisplayMember = "StyleName";
problem solved
Original comment by trspraypaint
on 16 Feb 2009 at 2:00
Hi.
Found this one out and it appears that tha problem happens in some files rather
than
others, due to many styles with null names.
To solve this, instead of commenting out the ToString() override, you can just
add
something like
if (string.IsNullOrEmpty(s.Name))
s.Name = "Style " + i;
in the constructor of SettingsForm, so that it will give unique names to the
unnamed
styles.
And trsprayp, cheers for finding out about the listbox! I was bangging my head
around
this one, and if it were not for you, I'd still be.
Original comment by marcelo....@gmail.com
on 19 Dec 2009 at 1:49
Original issue reported on code.google.com by
CadCamG...@gmail.com
on 4 Jul 2008 at 4:18