Help - Search - Members - Calendar
Full Version: exception handling for http
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Development - (fb2k)
Acropolis
I'm not sure if this is my wrong usage for the exception handling of http filesystem, but I think most likely it is a bug, because it doesn't happen for file://, just http://

CODE

try
{
input_open_file_helper(p_filehint, "http://www.just-something.com/file.mp3", input_open_info_read, p_abort);
}
catch (exception e)
{
.......................
.......................
}


whatever you put in catch block will get a crash, as long as an exception is thrown.
the reason is corruption of heap, anybody can confirm this?
foosion
Try changing that catch clause to the following:
CODE
catch (exception const & e)
Acropolis
thank you, this is it.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.