Search found 186 matches

by alys666
Fri Aug 16, 2019 11:06 pm
Forum: C++ Development
Topic: Trying as little code as possible, doubt with virtual
Replies: 3
Views: 52

Re: Trying as little code as possible, doubt with virtual

it just means that your c++ compiler treats a method, not explicitly declared virtual, as virtual, because base class has virtual with the same signature. do not experiment with c++. if base class gives you abstract or virtual method, and you must override it, you MUST EXPLICITLY override it. here y...
by alys666
Tue Aug 13, 2019 5:05 pm
Forum: C++ Development
Topic: Binding issue: uninitialized local variable
Replies: 5
Views: 63

Re: Binding issue: uninitialized local variable

if your programm was successfully linked and you have it runing - all your needed files were linked in executable file. So calm down. I do not understand an idea of your Bind(....), i just see that your attached 4 handlers to one event. and it looks odd. :) ps. also "main" in this lines looks strang...
by alys666
Tue Aug 13, 2019 4:52 pm
Forum: C++ Development
Topic: Bind()/Connect() cause an SIGILL
Replies: 9
Views: 150

Re: Bind()/Connect() cause an SIGILL

Connect()s can be dangerous. But in this case: The code is generated by a tool which should ensure the event handler has the correct signature. The code was said to crash even when using Bind(); Bind() should not allow binding a method with an incorrect signature. The code crashes only sometimes. B...
by alys666
Tue Aug 13, 2019 4:38 pm
Forum: C++ Development
Topic: Binding issue: uninitialized local variable
Replies: 5
Views: 63

Re: Binding issue: uninitialized local variable

where you created this object? you just declared pointer to this object, not created object itself.
whre is something like -

Code: Select all

slidercontrol* checkslider = new slidercontrol(...);
by alys666
Tue Aug 13, 2019 4:34 pm
Forum: C++ Development
Topic: Bind()/Connect() cause an SIGILL
Replies: 9
Views: 150

Re: Bind()/Connect() cause an SIGILL

for me, this code lines are questionable Connect(idMenuQuit,wxEVT_COMMAND_MENU_SELECTED,(wxObjectEventFunction)&wxVisirConsolidateFrame::OnQuit); Connect(idMenuAbout,wxEVT_COMMAND_MENU_SELECTED,(wxObjectEventFunction)&wxVisirConsolidateFrame::OnAbout); here a type converstion (wxObjectEventFunction)...
by alys666
Tue Aug 13, 2019 4:09 pm
Forum: C++ Development
Topic: Binding issue: uninitialized local variable
Replies: 5
Views: 63

Re: Binding issue: uninitialized local variable

you just declared "checkslider", but not assigned any value to it. and later use it as something assigned.
for example if you declared:

int my_burth_date;

how your real birth date was assigned to it?
by alys666
Fri Aug 09, 2019 5:04 pm
Forum: Compiler / Linking / IDE Related
Topic: [SOLVED] wxWidgets 3.0.4 - App won't run in release form
Replies: 10
Views: 189

Re: [SOLVED] wxWidgets 3.0.4 - App won't run in release form

Glad to hear, that problem solved, Dave. Have switched on -Wall, -Wextra, in all your projects.
Good luck.
Alex
by alys666
Fri Aug 09, 2019 9:08 am
Forum: Compiler / Linking / IDE Related
Topic: [SOLVED] wxWidgets 3.0.4 - App won't run in release form
Replies: 10
Views: 189

Re: [SOLVED] wxWidgets 3.0.4 - App won't run in release form

1. Dave, gcc and clang perform good static analysis of a code, but only for one compilation unit, and different -W.. options are for it. Clang mostly uses the same options as GCC, for compatibility. 2. Debug and Release modes by default are just different sets of compiler options, Release removes -g...
by alys666
Fri Aug 09, 2019 2:35 am
Forum: Compiler / Linking / IDE Related
Topic: [SOLVED] wxWidgets 3.0.4 - App won't run in release form
Replies: 10
Views: 189

Re: [SOLVED] wxWidgets 3.0.4 - App won't run in release form

also, when you have optimization off, you are more tolerant to errors like - usage of uninitialized variables and function not returning result. so switch all warnings on, for gcc it's option -Wall -Wextra , and check for warnings like - usage of uninitialized variable, and function possibly(or defi...
by alys666
Fri Aug 09, 2019 2:10 am
Forum: Compiler / Linking / IDE Related
Topic: [SOLVED] wxWidgets 3.0.4 - App won't run in release form
Replies: 10
Views: 189

Re: [SOLVED] wxWidgets 3.0.4 - App won't run in release form

Imo, it's a bug in your code due to global variables initialization order. c++ has not modules and cannot correctly understand an order of initialization of compilation units. when you change optimization option, it could change an order of initialization and it becomes wrong. some global object B, ...
by alys666
Thu Aug 01, 2019 9:31 pm
Forum: C++ Development
Topic: Strang Socket Crash over Thread
Replies: 6
Views: 99

Re: Strang Socket Crash over Thread

thread #11, stop reason = EXC_BAD_ACCESS (code=1, address=0x18)
the address 0x18 is definitely wrong, looks like access violation
in body of libsystem_pthread.dylib`pthread_mutex_lock.
looks like attempt to lock deleted mutex object.
by alys666
Wed Jul 24, 2019 5:48 pm
Forum: C++ Development
Topic: wxExecute and wxProcess: Dealing with Interactive commands
Replies: 6
Views: 142

Re: wxExecute and wxProcess: Dealing with Interactive commands

in your particular case you have patterns
examine files in directory*?
remove*?
where asterisk means - any substring.
it's what you have to search
by alys666
Wed Jul 24, 2019 3:56 pm
Forum: C++ Development
Topic: wxExecute and wxProcess: Dealing with Interactive commands
Replies: 6
Views: 142

Re: wxExecute and wxProcess: Dealing with Interactive commands

why no way... your reader thread reads output and parses it...if it finds some specific substring or symbol... in your case '?', it sends message to main thread - "user_asks_confirmation"...main thread receives it and opens dialog with buttons "yes"-"no". in button handlers you write "y" or "n" to p...
by alys666
Wed Jul 24, 2019 3:13 pm
Forum: C++ Development
Topic: wxExecute and wxProcess: Dealing with Interactive commands
Replies: 6
Views: 142

Re: wxExecute and wxProcess: Dealing with Interactive commands

there are input and output streams of the process. process sends to you text strings via its output stream and reads your text input via process input stream. see functions GetInputStream, GetOutputStream of the process. one gives you a stream - with read functions(its what the process is writing to...
by alys666
Tue Jul 23, 2019 4:18 am
Forum: Compiler / Linking / IDE Related
Topic: How do I know which one (or what group) of .a files to link to?
Replies: 6
Views: 101

Re: How do I know which one (or what group) of .a files to link to?

there is a programm - wx-config it intended to provide you with specific information(names, paths, options...) for wxWidgets application building process. did you read about it? https://wiki.wxwidgets.org/Wx-Config wx-config currently doesn't work with the mingw family of compilers. yes.. i already...