Hi, I use a class derived from CEdit to implement some kind of combo: edit box and buddy spinner with some special function. When I try to "Create" it, some times it works and some times I get an assertion failure but I don't know why since the same code is used every time. In my class, I have a function to create it which execute the following creation line:
this->Create(WS_CHILD | WS_BORDER | WS_VISIBLE | WS_TABSTOP ,EditBoxRectangle,Parent,IDC_SPINEDITNUMCTRL_EDIT_BOX);
I have no ides about what could cause an assertion failure. Every time it is called, the parrent is always the same. The ID is always the same too but since messages are handled in this class and not in the parent, I suppose this is not the problem. I checked the rectangle and it is valid.
If it can help, has I said before, the program doesn't crash every time this line executes but it always crash on the same call.
Thank you.
