Search found 64 matches

by johnnie
Thu Aug 18, 2011 9:12 am
Forum: C++ Development
Topic: Socket and Event handling
Replies: 0
Views: 869

Socket and Event handling

Hi all, I have GUI process which acts as the tracing server and any tracing clients can connect to it. The rate at which the data is sent is 1 write message per 0.925ms from one client. Say If Client sends 200 Write message but only 100 read events are received at that particular interval. So basica...
by johnnie
Thu Jul 28, 2011 4:43 am
Forum: Component Writing
Topic: No Idle events when GUI is minimized
Replies: 2
Views: 2065

No Idle events when GUI is minimized

Hi all,

I am facing issue in Idle Event. I have created a GUI with provides many functions like memory profiling, tracing etc., I am using Idle events for changing state of the GUI control.Idle events doesn't get generated when the GUI is minimized. Kindly Help.

~ Johnnie
by johnnie
Tue Jan 04, 2011 6:26 am
Forum: C++ Development
Topic: Stop Scroll in TextBox
Replies: 1
Views: 489

Stop Scroll in TextBox

Hi all, I have enabled scroll for multi line text control. The text control is been updated at a speed of 200 lines/minute. I want to Stop the scrolling i.e freeze at the current line and resume the scroll on a button click. I have created a button to handle stop scroll and scroll. Kindly help me in...
by johnnie
Thu Aug 12, 2010 10:51 am
Forum: Platform Related Issues
Topic: Unbale post event from dll
Replies: 0
Views: 632

Unbale post event from dll

Hi all, I have created a dynamic link library (DLL). When I try to post a custom event I am getting the following error from debugger. #0 0x7c90100b in ntdll!RtlEnumerateGenericTableLikeADirectory () from C:\SYSROOT\system32\ntdll.dll #1 0x6d64dfe5 in wxCriticalSection::Enter() () from d:\Atlas_port...
by johnnie
Wed Aug 04, 2010 11:46 am
Forum: Platform Related Issues
Topic: Events in Server scokets.
Replies: 2
Views: 745

Hi all, After lots of trail and errors I was able to resolve this issue. Instead of BLOCKING (wxSOCKET_BLOCK) I used wxSOCKET_NOWAIT and handled the error WOULD_BLOCK. I changed the ReadMsg to Read and handled the errors. iCount=0; while(iCount!= length) { pCurrentSock->Read((pucSockData + iCount) ,...
by johnnie
Wed Aug 04, 2010 11:37 am
Forum: Platform Related Issues
Topic: wxThread exits in windows
Replies: 10
Views: 1975

anyone to help ?
by johnnie
Wed Aug 04, 2010 9:26 am
Forum: Platform Related Issues
Topic: Threads in dll
Replies: 0
Views: 579

Threads in dll

Hi all, I have non GUI class which can be used by any of the wxWidgets application. I need to create a dynamic library. class ConfigClient: public wxThread { public: ConfigClient(void); virtual ~ConfigClient(void); static ConfigClient *getConfigInstance(int sessionId = 0); static void closeConfigIns...
by johnnie
Tue Aug 03, 2010 11:43 am
Forum: Platform Related Issues
Topic: Socket Read blocks indefinitely
Replies: 3
Views: 1088

There is a bug reported for the same problem. I have over come this issue by setting the flags of the client to wxSOCKET_BLOCK| wxSOCKET_NOWAIT. After resolving this I am facing a new problem related to threads and sockets. I am creating two client sockets on client.cpp's main thread. I continuously...
by johnnie
Fri Jul 30, 2010 8:35 am
Forum: Platform Related Issues
Topic: Socket Read blocks indefinitely
Replies: 3
Views: 1088

Attaching the file
by johnnie
Fri Jul 30, 2010 7:37 am
Forum: Platform Related Issues
Topic: Socket Read blocks indefinitely
Replies: 3
Views: 1088

Socket Read blocks indefinitely

Hi all, I am currently working on wxWidgets windows version. I have a serious issue with the read. In order to reproduce this issue, i have changed the sample application provided with wxWidgets for your reference. The sample code is used with slight change in the client.cpp. Instead of one client, ...
by johnnie
Wed Jul 21, 2010 8:37 am
Forum: Platform Related Issues
Topic: Events in Server scokets.
Replies: 2
Views: 745

Events in Server scokets.

Hi all, I am working on wxWidgets 2.8.10 on windows platform. I have a peculiar problem with the sockets. I have a server and two clients are connected to it. If I make the first client BLOCKING, events like INPUT/LOST of the client two are no reaching server. And also the data which is sent from se...
by johnnie
Mon Jul 19, 2010 7:26 am
Forum: Platform Related Issues
Topic: Unable to receive socket events
Replies: 2
Views: 768

Hi all,

After a long struggle I was able to figure out the issue. The issue was due to the sockets flags. The flags are set to SetFlags(wxSOCKET_BLOCK);.

After commenting this line out, every thing started to work fine.

Thanks for all help extended

Regards
Johnnie Alan J
by johnnie
Fri Jul 16, 2010 3:38 am
Forum: Platform Related Issues
Topic: Unable to receive socket events
Replies: 2
Views: 768

Hi all,

Any solution ?

Regards
Johnnie Alan J
by johnnie
Thu Jul 15, 2010 7:51 am
Forum: Platform Related Issues
Topic: Unable to receive socket events
Replies: 2
Views: 768

Unable to receive socket events

Hi all, I have been working on porting a application from Linux to windows. I am facing issues related to threads and sockets. I will explain the complete scenario here. I have a server listening for the socket connections. The client is a static library which does two things. Establishes socket con...
by johnnie
Tue Jul 13, 2010 10:30 am
Forum: Platform Related Issues
Topic: wxThread exits in windows
Replies: 10
Views: 1975

Hi all,

I am attaching the sample application along with this post for your reference.

Please help in this regard.

Moreover I am not able to create a import library (.lib) for the dll.

Regards
Johnnie