bonami Messages: 186 Registered: June 2007 Location: Beijing
Experienced Member
U++ says runtime requested to be terminated in an unusual way. so i suppose i fail to catch the exception. just click "listen", regardless of other input fields, to see this problem.
here's my functions,
Quote:
main.cpp 475: func_server(), should be caught at line 489
Quote:
ezudp.cpp 196: serve(), should be rethrown at line 204
Quote:
ezudp.cpp 56: relate(), exception thrown at line 96
bonami Messages: 186 Registered: June 2007 Location: Beijing
Experienced Member
this seems to have sth. to do with multi-threading-compilation.
in test.zip, there's a .upp.st, which is single thread's upp.
currently, test project fails just like my project.
but if you rename .upp.st to .upp, test project will work fine.
you can simply call l2() instead of l1() to simplify and it still fails in MT environment.
bonami Messages: 186 Registered: June 2007 Location: Beijing
Experienced Member
now here's improved code that crashes.
unimportatnt code macro'ed out.
line 185: socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);//if commented, it does not crash
throw std::string("throwing");
line 207: l2();
line 283: thrd.Run(callback1(ss, &cls::ll, (void *)NULL));
line 299: test().Runn();