Search found 147 matches

by asadilan
Wed Dec 07, 2011 4:38 pm
Forum: C++ Development
Topic: wxlistctrl
Replies: 1
Views: 589

wxlistctrl

Hi All,

whats the equivalent of wxgrid begin batch and endbatch for wxListCtrl?

thanx
by asadilan
Tue Dec 06, 2011 11:20 pm
Forum: C++ Development
Topic: wxThread crash
Replies: 15
Views: 2073

Re: wxThread crash

ill try that.
msvc 2008 that i assume is ms compiler.
ill have to figure out how to debug in release mode.

Thanx
by asadilan
Tue Dec 06, 2011 11:12 pm
Forum: C++ Development
Topic: wxThread crash
Replies: 15
Views: 2073

Re: wxThread crash

doublemax wrote:Thread:

Code: Select all

m_mutex->TryLock()
Event handler:

Code: Select all

m_mutexTestVector.TryLock()
Is this one and the same mutex? It should be, otherwise it's useless.
yup its the same. i have tested it, it gave me a different error when they are not the same. :)
Thanx a lot for the replies doublemax :)
by asadilan
Tue Dec 06, 2011 11:08 pm
Forum: C++ Development
Topic: wxThread crash
Replies: 15
Views: 2073

Re: wxThread crash

how do i know how many entries i am adding? I was talking about the number of entries you add to your vector with "m_testVector->push_back(testDataItem)" 4 items how do i check whats happening inside the event handler? I mean your event handler that handles the wxEVT_UPDATE_TEST_LIST_DISPLAY event....
by asadilan
Tue Dec 06, 2011 11:00 pm
Forum: C++ Development
Topic: wxThread crash
Replies: 15
Views: 2073

Re: wxThread crash

how do i know how many entries i am adding?

how do i check whats happening inside the event handler?

how many event stack are there for 1 application ?
by asadilan
Tue Dec 06, 2011 10:14 pm
Forum: C++ Development
Topic: wxThread crash
Replies: 15
Views: 2073

Re: wxThread crash

void *cUpdateThread::Entry() { while(1) { cTestDataClass testDataItem(m_connName,m_userName,m_password);// IS this what you suspect the offending line is? wxString tempString; long longTemp; if (m_sqlStmt.execute_direct(wxString::Format("Select * from `%s`.`TestList` ;",SCHEMA_NAME))) { while (m_sq...
by asadilan
Tue Dec 06, 2011 9:54 pm
Forum: C++ Development
Topic: wxThread crash
Replies: 15
Views: 2073

Re: wxThread crash

wxString not being thread safe exists in both release and debug right?
ill try what you suggest.
thx
by asadilan
Tue Dec 06, 2011 9:34 pm
Forum: C++ Development
Topic: wxThread crash
Replies: 15
Views: 2073

Re: wxThread crash

the sleep is just to delay the update to GUI. ctestdataclass contains wxString m_testVector is a std::vector<ctestdataclass> ctestdataclass has the following: cTestDataClass::cTestDataClass() { Init(); m_dataConnName = GetDbConn()->GetConnStruct().connectionName; m_dataUserName = GetDbConn()->GetCon...
by asadilan
Tue Dec 06, 2011 8:53 pm
Forum: C++ Development
Topic: wxThread crash
Replies: 15
Views: 2073

wxThread crash

Hi All, I have got this code, that basically retrieves data from database every so ofter then display to a list ctrl. I used event method to modify the GUI(add item to list ctrl). The problem is in debug mode it runs fine but in release mode, it always crash on this->Sleep. This is an extended class...
by asadilan
Fri Dec 02, 2011 5:58 pm
Forum: C++ Development
Topic: Best way to make source browser
Replies: 11
Views: 1729

Re: Best way to make source browser

I am curious, whats the decision for source browser ?
going regex or going source parser?
by asadilan
Sat Nov 26, 2011 5:55 pm
Forum: C++ Development
Topic: 2 classes and wxDebug
Replies: 7
Views: 1358

Re: 2 classes and wxDebug

Thanx Auria,

ill try that.
anywhere i can refer to if i am curious what it does?

THanx again.
by asadilan
Fri Nov 25, 2011 6:56 pm
Forum: C++ Development
Topic: 2 classes and wxDebug
Replies: 7
Views: 1358

Re: 2 classes and wxDebug

i guess you mean using wxIMPLEMENT_DYNAMIC_CLASS in one of the cpp file for the class. I do use it. if i dont use that then i will not be able to use that class by itself can i? let me explain further. besides the usage of the 2 classes in 1 project, another project uses 1 class of the 2. cSetting A...
by asadilan
Fri Nov 25, 2011 4:16 pm
Forum: C++ Development
Topic: 2 classes and wxDebug
Replies: 7
Views: 1358

Re: 2 classes and wxDebug

these are 2 classes with the same name in 2 different folder but used in 1 project.
i have separated them by adding namespace in the other class.
so in the header file i do
namespace X{
//class content
}

it works fine. just that the pop up message is annoying....
by asadilan
Thu Nov 24, 2011 11:17 pm
Forum: C++ Development
Topic: 2 classes and wxDebug
Replies: 7
Views: 1358

2 classes and wxDebug

Hi all, i have got 2 classes of the same name has the same GUI layout but uses different data. these 2 classes are defined in 2 different project thus renaming one of them is something that id rather avoid at this time. the 2 classes are meant for database connection setting (user name, password, se...
by asadilan
Fri Nov 18, 2011 5:34 pm
Forum: C++ Development
Topic: setvalidator
Replies: 1
Views: 542

setvalidator

Hi all,

is there such thing as unsetvalidator? the opposite of setvalidator ?
in particular wxTextCtrl

Thanx