Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: [SOLVED] (1.5) weird problem with debugging  (Read 3840 times)

0 Members and 1 Guest are viewing this topic.

nulloid

  • Full Member
  • ***
  • Posts: 134
    • View Profile
[SOLVED] (1.5) weird problem with debugging
« on: March 25, 2010, 01:36:03 pm »
(Sorry for my english, it isn't my native language.)

I am creating a... well, kind of sound editing - music creation program. I only recently started to use sf::SoundStream. Until that point, I had no problem. I used debugger, I was happy. Now, it is over. When there is sf::SoundStream in my code (one of my class inherits from it, as in the tutorial), and i want to debug it, the debugger starts, but nothing happens. I don't know, whether the program starts or not, but it doesn't even step into main().

Everything is ok - I use the debug versions of libraries, use the debug build (I use Code::Blocks, btw), and use debugging mode. The debugger output says:

Starting debugger:
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger name and version: GNU gdb (GDB) 7.0.50.20100212
Child process PID: 2312
* 1 Thread 2312.0x670  __static_initialization_and_destruction_0 (__initialize_p=1, __priority=65535) at D:/Programmes/CodeBlocks/bin/../lib/gcc/mingw32/3.4.4/../../../../include/c++/3.4.4/iostream:77

after several "step" commands:

(... lot of I-can't-understand things ...)

In KERNEL32!IsBadCodePtr () (C:\WINDOWS\system32\kernel32.dll)
Single stepping until exit from function KERNEL32!IsBadCodePtr,
which has no line number information.
0x7c80a1c3 in WideCharToMultiByte () from C:\WINDOWS\system32\kernel32.dll
In WideCharToMultiByte () (C:\WINDOWS\system32\kernel32.dll)
Single stepping until exit from function WideCharToMultiByte,
which has no line number information.
0x7c80a0c7 in WideCharToMultiByte () from C:\WINDOWS\system32\kernel32.dll
In WideCharToMultiByte () (C:\WINDOWS\system32\kernel32.dll)
Single stepping until exit from function WideCharToMultiByte,
which has no line number information.

and this three steps seem to iterate forever (didn't have much patience).

All I have throughout this is an empty console window, nothing else. (And the IDE, of course :D) I'm using MinGW-TDM, but i downloaded gdb-7.0.50.

My question is: what is causing this, and what can I do?

If this is not enough, I will create a minimal environment to reproduce this, on request. Thanks for any help :)
(No, please don't say not to use debugger... I'm too lazy and comfortable :D)

And thanks Laurent, for making this great library. It is really fun to use it ^_^

nulloid

  • Full Member
  • ***
  • Posts: 134
    • View Profile
[SOLVED] (1.5) weird problem with debugging
« Reply #1 on: March 25, 2010, 09:58:21 pm »
btw, i searched for low and high, what could cause the gdb to not start the program, or what can be go wrong with multi-threaded program, but nothing usable...

nulloid

  • Full Member
  • ***
  • Posts: 134
    • View Profile
[SOLVED] (1.5) weird problem with debugging
« Reply #2 on: March 26, 2010, 01:05:17 pm »
I switched to SFML-1.6, and the problem is solved. Sorry for creating an unnecessary topic. And keep up the good work :)