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

.NET (Core and Framework)

 
GeneralRe: Weird OnKeyDown bug... Pin
Jeff J4-Dec-02 18:32
Jeff J4-Dec-02 18:32 
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 
I have to keep fighting the urge to assume everthing's like C++, but that seems to be right.

I tried creating an object as described, caught the exception in the function where the object was created, and nothing was returned. That is, since the constructor never finishes, a pointer to the object (ahem, I mean a reference to the "reference type") never gets assigned. I would imagine the object actually gets created on the gc heap before the constructor is called, or else nothing could be assigned in the ctor, but that only the gc knows about it if the ctor fails (interrupted by an exception).

The destructor (finalize method in framework paralance) does eventually get called, when the gc gets around to it. I forced it by calling GC.Collect(), and all was fine.

Cheers
GeneralRe: Throw exception in a constructor... Pin
Burt Harris8-Dec-02 12:38
Burt Harris8-Dec-02 12:38 
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 

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.