The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
I'm guessing it's harder than you think.
Sure, if the disposable exists in small scope, but what if it is, for example, the return value of a function or contained in a closure?
Determining the scope and lifetime of a variable can be pretty tricky.
We build commercial ink-jet printing systems. My app is the UI for the control software, written in C#/WPF. Like you, I initially missed deterministic destructors in C#. After a while, I learned to not miss them.
When my app started consuming large amounts of memory when left running for long periods of time (several days), I missed it again. A lot.
With the help of SciTech's .NET Memory Profiler, I managed to get the memory problem under control through a couple of large changes and thousands of small ones. I discovered a couple anti-patterns in my coding style I fixed, but in the end a lot of them amounted to implementing deterministic destructors that ensure dangling references are released.
It was probably the most frustrating and annoying six weeks I've spent since I started with C#, .NET, and WPF - and that includes the learning curve for WPF.
In general, I would agree. I don't like this attitude of having resources hang around until the GC, in its infinite wisdom, decides to collect the garbage.
On the other hand, writing exception-safe classes is a non-trivial task, which may be beyond the abilities/knowledge of many programmers. In my experience, most programmers in C++ ignore the possibilities of exceptions; some attempt to handle them, but poorly; only a vanishingly small group write correct, efficient, exception-safe code.
If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack.
Does anyone know the name of the font used in the Bureau Veritas Logo ?
I'm talking about the white text in the burgandy rectangle which also has an oval emblem overlay LIKE THIS[^]
Better yet, can someone point me to that same logo in a Scalable Vector Graphics (SVG) format ?
I'm trying to place it, by itself, without a white rectangular frame, on a presentation.
The oval overlay, as an SVG file, would be helpful itself.
Ten or Twenty clicks at their website, plus another five searches with Google, find me lots of PNG files with the logo in a white rectangle. No. Wrong. I already have that. I want it in SVG, just the burgandy rectangle and the oval emblem overlaying it.
if ever I needed something like this I used to go to the sales and or marketing departments - they were the 'keepers of the official logos' for all paraphernalia, ie sending to the printers for official documents - so, if you/they have an official sales/marketing/media dept they'll likely supply you with the logo