Search found 18 matches

by specy
Sat Aug 31, 2013 10:43 pm
Forum: Platform Related Issues
Topic: Mac:Hangup in plugin when both host and plugin use wxWidgets
Replies: 0
Views: 947

Mac:Hangup in plugin when both host and plugin use wxWidgets

I'm not sure if this is a platform-dependent issue but I think it is, so I'll post it here. I've made a VST plugin that runs correctly in two VST hosts (Reaper, Ableton). In two other hosts (Audacity and FutureDecks DJ pro), which both use wxWidgets themselves, it hangs (in Audacity) or crashes (in ...
by specy
Wed Aug 21, 2013 7:52 pm
Forum: Platform Related Issues
Topic: MAC OSX: Create wxFrame based on native WindowRef
Replies: 4
Views: 1848

Re: MAC OSX: Create wxFrame based on native WindowRef

Quick status update: I think I understand what the code in the links posted earlier does. Unfortunately, it's Carbon (old Mac GUI) based, and it does not compile at all anymore with wxWidgets 2.9.5 - almost all the functions (defined in private.h) have been removed from the interface. I've tried bui...
by specy
Thu Aug 08, 2013 8:16 pm
Forum: Platform Related Issues
Topic: MAC OSX: Create wxFrame based on native WindowRef
Replies: 4
Views: 1848

Re: MAC OSX: Create wxFrame based on native WindowRef

Thanks, but I had already seen both pages (the first was actually posted by the same person who created the post that I linked in my initial post). I'll wait a bit too see if any other responses arrive, and I might try out something that I found on another page; if that fails I'll post a question on...
by specy
Thu Aug 08, 2013 2:15 pm
Forum: Platform Related Issues
Topic: MAC OSX: Create wxFrame based on native WindowRef
Replies: 4
Views: 1848

MAC OSX: Create wxFrame based on native WindowRef

I need to create a wxFrame or wxPanel inside a window of which I only know the (Mac OS X native) WindowRef (in Windows it's a HWND). This is because my program is a plugin, which gets called with this WindowRef as parameter (I basically get an area inside a window in which I can draw). In Windows it...
by specy
Wed Aug 07, 2013 11:29 pm
Forum: Platform Related Issues
Topic: wxFrame on Mac OS displayed in left top without title/border
Replies: 2
Views: 1442

Re: wxFrame on Mac OS displayed in left top without title/bo

I'm using version 2.9.5 and I'm compiling for 64 bits so using Cocoa. Edit: Minimal is working fine. So it must be something in my (over 3.5 MB of) code... :cry: Edit #2: O wow. Who would have thought that it could be this simple. As position I was using (0, 0) - the result of this is that the windo...
by specy
Wed Aug 07, 2013 10:50 pm
Forum: Platform Related Issues
Topic: wxFrame on Mac OS displayed in left top without title/border
Replies: 2
Views: 1442

wxFrame on Mac OS displayed in left top without title/border

I'm trying to port a wxWidgets program that's already running fine in Linux to Mac OS X. I'm probably missing something obvious. It's basically running perfectly, except for one small thing: Windows created with wxFrame all show up in the left top corner, with no outside (no borders, no title bar, n...
by specy
Sun Jul 07, 2013 8:38 am
Forum: C++ Development
Topic: wxFileDialog crashes - but not always
Replies: 7
Views: 1623

Re: wxFileDialog crashes - but not always

The problem seems to be solved now. I did 2 things: 1. I ran valgrind over my software. Found several occasions where I used new var[] with delete instead of delete[]. I've fixed them and that reduced the frequency of crashes. Then, I added a try/catch around the wxFileDialog calling code. Oddly, ev...
by specy
Thu Jul 04, 2013 11:39 pm
Forum: C++ Development
Topic: wxFileDialog crashes - but not always
Replies: 7
Views: 1623

Re: wxFileDialog crashes - but not always

./configure output: Should wxWidgets support Unicode? yes (using wchar_t) I'll try with --disable-unicode. Edit: That's not going to work.... wxWidgets build with --disable-unicode fails :( , given the error messages clearly on something string (so I suppose Unicode)-related.
by specy
Thu Jul 04, 2013 11:29 pm
Forum: C++ Development
Topic: wxFileDialog crashes - but not always
Replies: 7
Views: 1623

Re: wxFileDialog crashes - but not always

I understand what you say about the char*'s, but half of the time it works and the texts are displayed correctly, and the proper files are shown so filtering also works. The text vs. extention is indeed correct - sorry that that was unclear from my sample code. This function in my code contains both...
by specy
Thu Jul 04, 2013 3:38 pm
Forum: C++ Development
Topic: wxFileDialog crashes - but not always
Replies: 7
Views: 1623

Re: wxFileDialog crashes - but not always

Ah, I'm converting a Windows program - HWND is #defined to be a wxFrame*.

wxWidgets 2.9.4.
I didn't specify --enable-unicode in the ./config, so it must be the default. Testing on Ubuntu 13.04.
by specy
Thu Jul 04, 2013 3:28 pm
Forum: C++ Development
Topic: wxFileDialog crashes - but not always
Replies: 7
Views: 1623

wxFileDialog crashes - but not always

I have a strange problem using WxWidgets for Linux, with GTK. If I call the function below (always from the same place in my own code, and with the same arguments), it works a bit more than 50% of the time, but otherwise it crashes and my whole application closes. I've attached a debugger and I saw ...
by specy
Thu Jun 06, 2013 1:45 am
Forum: C++ Development
Topic: wxEntry problem when linking to X11 instead of GTK+
Replies: 9
Views: 2886

Re: wxEntry problem when linking to X11 instead of GTK+

It works!!! Thanks a lot! If anyone else runs into the same issue: Here's how I fixed it: I've added the following line to my code (outside of functions): wxIMPLEMENT_WX_THEME_SUPPORT; Warning: This is not a proper/neat/decent solution! It does do the trick though, at least in the current WxWidgets ...
by specy
Thu Jun 06, 2013 12:15 am
Forum: C++ Development
Topic: wxEntry problem when linking to X11 instead of GTK+
Replies: 9
Views: 2886

Re: wxEntry problem when linking to X11 instead of GTK+

Looks like you're right. I'm looking at the #defines now and I see things about themes there! I'm not using the macro's because I'm converting a big Windows MFC based program (3.5 MB of code) to Linux; this program was originally not written for WxWidgets and is partially a command line tool. Which ...
by specy
Wed Jun 05, 2013 10:54 pm
Forum: C++ Development
Topic: wxEntry problem when linking to X11 instead of GTK+
Replies: 9
Views: 2886

Re: wxEntry problem when linking to X11 instead of GTK+

None of the sample programs use wxEntry (except 2 that are Windows specific, dll and mfc). So for now I'm assuming that there's a bug in the wxEntry code for X11. The best solution is probably to try to get rid of wxEntry. That should be possible... I'm switching back to GTK+ for now so I can at lea...
by specy
Wed Jun 05, 2013 8:47 pm
Forum: C++ Development
Topic: wxEntry problem when linking to X11 instead of GTK+
Replies: 9
Views: 2886

Re: wxEntry problem when linking to X11 instead of GTK+

"minimal" runs fine with these settings - so there must be something in my code (or in wxEntry?) that causes problems. I'm doing some more tests to find out what's happening. Edit: Looked in the univ/ directory of wxWidgets, I'll try a build with --without-universal. And if that doesn't help, with -...