S
Samuel R. Neff
I came across this inside an exception handler today when reviewing
some of my code:
L_0010: call void
[Microsoft.VisualBasic]Microsoft.VisualBasic.CompilerServices.ProjectData::SetProjectError([mscorlib]System.Exception)
L_0015: call void
[Microsoft.VisualBasic]Microsoft.VisualBasic.CompilerServices.ProjectData::ClearProjectError()
This seems like a waiste of resources (admitedly very minor).
If the Err object is only availble when used with "On Error Goto"
(according to the docs at least) then why does the compiler fill the
object with structured exception handling (try/catch)?
If we're not using Err at all, can we tell the compiler to ignore it
and not make it available at all?
Thanks,
Sam
some of my code:
L_0010: call void
[Microsoft.VisualBasic]Microsoft.VisualBasic.CompilerServices.ProjectData::SetProjectError([mscorlib]System.Exception)
L_0015: call void
[Microsoft.VisualBasic]Microsoft.VisualBasic.CompilerServices.ProjectData::ClearProjectError()
This seems like a waiste of resources (admitedly very minor).
If the Err object is only availble when used with "On Error Goto"
(according to the docs at least) then why does the compiler fill the
object with structured exception handling (try/catch)?
If we're not using Err at all, can we tell the compiler to ignore it
and not make it available at all?
Thanks,
Sam