Search found 64 matches

by johnnie
Tue Jul 13, 2010 8:55 am
Forum: Platform Related Issues
Topic: wxThread exits in windows
Replies: 10
Views: 2035

Hi, The Function doThreadStart uses the macro wxON_BLOCK_EXIT1 for registering the Exit function. thread.cpp /* static */ THREAD_RETVAL wxThreadInternal::DoThreadStart(wxThread *thread) { wxON_BLOCK_EXIT1(DoThreadOnExit, thread); wxScopeGuardImpl1 destructor is called by the compiler which invokes w...
by johnnie
Mon Jul 12, 2010 7:00 am
Forum: Platform Related Issues
Topic: wxThread exits in windows
Replies: 10
Views: 2035

Hi, Is that your real code you posted?? I have simplified my code for testing purpose. (e.g. I can't see the log line in the log you posted; do you mean that the thread entry method is not called at all?) Yes the entry functions of thread is not called. Before calling the entry function, wxWidgets g...
by johnnie
Sat Jul 10, 2010 5:26 am
Forum: Platform Related Issues
Topic: wxThread exits in windows
Replies: 10
Views: 2035

Hi, Thanks for your valuable inputs. I will explain the complete scenario. I have two process, the first one is called master and the second one is configuration server. When the application comes up the configuration server is started and master connects to the configuration server through the clie...
by johnnie
Fri Jul 09, 2010 11:35 am
Forum: Platform Related Issues
Topic: wxThread exits in windows
Replies: 10
Views: 2035

Hi all, Adding to the above query. The thread is created after creating a client socket. if (NULL == m_pGetSetSocket) { /* Create the socket*/ m_pGetSetSocket = new wxSocketClient(); if (NULL == m_pGetSetSocket) { return E_RET_ERROR; } m_pGetSetSocket->SetFlags(wxSOCKET_BLOCK); do { m_pGetSetSocket-...
by johnnie
Fri Jul 09, 2010 9:48 am
Forum: Platform Related Issues
Topic: wxThread exits in windows
Replies: 10
Views: 2035

wxThread exits in windows

Hi all, I am porting an application from Linux to windows which uses wxWidgets. I was able to compile and bring up the application in windows with some issues. I need your help in resolving the same. I have created a dynamic library for creating a secondary thread. The secondary thread exits for no ...
by johnnie
Fri Apr 09, 2010 12:55 pm
Forum: Compiler / Linking / IDE Related
Topic: wxWidgets on windows
Replies: 1
Views: 518

wxWidgets on windows

Hi,

I am trying to compile a simple hello world application of wxWidgets on windows using eclipse. Has any one tried the same.

Please help me to setup eclipse for widgets and compile my application in windows.

Waiting for your response

Johnnie
by johnnie
Wed Mar 24, 2010 4:57 am
Forum: C++ Development
Topic: wxFreeChart
Replies: 1
Views: 1127

Dynamic series

HI all,

I found out the way to update the graph dynamically. We can use dynamic series along with dynamic data set and histogram. We can also use vector dataset for dynamic graphing.

Regards
Johnnie Alan
by johnnie
Wed Mar 17, 2010 5:01 am
Forum: C++ Development
Topic: wxFreeChart
Replies: 1
Views: 1127

wxFreeChart

Hi all, I am using free chart for creating a bar type. I need to do it dynamically. Free chart provides only a static chart type. Is it possible to make it dynamic. The bar graph should increase or decrease based on the values passed dynamically during the execution of the program. We have used the ...
by johnnie
Mon Aug 10, 2009 4:01 am
Forum: C++ Development
Topic: Variable arguments
Replies: 4
Views: 921

Hi, thanks for your reply, The code snippet is #define logMessage(__X__,__X__,__VA_ARGS__); function() { logMessage(__FILE__,__LINE__,wxT("Destroying clients object")); } Log message declaration is logMessage(char *pcFileName,int iLineNumber,const wxChar *pcMessage, ...) Error Message given by the c...
by johnnie
Fri Aug 07, 2009 3:29 pm
Forum: C++ Development
Topic: Variable arguments
Replies: 4
Views: 921

Variable arguments

Hi all, I need one help in variable arguments. I have a function fnLogMessage(__FILE__,__LINE__,wxT("I am in the construction of session %d"),m_session); I want to #define this function to none if DEBUG flag is not enabled . Ex: #ifndef DEBUG #define fnLogMessage(__X__,__X__,__VA_ARGS__); #endif But...
by johnnie
Fri Jul 31, 2009 10:15 am
Forum: C++ Development
Topic: Stopping events in wxProcess
Replies: 0
Views: 387

Stopping events in wxProcess

Hi all, I have an application which spawns two child process using wxExecute. I want to block all the events releated to the child process if I kill the process from the parent. Ex: class parent : wxframe { ---- ---- createProcess(); TerminateProcess(); handleonTerminate(); } class Ack : wxprocess {...
by johnnie
Fri Jul 31, 2009 10:03 am
Forum: C++ Development
Topic: Disabling the Socket Events
Replies: 0
Views: 316

Disabling the Socket Events

Hi all, I am creating server-client application. I have created a GUI for starting this. When the user selects quit, I close the socket and destroy it. But even after destroying, the socket events are received. I used the following piece of code: on server side: m_serverSocket ->Notify(false) m_serv...
by johnnie
Sat May 09, 2009 11:07 am
Forum: Component Writing
Topic: Semaphore
Replies: 4
Views: 2685

Frank wrote: For interprocess use you need a named mutex, wich is not supported by wx.
do we have any method for interprocess communication.


Regards
Johnnie Alan J
by johnnie
Fri May 08, 2009 9:48 am
Forum: Component Writing
Topic: Semaphore
Replies: 4
Views: 2685

Semaphore

hi all,

I need some help in Semaphore's. The Semaphore's provided in wxWidgets is only limited to threads.

Does Widgets provides the functionality of semaphore's for different process, Like those in UNIX ?

Regards
Johnnie Alan J
by johnnie
Mon Feb 02, 2009 10:29 am
Forum: C++ Development
Topic: Maximum file size in Wxfile
Replies: 1
Views: 742

Maximum file size in Wxfile

Hi all

Is there any specific file size limit in wxFile::open ? My application stops writing (wxFile::Write) to the file after 1.3 GB.

Regards
Alan