News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Debugger Cannot Be Stopped

Started by spflanze, April 27, 2019, 05:29:46 AM

Previous topic - Next topic

spflanze

I am not sure if this is a Code::Blocks, or a wxWidgets, issue.

I am able to compile and run the wxWidgets 3.0.4 application in the debugger by using the red arrowhead. After that I navigate to "Debug => Stop debugger" but the application is not stopped. Even after closing the application's window using its windows x icon in the upper right corner I cannot recompile because the debugger still has the .exe file, regardless of how many times I navigate to "Debug => Stop debugger". That the debugger is not stopped is indicated by "Stop debugger" menu item never graying out.

My Code::Blocks version is 17.12.

ollydbg

which compiler did you use? It dose not work if you have 32bit C::B, and you have 64bit compiler and debugger.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

spflanze

#3
64 Bit Windows 7
Code::Blocks 17.12 32 Bit
g++ compiler in the TDM-GCC-64 folder installed from tdm64-gcc-5.1.0-2.exe which was downloaded from http://tdm-gcc.tdragon.net/index.php/download/
In the checkbox in "Project => Build options the "Target x86_64 (64bit) [-m64]" is checked.

So I need Code::Blocks 64 Bit? I do not see an option to choose 32 bit or 64 bit for Windows at https://sourceforge.net/projects/codeblocks/ . Is there a 64 bit Windows binary available? The application is a calculation intensive one, and so my interest in 64 bit.

stahta01

#4
The CB Nightly build is 64 bit.

I did not know that an 64 bit CB was needed to run an 64 bit gdb.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

spflanze

#5
I typically avoid nightly builds, because I view them as works in progress with possible problems. I would appreciate any recommendations on how to get a 64 bit version of 17.12. I hope I will not have to compile this myself.

oBFusCATed

Yes, you'll have sorry... There is no 64bit release of 17.12.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

BlueHazzard

Nightlies are not that bad... I use them for many years in production an never had any bad bug (or even better it has a lot less bugs than the release)
If it is a special testing build then it will be written in the post and you can skip it...

spflanze

I upgraded to the latest Tortoise and tried to follow the instructions at: http://wiki.codeblocks.org/index.php/Nightly_Cookbook . I was unable to download Code::Blocks source from SVN. An error message dialog opened with the title "Checkout Failed!" and the message:

C:\CodeBlocks SVN from http://svn.code.sf.net/p/codeblocks/code/trunk
C:\CodeBlocks SVN\src
C:\CodeBlocks SVN\src\sdk
C:\CodeBlocks SVN\src\sdk\resources
C:\CodeBlocks SVN\src\sdk\resources\lexers
Error running context: An existing connection was forcibly closed by the remote
host.


What went wrong here?

stahta01

Quote from: spflanze on May 02, 2019, 02:54:14 AM
I upgraded to the latest Tortoise and tried to follow the instructions at: http://wiki.codeblocks.org/index.php/Nightly_Cookbook . I was unable to download Code::Blocks source from SVN. An error message dialog opened with the title "Checkout Failed!" and the message:

C:\CodeBlocks SVN from http://svn.code.sf.net/p/codeblocks/code/trunk
C:\CodeBlocks SVN\src
C:\CodeBlocks SVN\src\sdk
C:\CodeBlocks SVN\src\sdk\resources
C:\CodeBlocks SVN\src\sdk\resources\lexers
Error running context: An existing connection was forcibly closed by the remote
host.


What went wrong here?

I always assumed a poor network connection or a slow PC on my end.
Doing "svn update ." in the svn folder will normally continue the retrieving of the source files.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

stahta01

FYI: Using an nightly build of Code::Blocks is much easier than building Code::Blocks yourself!

And, the wiki page you picked was last updated in 2015; I do not remember this wiki page.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

spflanze

I attempted to update the directory as you recommended. It seemed to work at first. But then download quit with the same error after just a few files. I tried again and got a few more files, but this once again it quit with that error. On subsequent cycles of this I found I had to check the break lock check box when updating or I would get the file lock error.  After several more cycles I gave up because it appeared to me it would take too long getting it piecemeal like this.

BlueHazzard

Why do you not use a prebuild nightly from the forum?

On getting the source:
You can download the source as zip archive from sourceforge:  https://sourceforge.net/p/codeblocks/code/HEAD/tree/ click on the download snapshot on the rigth
You can use git to download the source from a more or less up to date mirror: https://github.com/obfuscated/codeblocks_sf
even there you can download a source snapshot: https://github.com/obfuscated/codeblocks_sf/archive/master.zip

spflanze

Are the prebuilt nightlies 32 Bit or 64 Bit?

BlueHazzard

64bit
I was thinking this is written somewhere, but i was wrong....