No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hi, I was working on thread pool, which I used std::vector to implement the pool. [CODE] private: std::vector <handlerthread*> _pool; handlerthread* temp; void threadpool::addWorker() { handlerthread *temp; temp = new handlerthread(this); int x=_pool.size(); temp->start(&x); _pool.push_back(temp); } handlerthread* threadpool::getIdleWorker(){ int idx=-1; for (int i=0;i<_pool.size();i++){ temp=(handlerthread*)_pool[i]; //SIGSEGV HERE if(temp->isIdle()){ idx=i; break; } … |
|
Re:
Hello guys, I'm working on a new project in C++ and I need to parse some XML files, by reading some articles on the web I found that the most commonly used one is the Xerces library. However, I'm currently having troubles. Can anyone tell me how can I include … |
|
Dear fellow programmers, I had tried and successfuly created JVM and used JNI from C++ executable. But when I change my C++ executable into a shared library (.so, in UNIX) like this [CODE] extern "C" int callFromFakeSID(char* name) { JNIEnv *env; JavaVM * jvm; env = UART_Display_Java::create_vm(&jvm); if (env == … |
|
Re:
Hello everyone, Are there any approaches to invoke Java libraries from C/C++? Thanks in advance, George |