|
Hey Keith,
just a remark on your code:
//--------------------------------------
///
/// Clean up any resources being used
///
public override void Dispose()
{
base.Dispose();
components.Dispose();
}
//--------------------------------------
Isn't C# handling the memory freeing?
|
|
|
|
|
That code was inserted by the VS wizard for a "C# Windows Application". As I understand it, C# suffers the same problem as Java. The destructor or finalize method is not called in a deterministic fashion since Garbage Collection is not deterministic. So the docs recommend adding methods with names like Dispose() or Close() if you are holding onto non-memory resources that should be freed immediately when they are no longer needed as opposed to waiting for the GC to run.
|
|
|
|
|
Been dabbling with C# a bit now; I like the structure of the language....
... but where in the heck am I going to find all the dox for provided namespaces? (Can't find 'em anywhere) ... stuff like you used:
using System;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Collections;
using System.ComponentModel;
using System.WinForms;
using System.Data;
|
|
|
|
|
C# is like Basic, in that, Visual Basic is programming in the Basic language, and Cool is programming in the C# language.
so, Visual Basic is Microsoft's implementation of Basic, and Cool is Microsofts implementation of C#.
(unless things have changed a LOT in the last 6 months)
|
|
|
|