Search found 311 matches

by alys666
Sun Jan 05, 2020 9:47 pm
Forum: C++ Development
Topic: Should I call wxLocal::Init() on every wxThread created?
Replies: 13
Views: 174

Re: Should I call wxLocal::Init() on every wxThread created?

are you sure, you do not share the same wxString between threads?
wxString must be cloned if is given to another one thread.
by alys666
Sat Dec 21, 2019 8:52 am
Forum: C++ Development
Topic: Abnormal program exit
Replies: 8
Views: 174

Re: Abnormal program exit

if it was a heap corruption... then it could be an object disposed twice(may added twice to different parents?), or memory block was corrupted due writing out of bound index of array or wrong pointer, or something kinda this.
by alys666
Sat Dec 21, 2019 8:47 am
Forum: C++ Development
Topic: Abnormal program exit
Replies: 8
Views: 174

Re: Abnormal program exit

for start. 1.you must use some coding conventions in your code. names of formal parameters, local variables, global variables are in mess, and this is not readable. for example i use such a conventions: _name - object field fname - "formal name" - formal function parameter-> func(type fs) lname - lo...
by alys666
Sat Dec 21, 2019 7:49 am
Forum: C++ Development
Topic: Abnormal program exit
Replies: 8
Views: 174

Re: Abnormal program exit

run your code under debugger. and do not experiment with compilers and build versions. problem is somewhere in your code, not in compiler :) if program crashes on exit - it cannot finalize your objects. so it's somehow connected with destructors and finalization order. if you use codeblocks - set de...
by alys666
Mon Dec 09, 2019 5:09 pm
Forum: C++ Development
Topic: wxTextCtrl Get/SetValue crash
Replies: 4
Views: 157

Re: wxTextCtrl Get/SetValue crash

it's an old story...
read this link about proper warnings.
viewtopic.php?f=19&t=46209
read there about -Wall -Wextra warnings. if it's gcc or clang. or find proper warnings for MS tools.
by alys666
Sun Dec 08, 2019 10:21 pm
Forum: C++ Development
Topic: wxTextCtrl Get/SetValue crash
Replies: 4
Views: 157

Re: wxTextCtrl Get/SetValue crash

remove last comma in constructor param list
and write text to the control as *MainEditBox<<"test";

and show all your debugger diagnostics. problem looks like not from this lines.
by alys666
Sat Dec 07, 2019 9:41 pm
Forum: Announcements and Discoveries
Topic: CodeBee C++ IDE (linux)
Replies: 4
Views: 547

Re: CodeBee C++ IDE (linux)

it uses exactly the cmake as build front end :) and then uses gnu make or ninja as backend.
now i prefer an IDE couple clang+ninja in my designs.
by alys666
Sat Dec 07, 2019 8:44 pm
Forum: Announcements and Discoveries
Topic: CodeBee C++ IDE (linux)
Replies: 4
Views: 547

Re: CodeBee C++ IDE (linux)

i' have installed Ubuntu 16.04, with Unity and LXQT as desktops. I mostly work in lxqt, because it is quite lightweight. It's some standard dark GTK theme(I do not remember which), and in application i use two basic color variables - default_fore and default_back and play with them using Darker(..),...
by alys666
Fri Dec 06, 2019 1:23 am
Forum: Announcements and Discoveries
Topic: CodeBee C++ IDE (linux)
Replies: 4
Views: 547

CodeBee C++ IDE (linux)

Created by me just for fun(because i hate every ide i met in my life :)) ).
screencast is here -
https://youtu.be/Ut677Vo2Sqs
by alys666
Tue Nov 26, 2019 7:18 pm
Forum: C++ Development
Topic: Decaration of widgets inside functions
Replies: 12
Views: 420

Re: Decaration of widgets inside functions

menu bar is a special control. application frame has only one menubar(at least in Windows). that's why wxFrame has special method of assigning wxMenuBar to wxFrame. when you call SetMenuBar(...), you declare that this menuBar is assigned to this Frame. and Frame takes ownership of mentioned MenuBar,...
by alys666
Tue Nov 26, 2019 6:55 am
Forum: C++ Development
Topic: Decaration of widgets inside functions
Replies: 12
Views: 420

Re: Decaration of widgets inside functions

when you're giving a "parent" parameter to control constructor - it's your new control is added to parent's childs list. and when parent is deleted, it deletes in his destructor all the childs from this list. but if you did not give a parent - you must delete the control explicitly. it's standard be...
by alys666
Mon Nov 25, 2019 3:39 pm
Forum: General Development
Topic: Fatal exceptions logging
Replies: 20
Views: 748

Re: Fatal exceptions logging

it looks like your gcc does not store unwinding info by default.
or may be you have some specific gcc options.
by alys666
Mon Nov 25, 2019 9:17 am
Forum: C++ Development
Topic: Decaration of widgets inside functions
Replies: 12
Views: 420

Re: Decaration of widgets inside functions

1.new creates objects on heap anyway, if it is not redefined globally or for a class. then it creates objects as redefined. 2.local in functions variabes are created(space reserved) on stack, if they are not declared as static - then they are created in global memory. 3. global variables are created...
by alys666
Mon Nov 25, 2019 12:55 am
Forum: General Development
Topic: Fatal exceptions logging
Replies: 20
Views: 748

Re: Fatal exceptions logging

muscle. i wrote a simple function of "native" stack dump using c++ stdlib. #include <execinfo.h> void dumpStack(){ const int max_entries = 1000; //let we try to unwind 1000 frames deep stack void* lbuf[max_entries]; //buffer for stack frames entries int lcnt = backtrace(lbuf, max_entries); //get fra...
by alys666
Sun Nov 24, 2019 3:49 pm
Forum: General Development
Topic: Fatal exceptions logging
Replies: 20
Views: 748

Re: Fatal exceptions logging

it's ubuntu 16.04/Intel, desktop, not rasberry.
yes i've built wxWIdgets, but nothing special, with very common settings..just for dynamic link libraries.
compiler - g++.