Recent Posts

Pages: 1 2 3 [4] 5 6 7 8 9 10
31
Excuse the fact the files are called 'GIRAFFE' etc. by the way, this was me copying a YouTube video which used Giraffe as the file name. TIA.
32
I am running Code::Blocks version Code::Blocks 20.03 on MyOperatingSystem
Microsoft Windows 11 Home Version 10.0.22621 Build 22621. The compiler I use is GNU GCC Compiler.

When I ... attempt to save the current code I have made and then try to 'Build and Run', it should bring up what I have typed (being 'There once was a man named Paul
He was 66 years old
He really liked the name Paul
He did not being 66'),
#include <stdio.h>
#include <stdlib.h>

int main()
{
    char characterName [] = "Paul";
    int characterAge = 66;
    printf("There once was a man named %s\n", characterName);
    printf("He was 66 years old\n");
    printf("He really liked the name Paul\n");
    printf("He did not like being 66\n");
    return 0;

 but instead it comes up with a triangle shape that I originally created using basic code, instead.

Build log:
#include <stdio.h>
#include <stdlib.h>

int main()
{
    char characterName [] = "Paul";
    int characterAge = 66;
    printf("There once was a man named %s\n", characterName);
    printf("He was 66 years old\n");
    printf("He really liked the name Paul\n");
    printf("He did not like being 66\n");
    return 0;
}


Crash report:
(I am not sure how to find this, as it did not crash on me).

    (Although the following is not necessary, showing that you
     have tried increases the probability of a response.)
I have already tried ...
Saving the file I am currently on and then clicking 'Build and run' but it did not work.
Help please?

I am using a One Drive folder yes, but on windows 11, I don't know how to not use onedrives folders. You'll see in the screenshot I have attempted to save elsewhere (for example on my DOCUMENTS instead of on my desktop this time), but it still saves to OneDrive. I have tried disabling OneDrive but it does not work. Sorry, I really am a newbie.

But any help would be great, thank you.
33
Post a full rebuild log (see this link).

Are you using a local folder (in the video looks like you are using the OneDrive folder)?
34
Hi. I am a literal noob when it comes to code::blocks so please feel free to move my post elsewhere (tell me where?).
All I want to know is, why is my file not saving when I try and save it. I have a YouTube video here explaining my problem within 90 seconds.

https://www.youtube.com/watch?v=CL7ryEZ3VvA

My code is very basic, it is this

#include <stdio.h>
#include <stdlib.h>

int main()
{
    printf("There once was a man named Paul\n");
    printf("He was 66 years old\n");
    printf("He really liked the name Paul\n");
    printf("He did not like being 66\n");
    return 0;
}

Yet instead, it brings up my old code and will not save or therefore run, this new one. Can anyone help?

Thank you so much in advance.
Catherine.
35
Help / Re: wxsmith crashes while dragging
« Last post by Miguel Gimenez on November 28, 2023, 10:05:55 am »
0xaaaaaaaaaaaaaaaa means that the code has accesed freed memory, but I can not see where this may happen. This is the relevant code:
Code
void wxsItemEditorContent::OnMouse(wxMouseEvent& event)
{
    // Anti-recursion lock
    static bool IsRunning = false;
    if ( IsRunning ) return;
    IsRunning = true;

    if ( event.ButtonDown() )
    {
        SetFocus();
    }
    else if ( m_MouseState == msWaitForIdle )
    {
        m_MouseState = msIdle;
    }

    int NewX = event.m_x;
    int NewY = event.m_y;
    CalcUnscrolledPosition(NewX,NewY,&NewX,&NewY);
    event.m_x = NewX;
    event.m_y = NewY;
    switch ( m_MouseState )
    {
        case msDraggingPointInit: OnMouseDraggingPointInit (event); break;
        case msDraggingPoint:     OnMouseDraggingPoint     (event); break;
        case msDraggingItemInit:  OnMouseDraggingItemInit  (event); break;
        case msDraggingItem:      OnMouseDraggingItem      (event); break;
        case msTargetSearch:      OnMouseTargetSearch      (event); break;
        case msWaitForIdle:                                         break;
        case msIdle: // fall-through
        default:                  OnMouseIdle              (event); break;
    }

    IsRunning = false;
}
EDIT: Cannot reproduce on MSW, may be MacOS-specific.
36
Using Code::Blocks / Re: Help, my EXE won't work cuz' of missing libstdc++-6.dll
« Last post by takenumeral on November 28, 2023, 04:18:28 am »
Did you try to copy the needed DLLs from the compiler installation likely from inside the bin folder?
37
Help / wxsmith crashes while dragging
« Last post by rartigas on November 27, 2023, 10:40:06 pm »
Hi

I have a consistent crash when moving objects on the WxSmith editor. I created a simple project using WxWidgets version 3.2, with WxSmith Frame Based. After adding a couple of objects (a couple of Button) onto the Form, and while dragging them to re-position, Codeblocks crashes with the following message:

artigas@McBoock codeblocks_dbgrpt-23210-20231127T222916 % cat codeblocks.xml
<?xml version="1.0" encoding="UTF-8"?>
<report version="1.0" kind="exception">
  <system description="macOS Ventura Version 13.6 (Build 22G120)"/>
  <stack>
    <frame level="0" function="wxFatalSignalHandler(int)" offset="0" address="0x1033c8c5c"/>
    <frame level="1" function="_sigtramp" offset="0" address="0x7ff80927d5ed"/>
    <frame level="2" function="_sigtramp" offset="0" address="0xaaaaaaaaaaaaaaaa"/>
    <frame level="3" function="wxsItemEditorContent::OnMouse(wxMouseEvent&amp;)" offset="0" address="0x110e8c1f5"/>
    <frame level="4" function="wxEventHashTable::HandleEvent(wxEvent&amp;, wxEvtHandler*)" offset="0" address="0x1033d17af"/>
    <frame level="5" function="wxEvtHandler::ProcessEventLocally(wxEvent&amp;)" offset="0" address="0x1033d24ca"/>
    <frame level="6" function="wxEvtHandler::ProcessEvent(wxEvent&amp;)" offset="0" address="0x1033d23c0"/>
    <frame level="7" function="wxScrollHelperEvtHandler::ProcessEvent(wxEvent&amp;)" offset="0" address="0x104b37c52"/>
    <frame level="8" function="wxEvtHandler::SafelyProcessEvent(wxEvent&amp;)" offset="0" address="0x1033d28dc"/>
    <frame level="9" function="wxWidgetCocoaImpl::DoHandleMouseEvent(NSEvent*)" offset="0" address="0x1049ece19"/>
    <frame level="10" function="wxWidgetCocoaImpl::mouseEvent(NSEvent*, NSView*, void*)" offset="0" address="0x1049e7720"/>
    <frame level="11" function="-[NSWindow _handleMouseDraggedEvent:]" offset="0" address="0x7ff80cd03c4b"/>
    <frame level="12" function="-[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:]" offset="0" address="0x7ff80c52982b"/>
    <frame level="13" function="-[NSWindow(NSEventRouting) sendEvent:]" offset="0" address="0x7ff80c529427"/>
    <frame level="14" function="-[wxNSWindow sendEvent:]" offset="0" address="0x1049d284b"/>
    <frame level="15" function="-[NSApplication(NSEvent) sendEvent:]" offset="0" address="0x7ff80c527e01"/>
    <frame level="16" function="-[wxNSApplication sendEvent:]" offset="0" address="0x104920472"/>
    <frame level="17" function="-[NSApplication _handleEvent:]" offset="0" address="0x7ff80c7e274e"/>
    <frame level="18" function="-[NSApplication run]" offset="0" address="0x7ff80c3b77ad"/>
    <frame level="19" function="wxGUIEventLoop::OSXDoRun()" offset="0" address="0x1049c8cba"/>
    <frame level="20" function="wxCFEventLoop::DoRun()" offset="0" address="0x1033b1c0d"/>
    <frame level="21" function="wxEventLoopBase::Run()" offset="0" address="0x10330fdd5"/>
    <frame level="22" function="wxAppConsoleBase::MainLoop()" offset="0" address="0x1032e74b4"/>
    <frame level="23" function="wxApp::OnRun()" offset="0" address="0x10496285a"/>
    <frame level="24" function="CodeBlocksApp::OnRun()" offset="0" address="0x10258af0b"/>
    <frame level="25" function="wxEntry(int&amp;, wchar_t**)" offset="0" address="0x1033412e9"/>
    <frame level="26" function="main" offset="0" address="0x102581fb3"/>
    <frame level="27" function="start" offset="0" address="0x7ff808ef641f"/>
  </stack>
</report>

I'm using the following configuration:

 OS: Mac OS Ventura
Codeblocks 20.03 from Xaviou, rev13394
WxWidgets version 3.2

I also tried other compilations but all them fail at the same point, while other do only show a Black screen on the WxSmith editor. What is works is editing the (X,Y) position of the object without any crash.

Thanks for any help or workarround.
Roger
38
Nightly builds / Re: The 19 November 2023 build (13398) is out.
« Last post by Bug Killer on November 27, 2023, 09:18:01 pm »
RPMs of Code::Blocks svn13399 with all contrib plugins, wxWidgets 3.2.4 and wxSQLite3 for RHEL 8 and 9 are available from my repository.

To update from previous RPMs :

$ sudo dnf clean all
$ sudo dnf update
39
Development / Re: C::B dark mode in Windows
« Last post by gd_on on November 27, 2023, 06:47:25 pm »
Reading your modifications in C::B code, I think you should guard them at least in  wxscolourproperty.cpp :
Code
#if wxCHECK_VERSION(3, 3, 0)
    #define wxPG_FL_IN_HANDLECUSTOMEDITOREVENT 0x00080000
#endif // wxCHECK_VERSION
because the value is not the same in wxWidgets 3.2.3 (or 3.2.4), and with those previous official wxWidgets versions, the compiler has no problems to find it in propgrid.h. I have until now no idea why this value is not found correctly with wxWidgets 3.3.0.

May be you can also guard inclusion of wx/hashmap.h in wxsitemeditorcontent.h, but it's probably not very useful.
Code
#if wxCHECK_VERSION(3, 3, 0)
    #include <wx/hashmap.h>
#endif // wxCHECK_VERSION


40
Using Code::Blocks / Re: Using a file dialog with wxSmith?
« Last post by Miguel Gimenez on November 27, 2023, 06:40:21 pm »
You said you are using wxsmith. Did you add a wxFileDialog to your frame/dialog?.

If you want to add one, open wxSmith, go to the Dialogs tab and select wxFilleDialog (the third from the left).
Pages: 1 2 3 [4] 5 6 7 8 9 10