GLUT (GLUI) window texture conflict

Hi, you all,

I´m having problems on using a GLUI window with textures, I don´t know if there´s a incompatibility problem or not…
I use a window to get the texture name (edittext->get_text()) and pass it to my texture reader.
Just after the user enters the texture name and clicks the OK button the program crashes/tilts…
My texture reader works perfectly, since whenever a user types ‘a’ or ‘b’ the texture shown on screen changes…

Sure to get help as soon as possible,

Cesar

PS: I´m using mingw32 on a XP.