Recent Posts

Pages: 1 ... 4 5 6 7 8 [9] 10
81
Nightly builds / Re: The 09 April 2026 build (13831) is out.
« Last post by Pecan on April 26, 2026, 08:27:35 pm »
Installation Guide: Debugger GDB/MI Plugin
A CodeBlocks plugin using the machine interface of the GDB debugger.

For Code::Blocks Nightly Build 260409_rev13831_win64 only.


Download github binary zip
Source is available at github Source

1. Preparation
  • Ensure Code::Blocks is not running.
  • Extract the ZIP contents into a temporary folder.
  • Note: While installing, the .exe, .dll, and .zip files must stay together.

2. Installation
  • Run InstallDebuggerMI.exe.
  • Select your Code::Blocks Nightly folder when prompted.
  • Constraint: Your CB Nightly version date and revision must match the install zips file name.
  • Installing into a mismatched nightly version will cause it to stall and crash.

3. Configuration
After installation, go to Settings->Debugger->GDB/MI default
  • Set the executable Path: Browse to your gdb.exe.
  • Verify the other options meet your requirements.
  • Click on the Ok button.

4. Usage
Go to MainMenu->Debug->Active Debuggers and select GDB/MI default.


Report issues in this thread with your Nightly Build date and OS.
82
Development / Re: wxSmith : add option for Create function in inhereited cases
« Last post by LR83 on April 26, 2026, 11:12:06 am »
Great :)
Removing the line instead of simply replacing it with a comment requires more work. We need to remove all the code that builds this line and it is not so easy.
That's why I simply add a "//" at the beginning of the line to comment it.
83
Development / Re: wxSmith : add option for Create function in inhereited cases
« Last post by ollydbg on April 25, 2026, 01:43:18 pm »
It is in our svn now, thanks.

BTW: I think comment out the "Create" function could be changed to "remove this line" if the option is "false". But I'm not sure how to do that.
84
Help / Re: c++23
« Last post by stahta01 on April 23, 2026, 09:11:19 pm »
my advice: don't use pcm.


I have several projects using C++23 in CB, even C++26.
Quote
PCM as in Precompiled Modules in C++26 (the upcoming C++ standard)
85
Oh I've definitely encountered "memory thrashing" before (starting around >90% RAM usage), but when it happens it is typically far worse than what I'm seeing here with CB.

As for ordinary day-to-day usage, I know this bug cast a rather bad first impression of the editor, but I'm also noticing various little mundane details that don't sit as well with me.  Like the top-level split between .c and .h files in the project panel.

I'm willing to help stay and debug for a bit, but I'd probably need instruction on building CB from its source first because as long as I'm the only one it's actively happening to, I'm also the only one that can truly dive into it to research what is going wrong where.

Quote
I can find no code that saves the files ok and then closes them.

If I have two files open & modified, the "save changes?" prompt is a good breakpoint where I should be able to fetch the call stack and find exactly WHERE it is trying to close the editor window.

In the meantime, viewing Task Manager there is a "normal" CPU spike while saving a file (in 1 of 4 CPU cores) but it is very localized to CB itself (not affecting other processes / system at large).  I additionally sometimes see the little "leaf" icon next to its status, indicating that (as a UWP process) the system has occasionally suspended it (by force?) -- see attachment.
86
Help / Re: c++23
« Last post by killerbot on April 22, 2026, 10:24:32 pm »
my advice: don't use pcm.


I have several projects using C++23 in CB, even C++26.
87
Help / Re: Cannot find the compiler
« Last post by thereforerepair on April 22, 2026, 10:17:41 am »
Go to Settings -> Compiler, select the "Toolchain executables" tab and fill the controls with your compiler's location (use where gcc.exe in the cmd prompt) and program's names.

Great! The instructions shared are accurate. Executing the correct command is crucial to ensuring the program works and runs.
88
I have run CB 20.05 in vmware with a memory size of 4gig and was unable to get the file closes on save that Stratelier gets.

I did experience the memory thrashing during a file save when memory usage reached 91%.
I ran CB under the debugger and chased high memory usage happening when scintilla double buffered the file. There was sometimes a near 10 second pause of the whole system.
Most likely memory thrashing.

I was unable to determine how files were closed when they were saved ok.
If they were not saved ok, we should have seen the message from this function:
Code
    if (!cbSaveToFile(m_Filename, m_pControl->GetText(), GetEncoding(), GetUseBom(), robustSave))
    {
        wxString msg;
        msg.Printf(_("File %s could not be saved..."), GetFilename().c_str());
        cbMessageBox(msg, _("Error saving file"), wxICON_ERROR);
        return false; // failed; file is read-only?
    }

I can only guess that this is some kind of physical memory error or that the stack got corrupted and the code returned to the wrong place.
I can find no code that saves the files ok and then closes them.
89
Help / Re: Why does the code editor window close after saving a file?
« Last post by Stratelier on April 19, 2026, 01:17:25 am »
Sorry.  At the time I was following the instructions from developer.gimp.org (and there are quite a few more for Windows than on Linux), one of which is to fetch it via git command-line.

The issue does seem specifically related to very large projects, as I cannot reproduce it in isolated files or "hello world" sized projects.

As for my system:  A laptop from 2014 with 4GB shared RAM.  It has room for 8 to 16GB but the RAM sockets are the last thing in the teardown (ugh).  So it tends to be under a bit of stress.
90
Help / Re: Why does the code editor window close after saving a file?
« Last post by Pecan on April 19, 2026, 01:06:31 am »
@Statelier

I was asking about where to download the Gimp source that's shown in the project window.

But I finally found it (I think). Downloaded it, made a project from it, and tried to get the  problem as described. No luck though. It works ok for me. (Windows 11 64bit 32Meg memory).

Now I'll re-create cb 25.03 from source and see if I can step through "save" in the debugger with many files of Gimp loaded.

Please describe the hardware you're using. I'd like to use vmware to create a similar system and test your environment there.


Pages: 1 ... 4 5 6 7 8 [9] 10