I think you are trying to use a window before it is created - so bad pointers are in use.
I keep asking for you to post your code. Without it we are very limted in being able to help you.
eg.
Do you assign a value to m_mylseDimensi anywhere in your code? If yes then please post the code in the function that is doing that. (I guess it is one of your OnBtn... handlers based on your previous question).