Opened 10 years ago

Closed 10 years ago

#6933 closed Bugs (invalid)

Access-violations in C:boost\boost\boost\asio\basic_io_object.hpp

Reported by: boost@… Owned by: chris_kohlhoff
Milestone: To Be Determined Component: asio
Version: Boost 1.49.0 Severity: Problem
Keywords: Access-violation Cc: boost@…

Description

Moin Moin.

If the basic_io_object constructor is being interrupted by an exception, it will be creating an access-violation within the destructor due to the fact, that te reference will not have been initialised. For my local installation, I added a bool variable, tracking the initialisation and throw an exception in the get* functions, and do nothing within the destructor .

Tschuess,

Michael.

Moin Moin. If the basic_io_object constructor is being interrupted by an exception,

Attachments (1)

basic_io_object.hpp (3.1 KB ) - added by anonymous 10 years ago.

Download all attachments as: .zip

Change History (2)

by anonymous, 10 years ago

Attachment: basic_io_object.hpp added

comment:1 by chris_kohlhoff, 10 years ago

Resolution: invalid
Status: newclosed

Sorry, I do not understand your bug report. If the constructor exits with an exception then the destructor should not run at all.

Please reopen this ticket if you can supply a complete compilable test case that shows the problem, thanks.

Note: See TracTickets for help on using tickets.