Strange weird funny bug
-
hey folks, I found some really weird bug in my program and want to share it. unfortunately I can only describe it cause the project is too large to paste here. I added the CRT-Memory-leak finder and kept the "DEBUG_NEW new( _NORMAL_BLOCK, __FILE__, __LINE__ )"-macro very consistently in my source files. then I added a class in Visual Studio 2005. The class should create another class using the "new" operator. Somehow I got a: "Error 1 error C2065: '_NORMAL_BLOCK' : undeclared identifier ..." I searched for a very long time in my program cause and didn't find the bug. here's the tricky part: when I add "#include " at the top of the source file it works! well maybe someone else finds this helpful... although I'd really like to know the real source of the problem. greetings zqueezy
-
hey folks, I found some really weird bug in my program and want to share it. unfortunately I can only describe it cause the project is too large to paste here. I added the CRT-Memory-leak finder and kept the "DEBUG_NEW new( _NORMAL_BLOCK, __FILE__, __LINE__ )"-macro very consistently in my source files. then I added a class in Visual Studio 2005. The class should create another class using the "new" operator. Somehow I got a: "Error 1 error C2065: '_NORMAL_BLOCK' : undeclared identifier ..." I searched for a very long time in my program cause and didn't find the bug. here's the tricky part: when I add "#include " at the top of the source file it works! well maybe someone else finds this helpful... although I'd really like to know the real source of the problem. greetings zqueezy
Would not really consider this a strange weird funny bug :|
"The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
-
hey folks, I found some really weird bug in my program and want to share it. unfortunately I can only describe it cause the project is too large to paste here. I added the CRT-Memory-leak finder and kept the "DEBUG_NEW new( _NORMAL_BLOCK, __FILE__, __LINE__ )"-macro very consistently in my source files. then I added a class in Visual Studio 2005. The class should create another class using the "new" operator. Somehow I got a: "Error 1 error C2065: '_NORMAL_BLOCK' : undeclared identifier ..." I searched for a very long time in my program cause and didn't find the bug. here's the tricky part: when I add "#include " at the top of the source file it works! well maybe someone else finds this helpful... although I'd really like to know the real source of the problem. greetings zqueezy