Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Widgets - General questions or Mixed problems » exception failure
icon6.gif  exception failure [message #14420] Tue, 26 February 2008 03:33 Go to next message
bonami is currently offline  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


  • Attachment: ezcomm.zip
    (Size: 331.25KB, Downloaded 234 times)

[Updated on: Tue, 26 February 2008 03:37]

Report message to a moderator

Re: exception failure [message #14447 is a reply to message #14420] Tue, 26 February 2008 21:00 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
If I compile with MSC9, I get "writes to freed blocks". Which basically means you have some dangling pointer somewhere...
Re: exception failure [message #14473 is a reply to message #14420] Wed, 27 February 2008 07:11 Go to previous messageGo to next message
bonami is currently offline  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.
  • Attachment: test.zip
    (Size: 2.94KB, Downloaded 471 times)

[Updated on: Wed, 27 February 2008 08:43]

Report message to a moderator

Re: exception failure [message #14474 is a reply to message #14473] Wed, 27 February 2008 09:33 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
For starters:

int test::Runn(bool appmodal)
{
	Picture pic;
	Image m = IMAGECLASS::Get("i");
	DrawingDraw iw(m.GetSize());
	iw.DrawImage(0, 0, m);
	Drawing dr = iw;
	pic = dr;
	this->Add(pic);


After that, I was not able to crash the code.

Mirek
Re: exception failure [message #14513 is a reply to message #14420] Thu, 28 February 2008 03:28 Go to previous messageGo to next message
bonami is currently offline  bonami
Messages: 186
Registered: June 2007
Location: Beijing
Experienced Member
i'm driven crazy.
a slight change in ezcomm decides whether it crashes.
have nothing suspicious in either in window creation or button clicking.
icon3.gif  Re: exception failure [message #14834 is a reply to message #14420] Mon, 17 March 2008 08:45 Go to previous message
bonami is currently offline  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();
(runs upwards)
  • Attachment: test.zip
    (Size: 5.77KB, Downloaded 228 times)
Previous Topic: DropList bug when removing last item
Next Topic: How to hide a TopSeparatorFrame
Goto Forum:
  


Current Time: Tue Apr 23 14:18:28 CEST 2024

Total time taken to generate the page: 0.02185 seconds