Click here to Skip to main content
15,892,839 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionClickOnce/MageUI Deployment Error - Using MageUI to add other assemblies to the install. Pin
Jake Slack9-Sep-09 10:23
Jake Slack9-Sep-09 10:23 
Questionproblem with ling Pin
Ebube9-Sep-09 5:43
Ebube9-Sep-09 5:43 
Questionproblem with ling Pin
Ebube9-Sep-09 5:43
Ebube9-Sep-09 5:43 
QuestionUnderstanding using statement Pin
Vipul Mehta9-Sep-09 0:56
Vipul Mehta9-Sep-09 0:56 
AnswerRe: Understanding using statement Pin
Eddy Vluggen9-Sep-09 1:24
professionalEddy Vluggen9-Sep-09 1:24 
AnswerRe: Understanding using statement Pin
Jaime Olivares9-Sep-09 3:13
Jaime Olivares9-Sep-09 3:13 
AnswerRe: Understanding using statement Pin
DaveyM699-Sep-09 3:49
professionalDaveyM699-Sep-09 3:49 
AnswerRe: Understanding using statement Pin
supercat911-Sep-09 8:02
supercat911-Sep-09 8:02 
In general, 'Using' is an almost magic bullet to ensure that allocated resources will get freed when used as indicated above. It's not always perfect, however. The biggest gotcha I have found is that a constructor itself creates iDisposable objects which are supposed to get disposed at a later time and an exception is thrown in the constructor, the constructor itself must dispose of those objects, since the partially-constructed object will be going out of scope.

For example, using VB syntax:
Sub New(whatever_arguments...)
  Try
    .. construct the object
  Catch
    Me.Dispose()
    Throw
  End Try
End Sub

Note that the catch block doesn't swallow an exception nor even throw a new one; it simply re-throws the old exception so as to preserve the stack trace.
AnswerRe: Understanding using statement Pin
muktaa15-Sep-09 1:12
muktaa15-Sep-09 1:12 
AnswerRe: Understanding using statement Pin
Shameel22-Oct-09 5:37
professionalShameel22-Oct-09 5:37 
QuestionConfigurationManager: ConfigurationErrorsException after removing config attribute? [RESOLVED] Pin
Homncruse8-Sep-09 13:17
Homncruse8-Sep-09 13:17 
AnswerRe: ConfigurationManager: ConfigurationErrorsException after removing config attribute? Pin
Shameel22-Oct-09 5:41
professionalShameel22-Oct-09 5:41 
GeneralRe: ConfigurationManager: ConfigurationErrorsException after removing config attribute? Pin
Homncruse22-Oct-09 6:36
Homncruse22-Oct-09 6:36 
GeneralRe: ConfigurationManager: ConfigurationErrorsException after removing config attribute? Pin
Shameel22-Oct-09 8:56
professionalShameel22-Oct-09 8:56 
GeneralRe: ConfigurationManager: ConfigurationErrorsException after removing config attribute? Pin
Homncruse22-Oct-09 9:34
Homncruse22-Oct-09 9:34 
GeneralRe: ConfigurationManager: ConfigurationErrorsException after removing config attribute? Pin
Shameel23-Oct-09 8:23
professionalShameel23-Oct-09 8:23 
GeneralRe: ConfigurationManager: ConfigurationErrorsException after removing config attribute? Pin
Shameel23-Oct-09 8:25
professionalShameel23-Oct-09 8:25 
GeneralRe: ConfigurationManager: ConfigurationErrorsException after removing config attribute? Pin
Homncruse23-Oct-09 8:41
Homncruse23-Oct-09 8:41 
QuestionPartial loading of .net assemblies Pin
Jaime Olivares7-Sep-09 20:53
Jaime Olivares7-Sep-09 20:53 
AnswerRe: Partial loading of .net assemblies [modified] Pin
Eddy Vluggen7-Sep-09 21:12
professionalEddy Vluggen7-Sep-09 21:12 
GeneralRe: Partial loading of .net assemblies Pin
Jaime Olivares7-Sep-09 21:21
Jaime Olivares7-Sep-09 21:21 
GeneralRe: Partial loading of .net assemblies Pin
Eddy Vluggen7-Sep-09 21:45
professionalEddy Vluggen7-Sep-09 21:45 
GeneralRe: Partial loading of .net assemblies Pin
Jaime Olivares8-Sep-09 3:03
Jaime Olivares8-Sep-09 3:03 
GeneralRe: Partial loading of .net assemblies Pin
Not Active8-Sep-09 3:15
mentorNot Active8-Sep-09 3:15 
GeneralRe: Partial loading of .net assemblies Pin
Jaime Olivares9-Sep-09 3:03
Jaime Olivares9-Sep-09 3:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.