Sir,
I have built the package of Twinkle on Mac. But when i run it, its crashing.
Initially while first running twinkle, .twinkle should be created in home
directory but that is not created in my case. What could be the problem? Please
guide!!
It shows this error: terminate called after throwing an instance of
'std::string'
when i debugged this error, i found the sources of errors as:
In main .cpp
wherever t_event_queue is declared there it shows error
like t_event_queue *evq_trans_mgr;
i found during debugging that main.cpp has error in t_event_queue class.
in the following line its showing error:
t_event_queue::t_event_queue() : sema_evq(0), sema_caught_interrupt(0) {}
in events.cpp
this error in sema.cpp is also shown.
t_semaphore::t_semaphore(unsigned int value) {
int ret;
ret = sem_init(&sem, 0, value);
if (ret != 0) {
string err = get_error_str(errno);
string exception =
"t_semaphore::t_semaphore failed to create a semaphore.\n";
exception += err;
throw exception;
}
}
Please guide me where could be the possible error.
--
Regards
-----------------
Ankush Jain