Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~1K People Reached
Favorite Forums
Favorite Tags

4 Posted Topics

Member Avatar for hasrule

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; } …

Member Avatar for mike_2000_17
0
693
Member Avatar for eliza2044

I also have tried to build the xerces library. After running, [CODE] $ ./configure --disable-static CC=gcc-4.1 CXX=g++-4.1 CFLAGS=-O3 CXXFLAGS=-O3[/CODE] I got [CODE] checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe …

Member Avatar for hasrule
0
141
Member Avatar for hasrule

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 == …

0
72
Member Avatar for George2

Hi freesoft_2000 I ve tried succesfully calling JVM and using Java fields from C++ as executable. But when I tried to call Java method from C++ as shared library (.so, in UNIX). it failed. Do you have any suggestion about that? Should I use socket communication instead? regards, Hasrul.

Member Avatar for hasrule
0
532

The End.