2 Topics

Member Avatar for
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
685
Member Avatar for theGraffo

Hey! I have a strange problem. When developing with Ruby on Windows Xp, if I try to run the .rb file with [CODE]ruby mycode.rb[/CODE] The execution stops returning: [CODE]/usr/lib/ruby/site_ruby/1.8/i386-cygwin/sdl.so: [BUG] Segmentation fault[/CODE] Of course, /usr makes no sense in windows. On the other hand, if I simply double-click mycode.rb from …

0
103

The End.