   Weird glitch with Visual C++ Express
  I'm getting a very weird glitch with Visual C++ Express.Let me attempt to explain the problem:Here is my code in "main()":Wg_Window * newWindow = new Wg_Window("Window Title!",320,320,Sizable);newWindow->createButton("Test",NULL,5,5,100,32);newWindow->show();The "Wg_Window" class is derived from the "Control" class. The Control class contains the declaration of "createButton()" which should be inherited by the "Wg_Window".When I delete the definition of Control::createButton(), I obviously get linker errors because it cant find the definition. When I define Control::createButton() it doesn't execute even though my main() function is calling it as you can see in the above code. I try setting a breakpoint in the Control::createButton(), but Visual C++ is showing this:http://img405.imageshack.us/img405/3180/ss20100605235436.pngI've tried cleaning/rebuilding the project but it doesn't seem to fix the problem. Any one have any ideas why this is happening? Hopefully I'm not being an idiot and missing something very important.EDIT:changing the breakpoint location in the createButton() function reveals a new tooltip:The breakpoint will not currently be hit. The source code is different from the original version.To allow the breakpoint to be hit when the source code is different, right-click the breakpoint, choose 'Location...', and turn on 'Allow the source code to be different from the original version.'EDIT2:Building in Release mode seemed to fix the problem. It looks like there is some sort of cache in my Debug mode that is messing up the assembly or something. Any ideas on how to clear all of the cache and start fresh in debug mode?   
  Does Wg_Window override the 'createButton' method?If so:  That explains why the Control::createButton method isn't being called (it might be getting dead-stripped)The debugger's message is saying something totally different though.  It's saying that the source code you're looking at wasn't the same as when you compiled the EXE.I would check:- Make sure you don't have multiple files with the same name, but in different directories.- Make sure you don't accidentally have the wrong file open in visual studio.- Make sure the source code is actually part of the project you're debugging.- Make sure the EXE you're debugging is the same one that you're building.   ;  @NypyrenNope, its not overriding it :(I just edited the first post with more details, but I will post them here as well:Building in Release mode seemed to fix the problem. It looks like there is some sort of cache in my Debug mode that is messing up the assembly or something. Any ideas on how to clear all of the cache and start fresh in debug mode?EDIT:Facepalm... I switched back to debug mode rather than release mode and the problem seems to be fixed. I guess this topic turned out to be useless :(Thanks for your help Nypyren!   ;  Clean build debug?  If that doesn't work, delete the folder(s) where the EXE is being generated to force it to recreate them.   