Search found 23 matches

by NicolasC
Wed Sep 28, 2005 2:58 pm
Forum: C++ Development
Topic: Multiple clients for a server?
Replies: 3
Views: 1121

Thx for answering. Could you please tell me where the socket FAQ is ? Did not find it on the wxwidget.org FAQ, nor on Google, nor (...) From your answer, I conclude that multiple clients can connect (eg : call wxClient::MakeConnection) to the same server, at the same time. Right ? ADditionnally, wou...
by NicolasC
Wed Sep 28, 2005 1:53 pm
Forum: C++ Development
Topic: Multiple clients for a server?
Replies: 3
Views: 1121

Multiple clients for a server?

Hi all, My app launches several background programs at the same time. Each of them must exchange a few data with the App while runing. I plan on using the IPC wxClient/wxServer classes. I thought that a server can only connect a single client on a given service/port. However, the ipc sample in the w...
by NicolasC
Fri Jul 22, 2005 11:06 am
Forum: Compiler / Linking / IDE Related
Topic: [Mandrake 10.1] Compilation / Installation problems
Replies: 1
Views: 628

[Mandrake 10.1] Compilation / Installation problems

Hi all. I don't succeed to compile and install the wxGTK-2.6.1 and wxGTK-2.6.0 versions of wxWidget on my system. I use the **standard** Linux Mandrake 10.1 distribution : uname -a : Linux Dell_Rech_3 2.6.8.1-12mdk #1 Fri Oct 1 12:53:41 CEST 2004 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz unknown GNU/Li...
by NicolasC
Thu Apr 28, 2005 5:03 pm
Forum: C++ Development
Topic: Portable floating point files
Replies: 7
Views: 1454

Hi all, and especially Ryan - wish you may read this message ! I had a look on the work by Malcolm Slaney and Ken Turkowski, on which the function Convert(to/from)IeeeExtended provided by wx are based. Indeed, Malcom S and Ken T had also writen methods for reading and writing 32 and 64 bits floating...
by NicolasC
Wed Apr 27, 2005 9:07 am
Forum: C++ Development
Topic: Portable floating point files
Replies: 7
Views: 1454

Hy Ryan, hi all, Thanks for the advice. It will help a lot. Though I am affraid it may be not sufficient. As you said, reading and wrting those 32 or 64 bits floats seems to be quite tricky. The manipulations I red in the portable librairies that handle such 32 or 64 bits float numbers are rather co...
by NicolasC
Tue Apr 26, 2005 5:42 pm
Forum: C++ Development
Topic: Portable floating point files
Replies: 7
Views: 1454

Hi Ryan, as far as I checked the code within wx, wxDataInputStream::readDouble, wxDataInputStream::writeDouble are concerned with IEEE extended floating point number, that is 80 bits numbers. Do you mean there is a way to change this behaviour, in order to read / write 64 or 32 floating point number...
by NicolasC
Tue Apr 26, 2005 5:39 pm
Forum: C++ Development
Topic: Portable floating point files
Replies: 7
Views: 1454

Hia ABX, Hi all, Indeed, src/common/extended.c is dedicated to the conversion from and to IEE extended 80 bites floating point numbers (well, to complete your memory, it is embeded in wxDataOutput / Input Streams, AFAIK). Let me be a bit more precise... My **problem** at the moment is to read / writ...
by NicolasC
Tue Apr 26, 2005 5:01 pm
Forum: C++ Development
Topic: Portable floating point files
Replies: 7
Views: 1454

Portable floating point files

Hi all, I am currently writing a piece of code for reading and writing files in a IFF based format. For portability issue, I planed on using wxWidget (at least the wxBase library). The files are fully writen in BIG_ENDIAN. Floating point datas in the files should be either : - 32 bits floating point...
by NicolasC
Thu Apr 14, 2005 9:37 am
Forum: C++ Development
Topic: wxThread and wxMutexes
Replies: 0
Views: 957

wxThread and wxMutexes

A couple of suggestions in this post. ------------------------- recursive wxMutex ------------------------- It seems that recursive mutexes are not supported by all systems. Though, they are useful (for example when one need to call a method that is portected from within a method which is also prote...
by NicolasC
Thu Apr 14, 2005 9:21 am
Forum: General Development
Topic: Threads ! - multithreading with wxThread
Replies: 8
Views: 2802

Hi again. Thx for answers. Think I agree with you mtew, about the destruction process. AFAIK, destructor of "upper cl:asses" are called automatically (which is not the case with other methods). But this does not mean that destructor of "down classes" are called, if the destructor is not virtual. Wel...
by NicolasC
Tue Apr 12, 2005 5:22 pm
Forum: General Development
Topic: Threads ! - multithreading with wxThread
Replies: 8
Views: 2802

Thx again. Well, just to make sure... Sorry, but I don't really get it.. Do you mean that wxThread::Delete does not wait for the thread to terminate ? If it does not, what means the following words found in the doc : However, if the thread doesn't call TestDestroy often enough (or at all), the funct...
by NicolasC
Tue Apr 12, 2005 4:38 pm
Forum: General Development
Topic: Threads ! - multithreading with wxThread
Replies: 8
Views: 2802

Re: Threads ! - multithreading with wxThread

Thanks upCASE. This simply means that calling wxThread::Delete() will in fact do nothing, but simply set an internal status. Calling wxThread::TestDestroy() in your thread will return true. Then, you'll have to manually end the thread. You could use wxThread::Kill() here if you really need to "abort...
by NicolasC
Tue Apr 12, 2005 3:46 pm
Forum: General Development
Topic: Threads ! - multithreading with wxThread
Replies: 8
Views: 2802

Threads ! - multithreading with wxThread

Hi all, I am currently implementing wxThreads... and I encounter a few difficulties with the API. Here are the spec. I work on : I need to abort (stop, cancel) a wxThread. The abort method should return after the thread is really aborted, and the memory allocated freed. Well... I may use wxThread::D...
by NicolasC
Thu Mar 24, 2005 1:35 pm
Forum: General Development
Topic: "Interval Timer" - regular awaking of a Working Th
Replies: 1
Views: 1049

I reply to myself, in case it could be useful for somebody else. So far, the best I found is to : - set up a thread dedicated to the generation of regular "events" - get the current time, store it as 'next event time' (wxDateTime::Now()) Then, in a loop : { - add the timer time to the 'next event ti...
by NicolasC
Thu Mar 24, 2005 9:03 am
Forum: C++ Development
Topic: Rendering with wxGLCanvas using THREADs
Replies: 22
Views: 4575

Well,

Perhaps you should try ::wxPostEvent(...), which as far as i know was designed just for what you are looking for (posting an event from a working thread).
As far I understand (though I am new to wxWidget !) AddPendingEvent is not thread safe.
All the best