Ok, I have an exported class in a DLL. This class has a list of static lines that are used in the ComboBox dialog during the import process. These lines are declared and defined as follows:
class MYDLL_API someClass {
public:
static const string stringList[];
static const int numString;
};
const int someClass::numString = 3;
const string someClass::stringList[numString] = {
"String 1",
"String 2",
"String 3"
};
Thus, the actual export works just fine. However, I noticed that my debugging debugging memory was VS 2008, which appeared as
{129} normal block at 0x003D69F0, 32 bytes long.
Data: <String 1>
etc.
So, to determine who was leaking this memory, I stopped using them in the combo box for which they were intended, and checked if the leak was still present. So my question is: is there any problem associated with exporting a class static variable from a DLL where it is considered a memory leak?
DeusAduro