Recent Posts

Pages: 1 [2] 3 4 5 6 7 ... 10
11
Help / Re: wxsmith crashes while dragging
« Last post by Wkerry on November 29, 2023, 09:31:13 am »
I wonder if  "o m l k" is now an AI bot as responses and posts are strange and do not make allot of sense for the last few weeks.
12
Using Code::Blocks / Re: Only terminal window came out when I try to run
« Last post by ayyitsrach on November 29, 2023, 07:33:41 am »
I've tried installing other IDE which is Dev CPP and tried running it. Same thing occured. Then, I code a simple "Hello world" on both IDE, the terminal display it fine. So I'm guessing it has something to do with my OpenGL setting but I couldn't figure out what. Anyone can help?
13
Help / Re: wxsmith crashes while dragging
« Last post by omlk on November 28, 2023, 10:30:11 pm »
I suggest next time you post something, you do more research about the topic, this is not the first time you post such nonsense.

A wxMouseEvent does not propagate, only wxCommandEvent derived events do, so your proposed change does nothing.
Explain why it doesn't make sense, it's not a simple solution and I'm not a newbie, so I'll gladly listen to how it should be right in this case.
14
Help / Re: wxsmith crashes while dragging
« Last post by sodev on November 28, 2023, 10:08:17 pm »
I suggest next time you post something, you do more research about the topic, this is not the first time you post such nonsense.

A wxMouseEvent does not propagate, only wxCommandEvent derived events do, so your proposed change does nothing.
15
Help / Re: wxsmith crashes while dragging
« Last post by omlk on November 28, 2023, 09:45:12 pm »
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;

    ...

    IsRunning = false;
}
EDIT: Cannot reproduce on MSW, may be MacOS-specific.
Maybe the usage int StopPropagation () would be better?

Code
    // Anti-recursion lock
    static int recursion_count = 0;
    static bool IsRunning = false;
    if ( ++recursion_count > 2 ) {
           recursion_count = 0;
           event.StopPropagation();
           return;
    }
    if ( IsRunning ) return;
16
Help / Re: Newbie here, wanting help, please move my post to correct forum if not allowed
« Last post by omlk on November 28, 2023, 09:09:22 pm »
I understand that you have a wonderful troll humor, and you talentedly emphasize all the features as no need to program. All the stars aligned for the giraffe project to be successful. :) ;)
And this is just a masterpiece, why did you replace the text in the logs: for this line, there is no project, there is no compilation target, and the compiler is unknown?
Code
-- Build file: "no target" in "no project" (compiler: unknown)--
17
PS if this post is in the wrong place, please inform me and tell me where I need to put it, and I will move it, or a mod can move it but please let me know. Thank you.
18
Development / Can someone guide me through one of the steps of this tutorial...?
« Last post by caffycaffy4414 on November 28, 2023, 08:22:26 pm »
Hello, I have gone onto a tutorial. (I am a total newbie, I started today).

https://wiki.codeblocks.org/index.php/Creating_a_new_project

When that page above states 'Returning to the main source (main.cpp) include the header file and replace the cout function to match the new setup of the project.

main.cpp'

I do not understand it that bit... please can someone just explain that step for me? I.e. what I do. I have followed every other step and I do not achieve the end result, like the tutorial states.

A little help please for a newb?

Thanks.
19
Using Code::Blocks / Only terminal window came out when I try to run
« Last post by ayyitsrach on November 28, 2023, 08:20:09 pm »
Hello, I am quite new in using CB and is facing a problem where when I try to run my code, the output did not appear. Only the black terminal window.

I am using CB 20.03 MinGw and in Windows 11.

Before, all my projects can run smoothly until now, suddenly. I've tried running my previous project, no output came out. Tried running outside IDE, from the bin folder, nothing came out. I'm not sure if I clicked something while working on my current project.

I've tried uninstall and re-install back CB but nothing changes.

I've disabled my Antivirus, nothing changes.



Build logs:


-------------- Build: Debug in trying (compiler: GNU GCC Compiler)---------------

Target is up to date.
Nothing to be done (all items are up-to-date).


-------------- Run: Debug in trying (compiler: GNU GCC Compiler)---------------

Checking for existence: C:\Users\User\Desktop\trying\bin\Debug\trying.exe
Set variable: PATH=.;C:\Program Files\CodeBlocks\MinGW\x86_64-w64-mingw32\lib;C:\Program Files\CodeBlocks\MinGW\bin;C:\Program Files\CodeBlocks\MinGW;C:\Program Files\CodeBlocks\MinGW\bin\bin;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Users\User\AppData\Local\Microsoft\WindowsApps;C:\Users\User\AppData\Local\Programs\Microsoft VS Code\bin
Executing: "C:\Program Files\CodeBlocks/cb_console_runner.exe" "C:\Users\User\Desktop\trying\bin\Debug\trying.exe"  (in C:\Program Files\CodeBlocks\MinGW\x86_64-w64-mingw32\bin)
Process terminated with status -1073741510 (0 minute(s), 5 second(s))
 
I hope I have given enough information for my problem.
20
General (but related to Code::Blocks) / Re: Welcome Newcomers - PLEASE READ!!!
« Last post by ayyitsrach on November 28, 2023, 08:05:13 pm »
I am new and I am here trying to learn. Hope we can learn things together
Pages: 1 [2] 3 4 5 6 7 ... 10