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

.NET (Core and Framework)

 
GeneralRe: Weird OnKeyDown bug... Pin
Jon Rista5-Dec-02 8:46
Jon Rista5-Dec-02 8:46 
GeneralCLASS DIAGRAM Pin
Anonymous3-Dec-02 0:58
Anonymous3-Dec-02 0:58 
GeneralRe: CLASS DIAGRAM Pin
David Stone3-Dec-02 19:05
sitebuilderDavid Stone3-Dec-02 19:05 
GeneralGraphics transform Pin
Stan Shannon2-Dec-02 7:26
Stan Shannon2-Dec-02 7:26 
Generalclass doesn't support automation Pin
Molina29-Nov-02 7:24
Molina29-Nov-02 7:24 
GeneralThrow exception in a constructor... Pin
Ray Cassick27-Nov-02 17:52
Ray Cassick27-Nov-02 17:52 
GeneralRe: Throw exception in a constructor... Pin
Jeff J2-Dec-02 8:43
Jeff J2-Dec-02 8:43 
GeneralRe: Throw exception in a constructor... Pin
Burt Harris8-Dec-02 12:38
Burt Harris8-Dec-02 12:38 
That's basically right.

The one exception to watch for is if any non-managed memory gets allocated as part of your constructor sequence, you need to put cleanup code in a handler for that case.

Generally you'll know if you're doing this directly, but if you create any objects that implement IDisposable, you should try to call their Dispose method. For example, Windows Forms Controls allocate a window handle. Its better to call Dispose on them before they become unreachable rather than wait for the GC to do it.



Burt Harris
GeneralMethods in WMI custom class Pin
QEugene_rus24-Nov-02 17:17
sussQEugene_rus24-Nov-02 17:17 
Generalhelp: executing a transform on a schema Pin
LongRange.Shooter22-Nov-02 18:49
LongRange.Shooter22-Nov-02 18:49 
GeneralImpersonate remote caller Pin
solidstore21-Nov-02 23:15
solidstore21-Nov-02 23:15 
QuestionHow to make DrawString draws normally without World Transformation (GDI+)'s effect? Pin
Ruxo Zheng21-Nov-02 16:36
Ruxo Zheng21-Nov-02 16:36 
GeneralExposing C# COM object from Windows Service Pin
solidstore21-Nov-02 3:35
solidstore21-Nov-02 3:35 
QuestionWindowsIdentity is unusable in Win9x/ME? Pin
Ruxo Zheng20-Nov-02 23:17
Ruxo Zheng20-Nov-02 23:17 
AnswerRe: WindowsIdentity is unusable in Win9x/ME? Pin
David Stone3-Dec-02 19:09
sitebuilderDavid Stone3-Dec-02 19:09 
GeneralRe: WindowsIdentity is unusable in Win9x/ME? Pin
Ruxo Zheng3-Dec-02 20:05
Ruxo Zheng3-Dec-02 20:05 
GeneralWants to use Point and Rectangle :(( Pin
Paul Selormey19-Nov-02 15:23
Paul Selormey19-Nov-02 15:23 
GeneralRe: Wants to use Point and Rectangle :(( Pin
ian mariano20-Nov-02 3:09
ian mariano20-Nov-02 3:09 
GeneralRegular Expression Pin
Pete Bassett19-Nov-02 6:48
Pete Bassett19-Nov-02 6:48 
GeneralRe: Regular Expression Pin
Pete Bassett19-Nov-02 22:24
Pete Bassett19-Nov-02 22:24 
GeneralBuilding Project Using Microsoft .NET Framework SDK Pin
yccheok16-Nov-02 17:00
yccheok16-Nov-02 17:00 
GeneralRe: Building Project Using Microsoft .NET Framework SDK Pin
James T. Johnson16-Nov-02 17:45
James T. Johnson16-Nov-02 17:45 
GeneralRe: Building Project Using Microsoft .NET Framework SDK Pin
Martin Haesemeyer16-Nov-02 22:03
Martin Haesemeyer16-Nov-02 22:03 
GeneralRe: Building Project Using Microsoft .NET Framework SDK Pin
James T. Johnson17-Nov-02 12:06
James T. Johnson17-Nov-02 12:06 
GeneralRe: Building Project Using Microsoft .NET Framework SDK Pin
Martin Haesemeyer18-Nov-02 3:38
Martin Haesemeyer18-Nov-02 3:38 

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.