Recent Posts

Pages: 1 ... 5 6 7 8 9 [10]
91
Development / GDP debugger, string, and segmentation errors
« Last post by Forat on April 15, 2018, 03:00:05 pm »
Dear Code::Block community,

I using Code::Block 16.02 at my work, and 17.12 at my house.

and I am writing C++ programs, and I am creating a Code Block Project (.cbp) and using the debugger (GDP) to debug the program.

Alot of the times when I am using the string class, I get a segmentation error when debugging, it happens so random and so frequent.

I know the reason for that is because GDP debuggers have a problem with strings, but what is the solution, how can I remove the segmentation error.

Edit1
this is the code that caused Segmentation Error

Code: [Select]
#include <iostream>

using namespace std;

int main()
{
    cout << "Hello world!" << endl;

    string s1("Hi how are you");

    for(int i = 0;i<s1.size();i++)
        cout<<s1.at(i)<<endl;

    return 0;
}
92
Using Code::Blocks / Re: Zoom not being saved / Default zoom?
« Last post by oBFusCATed on April 15, 2018, 09:46:00 am »
1. I don't we save this
2. Why don't you use a larger font? Settings -> Editor -> General -> Font?
93
Using Code::Blocks / [SOLVED] Zoom not being saved / Default zoom?
« Last post by rogeriodec on April 15, 2018, 04:46:10 am »
1) I do not know what happened, but the zoom is no longer being saved. When I open a text, I use Ctr+Scroll Mouse to zoom in. I leave CB, and when I open the file again, the zoom was not saved.
I completely uninstalled CB, removed residual files, cleaned the registry, installed the current version 17.12, but the problem continues.
What can I do?
2) How can I save a standard zoom for all projects?
94
Plugins development / Re: wxSmith and wxGridBagSizer
« Last post by oBFusCATed on April 14, 2018, 06:58:17 pm »
No they are not. They report real problems most of the times. The code is broken.
Btw if you don't want to see them define NDEBUG and they'll be gone.
95
Plugins development / Re: wxSmith and wxGridBagSizer
« Last post by BlueHazzard on April 14, 2018, 06:35:54 pm »
I can reproduce this...
This new wxWidgets asserts are annoying as fuck....

will try to create a fix....
96
Plugins development / Re: wxSmith and wxGridBagSizer
« Last post by stahta01 on April 13, 2018, 07:55:56 pm »
winnie: What Code::Blocks version?
What operating system version?
What wxWidgets version are you using to build your C:B: project?

Tim S.

97
Plugins development / Re: wxSmith and wxGridBagSizer
« Last post by winnie on April 13, 2018, 05:04:45 pm »
Because when I run the program I get the following error:

../src/common/sizer.cpp(1980): assert "!m_cols || idx < (size_t)m_cols" failed in AddGrowableCol(): invalid column index

It gives the problem only for the columns and not for the rows. I don't know why but if you try in this way it doesn't work.
98
Help / Re: How to enable debugger?
« Last post by pca_ on April 13, 2018, 01:04:11 pm »
Ok, I  will try with a project, thanks.
99
Help / Re: How to enable debugger?
« Last post by oBFusCATed on April 13, 2018, 12:00:14 pm »
The debugger doesn't work if you don't have a project.
This is just how it works.
It probably could be made to work without a project, but at the moment it doesn't.
100
Help / Re: How to enable debugger?
« Last post by pca_ on April 13, 2018, 11:50:43 am »
I dont think it makes a difference if the code is organised as a project or a file .. and I have enabled debugging symbols directly in trhe compiler options so it is not needed in the project options.
Pages: 1 ... 5 6 7 8 9 [10]