Issue Details (XML | Word | Printable)

Key: DNET-570
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Jiri Cincura
Reporter: MichaƂ Ziemski
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.
.NET Data provider

Loading error messages from a manifest resource fails on mono

Created: 13/Oct/14 01:13 PM   Updated: 23/Jan/15 07:20 AM
Component/s: ADO.NET Provider
Affects Version/s:
Fix Version/s:

Environment: mono 3.10 x64

 Description  « Hide
In method: FirebirdSql.Data.Common.IscException.CreateResourceSet(string resourceName)
the resourcestream is disposed before returning the resourceset. This doesn't work on mono (mono initializes the resourceset (reads the resourcestream) on
the first call to GetObject rather than in constructor).

Those resource set should be IMHO static properties initialized in the static constructor of IscException. In the current implementation at each iscexception a call is made to read the resource from disk, and a full resource dictionary is constructed. This is on aoverkill especially for server usages.

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order