With SP1 my app crashed on startup with an Access Violation. Shortly after
that the developer studio debugger would disappear too without any error
dialog. Stepping through from scratch showed the Access violation was
occuring in the DataGrid constructor called from Form::InitiliseComponent -
not even in my code. After lots of head scratching I came across KB825082
suggesting problems with flag attribute enums out of despiration I removed
the one I had in my code leaving non flag attribute enums as they where. This
solved the problem. My app is managed C++ windows forms.
For those who like code I removed code like this :-
[Serializable]
public __value enum ColumnId : unsigned long
{
colIdSubstance = (1<<0),
colIdConc = (1<<1),
colIdConcUnit = (1<<2),
colIdpH = (1<<3),
colIdUID = (1<<4),
colIdViscosity = (1<<5),
}
and replaced it with the following (which required using ColumnIdType
throughout the rest of my code) :-
typedef unsigned long ColumnIdType;
[Serializable]
public __gc class ColumnId
{
public:
static const ColumnIdType colIdSubstance = (1<<0);
static const ColumnIdType colIdConc = (1<<1);
static const ColumnIdType colIdConcUnit = (1<<2);
static const ColumnIdType colIdpH = (1<<3);
static const ColumnIdType colIdUID = (1<<4);
static const ColumnIdType colIdViscosity = (1<<5);
}
Willy Denoyette said:
Please post the details of the enum issues you encountered.
Willy.
My app works fine with .Net 1.1 but will not run if sp1 is loaded. I've
traced the problem to some enums which I've now replaced with alternative
code and all is well. This service pack seems to be breaking other peoples
apps too. Was it not possible for Microsoft to release this as a new
version
of the framework to run side by side with the old v1.1 at least the old
.Net
apps would run ok?