Martin Frb via fpc-pascal wrote: > Silly question, but did you assign the value to the variable? > > myClass := TWindow; That's what I did. > TWindow(myClass).CreateNewWindow; And this is what crashes. I can report this, if the type-cast is supposed to work. Regards, Adriaan van Os