LookAndFeel exception

hello guys, I was trying the LookAndFeel class and I tried to change the appareance of my project. I use those two lines in the constructor:

[size=150][code]MainComponent::MainComponent()
{
//… other variables inicialization

OldSchoolLookAndFeel oldLookAndFeel;
LookAndFeel::setDefaultLookAndFeel(&oldLookAndFeel);

}
[/code][/size]

However when I execute the program i get this exception:

Am I doing something wrong? (sure hehe)

Yes, you’re doing something very wrong. Think about the lifetime of the l+f object you’re trying to use.

omg - sorry, i saw it. thanks you!!!