|
|
|
||||||
|
Ice does not create any DLLs. So it's up to your code to load one or several DLLs.
If you want to avoid that your code is called by multiple threads, you have two possibilities:[list=1][*]You can simply set the server side thread pool size to one. Then only one thread will call operations on Ice objects.[*]You can add mutex protection to your operations, so that only one thread can enter them.[/list=1] |
|
||||||
|
Hello Marc,
The server will be calling either an EXE or a DLL through OLE automation. I'm actually having some trouble with converting char* to ::std::string right now. Considering my C++ skills, I think that the first one is the best option for me. So, how do I set the server side pool to 1? Thanks. Alex |
|
||||||
|
I'm a bit embarrased to ask but I couldn't make this work.
First off, the documentation states that: Quote:
Quote:
So how do I do this? Thanks. Alex |
|
||||||
|
Hi Alex,
Yes, we need to add more details on the configuration in the documentation! The --Ice parameters must be passed to the Ice::initialize() function, for example: int main(int argc, char* argv[]) { Ice::CommunicatorPtr communicator = Ice::initialize(argc, argv); //... } If you want to use the config file jSockets.cfg, you would use: program --Ice.Config=jSockets.cfg If you initialize the communicator in a DLL, you may not be able to get the argc/argv from the main program; you can then either manufacture the argc/argv or (easier) use initializeWithProperties(). Also note that properties such as the thread pool size affect the runtime behavior: pass them to your program, not slice2cpp! Best regards, Bernard |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| plz help:error in c++ when calling a webservice | erco | Help Center | 1 | 03-16-2006 03:30 AM |
| Is the IceGrid registry a single point of failure? | timp | Help Center | 1 | 01-16-2006 07:05 AM |
| Only multi-threaded DLL libraries can be used with Ice! | chenhong_sz | Bug Reports | 4 | 04-20-2005 05:23 AM |
| Ice and single threaded libraries | Nis Baggesen | Help Center | 4 | 03-22-2005 05:25 AM |
| single stream for two-way communication? | vukicevic | Help Center | 2 | 05-19-2003 04:17 PM |