I defined axFx class like this :
and this code has some problems
the problem is on about list container class defined by "list<axFx> fx_col;" (it's a member of some class)
I pushed "fx" from front, but "fx_col" doesn't accept this. still "fx_list._S ize" is gain one. but "fx_list.begin( )" (it's expample for first element of list.) has all member vars with -842150451or 0xcdcdcdcd.
what does it means? plz help some advices ;(
Code:
class axFx : public Object { private: int ef_index; char* ef_filename; int noframes; int ident; public: axFx(); void SetNofFrame(int p) { noframes = p; } int GetNofFrames() { return noframes; } void SetFilename(char* filename); char* GetFilename() { return ef_filename; } int GetIndex() { return ef_index; } int GetIdent() { return ident; } void SetIdent(int p) { ident = p; } //void SetOrder(int* p) {}; void SetIndex(int p) { ef_index = p; } };
Code:
axFx* fx = new axFx(); ... // define instance "fx" fx_col.push_front(*fx); delete fx;
I pushed "fx" from front, but "fx_col" doesn't accept this. still "fx_list._S ize" is gain one. but "fx_list.begin( )" (it's expample for first element of list.) has all member vars with -842150451or 0xcdcdcdcd.
what does it means? plz help some advices ;(
Comment