G
Guest
Hi,
I've prepared a little example for my problem. Please take some time to
undestand it OK, here it is:
class ClassA
{
public:
ClassA()
{
// Empty
}
ClassA( int value )
{
m_value = value;
}
int m_value;
};
class ClassB
{
public:
ClassB()
{
// Empty
}
ClassB( int value0, int value1 )
{
m_values[0] = ClassA( value0 );
m_values[1] = ClassA( value1 );
}
ClassA m_values[2];
};
void main()
{
ClassB test( 1, 2 );
}
So, there is a problem. Or let me say there is half a problem When I
compile this code in a normal Win32-Console-Project, it works properly. But
when I compile this code in an Empty Project (.NET), there is a Bug. In the
constructor of ClassB, m_values[1] does not get any values assigned, while
m_values[0] gets the proper value of 1!
How can this happen - especially if it works in an unmanaged project?!
Greetings,
eXile.
I've prepared a little example for my problem. Please take some time to
undestand it OK, here it is:
class ClassA
{
public:
ClassA()
{
// Empty
}
ClassA( int value )
{
m_value = value;
}
int m_value;
};
class ClassB
{
public:
ClassB()
{
// Empty
}
ClassB( int value0, int value1 )
{
m_values[0] = ClassA( value0 );
m_values[1] = ClassA( value1 );
}
ClassA m_values[2];
};
void main()
{
ClassB test( 1, 2 );
}
So, there is a problem. Or let me say there is half a problem When I
compile this code in a normal Win32-Console-Project, it works properly. But
when I compile this code in an Empty Project (.NET), there is a Bug. In the
constructor of ClassB, m_values[1] does not get any values assigned, while
m_values[0] gets the proper value of 1!
How can this happen - especially if it works in an unmanaged project?!
Greetings,
eXile.