Restoring Delphi Style Exception Handling to D8.Net WinForms
CodeCentral: Restores Delphi expected exception handling
I got to some tinkering with D8.Net today after putting in the base boards in the basement. I never thought the boards would make much difference but it makes the room really look finished.
As part of my exploration of D8.Net I have been coding some refreshed library based code from an application I maintain in my spare time. In order to fully explore .NET I have been staying away from the VCL components and sticking with the WinForms provided as part of the .NET Framework. Probably one of the first shocking things any of us Delphi developers will find annoying is that the application simply goes away when an unhandled exception is let loose on the system. Perhaps only if you have experience developing without the VCL in Delphi do you realize that it is the VCL that provides this safety net. WinForms does not do this by default.
So, I figured out how to add this basic feature and that led to wanting to create is as a component that I could drop on the main form of any WinForms based app. It took a while to get through all the little bits but I finally made it there. For anyone doing components/controls they should take a peek at the KnobControl that is included in the WinForms demo directory in the Delphi 8 for .NET installation.
The results are a new Code Central entry. The link is above.
I got to some tinkering with D8.Net today after putting in the base boards in the basement. I never thought the boards would make much difference but it makes the room really look finished.
As part of my exploration of D8.Net I have been coding some refreshed library based code from an application I maintain in my spare time. In order to fully explore .NET I have been staying away from the VCL components and sticking with the WinForms provided as part of the .NET Framework. Probably one of the first shocking things any of us Delphi developers will find annoying is that the application simply goes away when an unhandled exception is let loose on the system. Perhaps only if you have experience developing without the VCL in Delphi do you realize that it is the VCL that provides this safety net. WinForms does not do this by default.
So, I figured out how to add this basic feature and that led to wanting to create is as a component that I could drop on the main form of any WinForms based app. It took a while to get through all the little bits but I finally made it there. For anyone doing components/controls they should take a peek at the KnobControl that is included in the WinForms demo directory in the Delphi 8 for .NET installation.
The results are a new Code Central entry. The link is above.
Labels: Delphi
0 Comments:
Post a Comment
Links to this post:
Create a Link
<< Home