COM objects that don’t have the expected lifetime can cause chaos when combined with .NETs garbage collection system.
Tag Archives: .NET
A WPF custom control in F#
What F# language and syntax features are required to implement a fundamentally object-oriented WPF custom control?
FormatException in WPF DataBinding
A FormatException is generated by the WPF DataBinding diagnostics if the original exception text contains curly brackets.
Getting IUnknown from __ComObject
How do you find the unmanaged COM object that’s being referenced by a .NET object?
Visualising Black-Scholes option pricing using F# and WPF
Using F# to create simple plots of Black-Scholes option prices and greeks using WPF.
IL analysis using F#
A description of using F# language features and reflection to enable basic analysis of .NET IL (intermediate language).
Troubleshooting an InvalidProgramException
One of the developers who uses the .NET/COM interop DLL that I wrote recently informed me that when they used it in a certain way, they would get a fatal System.InvalidProgramException. Nasty. So I set about seeing how I could find out exactly why this was happening: here are the gory details…
To spoil the ending [...]
