Search found 316 matches

by alys666
Wed Nov 13, 2019 12:49 pm
Forum: General Development
Topic: Fatal exceptions logging
Replies: 20
Views: 885

Re: Fatal exceptions logging

if "Thermal" is not a main thread then.... never worked with cairo... bit this is some drawings library. and if it is called in some secondary thread -> then you are doing drawings from secondary thread... but wxWidgets drawing cannot be issued from secondary thread, only from main. do not call wxWi...
by alys666
Wed Nov 13, 2019 12:37 pm
Forum: General Development
Topic: Fatal exceptions logging
Replies: 20
Views: 885

Re: Fatal exceptions logging

from some docs: Compiling with -fno-exceptions disables exceptions support and uses the variant of C++ libraries without exceptions. Use of try, catch, or throw results in an error message . Linking objects that have been compiled with -fno-exceptions automatically selects the libraries without exce...
by alys666
Tue Nov 12, 2019 9:16 pm
Forum: C++ Development
Topic: How to handle KILL_FOCUS globally
Replies: 3
Views: 159

Re: How to handle KILL_FOCUS globally

what is "window looses focus" -
1.mouse just moved outside your app window,
2.or mouse moved outside and something was clicked there?
imo window loses focus in case 2 only.
by alys666
Tue Nov 12, 2019 8:54 pm
Forum: General Development
Topic: Fatal exceptions logging
Replies: 20
Views: 885

Re: Fatal exceptions logging

cant solve the problem just now, but can explain a reason. when c++ exception is thrown, c++ runtime will search closest exception handler and unroll the stack. if there is no handler in current frame(try ..catch statement), it will call destructors and close the frame, if there is no handler in pre...
by alys666
Tue Nov 12, 2019 4:00 pm
Forum: C++ Development
Topic: wxRect doesnot have a copy constructor
Replies: 5
Views: 295

Re: wxRect doesnot have a copy constructor

if you have not provided a copy constructor then you assume that default copy ctor works well. and byte-to-byte copy is what you need.
else you must write explicit trivial copy ctor, and invoke memcpy(...), or field to field copy, inside it.
is it good for programmer?
by alys666
Mon Nov 11, 2019 11:51 am
Forum: C++ Development
Topic: How to disable wxWebview border style ?
Replies: 11
Views: 411

Re: How to disable wxWebview border style ?

"Create" in wxWIdgets is kinda postponed constructor, they call it - 2 stage creation, when you can allocate and somehow pre-initialize instance at first stage, but initialize completely later. Create is a method of object, you call create for existing instance: instance->Create(...) New - it's conc...
by alys666
Mon Nov 11, 2019 1:50 am
Forum: C++ Development
Topic: How to disable wxWebview border style ?
Replies: 11
Views: 411

Re: How to disable wxWebview border style ?

first hint was - compiler shows you an error in function call. this means that something is wrong in this line. TEST.cpp:76:103: compiler gives you a cursor position of your error line- 103. just put cursor at this position and look what is it? diagnostics - hidden or non existent constructor of wxS...
by alys666
Mon Nov 11, 2019 1:28 am
Forum: C++ Development
Topic: How to disable wxWebview border style ?
Replies: 11
Views: 411

Re: How to disable wxWebview border style ?

look at documentaion. function New prototype is New ( wxWindow *parent, wxWindowID id, const wxString &url=wxWebViewDefaultURLStr, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, const wxString &backend=wxWebViewBackendDefault, long style=0, ... you missed const wxString &bac...
by alys666
Sun Nov 10, 2019 11:58 pm
Forum: C++ Development
Topic: How to disable wxWebview border style ?
Replies: 11
Views: 411

Re: How to disable wxWebview border style ?

not working, or compiled with errors? in file included from D:/.../include/wx/memory.h:15:0, from D:/.../include/wx/object.h:19, from D:/.../include/wx/wx.h:15, from TEST.cpp:4: D:/.../include/wx/string.h: In constructor 'myfram::myfram()': D:/.../include/wx/string.h:303:3: error: 'wxString::wxStrin...
by alys666
Tue Nov 05, 2019 4:00 pm
Forum: C++ Development
Topic: avoid static cast in payload
Replies: 3
Views: 167

Re: avoid static cast in payload

use dynamic_cast<>. at least it will raise an exception if actual cast was wrong.
dynamic cast checks at runtime if pointer can be really cast to given type.
by alys666
Tue Nov 05, 2019 7:47 am
Forum: C++ Development
Topic: wxDialog launched behind application
Replies: 1
Views: 96

Re: wxDialog launched behind application

if i remember this function makes a window the topmost, calling window manager.
virtual void wxWindow::Raise();
also you do not need to allocate dialog on the heap. just on the stack

added:
Raise works only for wxTopLevelWindow derived classes, but wxDialog is that derived.
by alys666
Thu Oct 31, 2019 1:34 pm
Forum: C++ Development
Topic: Memory leak with dialogs
Replies: 4
Views: 392

Re: Memory leak with dialogs

to test memory leaks better you must override new and delete operators.
by alys666
Tue Oct 29, 2019 11:38 pm
Forum: Compiler / Linking / IDE Related
Topic: [SOLVED] CB or wxWidgets issue?
Replies: 5
Views: 493

Re: [SOLVED] CB or wxWidgets issue?

CB, as i remember has his original build system. May be it somehow connected with it.
May be better to use cmake and custom build to avoid such errors.
In my builds i use cmake and it never failed or something. But i use custom IDE which generates cmake files automatically.
by alys666
Tue Oct 29, 2019 9:01 pm
Forum: Compiler / Linking / IDE Related
Topic: [SOLVED] CB or wxWidgets issue?
Replies: 5
Views: 493

Re: CB or wxWidgets issue?

if everything is identical, could you try to run binary from machine 1 on machine 2? and vice versa. if effect is the same - then something is different on this machines. also you could compare two binaries, on size, symbols inside, binary equivalence, etc. and finally you could build app for testin...