Opened 15 years ago
Last modified 15 years ago
#488 closed defect
Managed API: Managned Exception Constructor returns null — at Initial Version
Reported by: | gregboone | Owned by: | gregboone |
---|---|---|---|
Priority: | minor | Milestone: | 3.5.0 |
Component: | FDO API | Version: | 3.4.0 |
Severity: | 3 | Keywords: | |
Cc: | External ID: | 1209691 |
Description
Modify the implementation of
NAMESPACE_OSGEO_COMMON::Exception::Create(System::IntPtr ex)
- Change the if (IntPtr::Zero == ex) check to: if (IntPtr::Zero != ex)
- Have a single return point in the function
- Avoid trying to create a nested NAMESPACE_OSGEO_COMMON::Exception object for
the nested FDO exception if the nested FDO cause exception is NULL
- Add a try...catch block so that this method does not throw errors.
Note:
See TracTickets
for help on using tickets.