Search found 58 matches

by zobbo
Mon Apr 21, 2014 3:21 pm
Forum: Database Related
Topic: Building wxDatabase statically
Replies: 4
Views: 19998

Re: Building wxDatabase statically

Never mind, I just built C++ Connector from scratch and seems to be working.

Cheers,
Zobbo
by zobbo
Sun Apr 20, 2014 5:19 pm
Forum: Database Related
Topic: Building wxDatabase statically
Replies: 4
Views: 19998

Building wxDatabase statically

Hi,

Is it possible to build wxDatabase statically? I build wx as libs and wxDatabase seems to want the dll directories to build. This is a bit painful to the point I might as well consider C++ Connector. Are there any tips to building wxDatabase statically?

Cheers,
Zobbo
by zobbo
Thu Nov 14, 2013 4:36 am
Forum: C++ Development
Topic: Memory leak in wxHashTableBase2::AllocTable
Replies: 2
Views: 1144

Re: Memory leak in wxHashTableBase2::AllocTable

doublemax wrote:Please test again with version 3.0.0-rc2
http://biolpc22.york.ac.uk/pub/3.0.0-rc2/

If it still happens there, please open a bug report here:
http://trac.wxwidgets.org/
Ok, thanks I will do when I get a chance and I'll get back to you.

Cheers,
Zobbo
by zobbo
Sun Nov 10, 2013 9:31 am
Forum: C++ Development
Topic: Memory leak in wxHashTableBase2::AllocTable
Replies: 2
Views: 1144

Memory leak in wxHashTableBase2::AllocTable

Hi, I've found a memory leak in my application and traced it back to wxWidgets framework. Even when none of my code is running I get this leak every time. I had to convert the VC++ solution to VS2012. I corrected the target names (which the conversion broke) and set it to statically link multi-threa...
by zobbo
Sat Oct 26, 2013 5:03 am
Forum: C++ Development
Topic: Using RTI/XML
Replies: 5
Views: 2153

Re: Using RTI/XML

Hmm, I didn't get very far, now when I try to compile I get this: "Cannot convert from void to bool" for the return value in xtictor.h // 1 param template<typename Class, typename T0> struct wxObjectAllocatorAndCreator_1 : public wxObjectAllocatorAndCreator { bool Create(wxObject * &o,...
by zobbo
Sat Oct 26, 2013 4:13 am
Forum: C++ Development
Topic: Using RTI/XML
Replies: 5
Views: 2153

Re: Using RTI/XML

So it looks like the wiki is wrong because I just copied it, this is pasted from the wiki: #include "person.h" #if wxUSE_EXTENDED_RTTI IMPLEMENT_DYNAMIC_CLASS_XTI(wxPerson, wxObject, "person.h") wxBEGIN_PROPERTIES_TABLE(wxPerson) wxPROPERTY( Age, int, SetAge, GetAge, 3, 0 /*flags...
by zobbo
Sat Oct 26, 2013 4:11 am
Forum: C++ Development
Topic: Using RTI/XML
Replies: 5
Views: 2153

Re: Using RTI/XML

doublemax wrote:The macro is called wxIMPLEMENT_DYNAMIC_CLASS_XTI (note the "wx" at the beginning).
Doh...thanks for that. :oops:

Cheers,
Zobbo
by zobbo
Fri Oct 25, 2013 9:25 am
Forum: C++ Development
Topic: Using RTI/XML
Replies: 5
Views: 2153

Using RTI/XML

Hi, I'm trying to use RTI to serialize an object. I realise it's experimental, but wondered if anyone had come across this issue. I'm using wxwidgets 2.9 with wxUSE_EXTENDED_RTTI =1. But I can't see any trace of IMPLEMENT_DYNAMIC_CLASS_XTI anywhere. Maybe I'm missing something obvious, I'm not sure....
by zobbo
Sat Aug 25, 2012 11:40 am
Forum: Compiler / Linking / IDE Related
Topic: Compiling 2.9.4 in VS2010
Replies: 1
Views: 1148

Re: Compiling 2.9.4 in VS2010

Okay, so now wxWidgets seems to be wrapping stl and primitives, I get the same issue with int's. using the relevant wxWidget header solves it. But I'd like to avoid that for now and use stl and native. I guess it is some config flag, this didn't occur in 2.9.0. If it sounds familiar let me know the ...
by zobbo
Sat Aug 25, 2012 7:30 am
Forum: Compiler / Linking / IDE Related
Topic: Compiling 2.9.4 in VS2010
Replies: 1
Views: 1148

Compiling 2.9.4 in VS2010

Hi, I'm trying to upgrade from VS 2005 Express and wxWidgets 2.9.1 to VS 2010 Express and wxWidgets 2.9.4. It's been a while since I've built the wxWidgets library so I may be missing something obvious. I have a lot of classes that were using STL std::string in VS2005 with 2.9.1 but now when I compi...
by zobbo
Mon Aug 23, 2010 5:02 am
Forum: C++ Development
Topic: Event loop questions
Replies: 2
Views: 1088

My thought you are trying to read a message twice, for example you have a message handler active and your filter routine. You may need a message skip in the other or routing situation. The possibility also is a library message handler that isn't cleaning up properly. Thanks Azagoras. Yes, maybe som...
by zobbo
Wed Aug 04, 2010 9:03 am
Forum: C++ Development
Topic: Event loop questions
Replies: 2
Views: 1088

Event loop questions

Hi, I have a problem when trying to exit an event loop I've created. I check if there is a pending event before exiting the loop, otherwise I may miss events that I'm waiting for. However there seems to be a mystery event stuck in the event queue which is preventing the loop exiting. I can force it ...
by zobbo
Sun Jul 04, 2010 8:16 am
Forum: C++ Development
Topic: Handling Events using derived Class of abstract class
Replies: 2
Views: 1178

void SubClass::OnMyEvent(CustomEvent &event) { std::cout << "SubClass::OnMyEvent\n"; event.Skip(); } should probably be void SubClass::OnMyEvent(CustomEvent &event) { BaseClass::OnMyEvent(event); std::cout << "SubClass::OnMyEvent\n"; event.Skip(); } There's no way to mak...
by zobbo
Sat Jul 03, 2010 10:46 am
Forum: C++ Development
Topic: Handling Events using derived Class of abstract class
Replies: 2
Views: 1178

Handling Events using derived Class of abstract class

Hi, I have a problem when using an abstract class, with a derived base class, and a further derived subclass. The intention is that on creating an abstract pointer to the sub class, when an event fires and I call event.Skip(), the sub class and base class both handle the event. Without the abstract ...
by zobbo
Tue May 11, 2010 12:16 pm
Forum: C++ Development
Topic: wxSocketBase::Unread usage
Replies: 2
Views: 930

Hi Zobbo, Another way to think of it: generally, unread is used because a partial message from the other side has arrived and there's no where to put it, so it's pushed back into the socket and until more data from the other side arrives to finish processing the partial component. Hope that's clear...