WPF Window closing and async / await

  Partea cea mai buna la async/await este ca acest cod se scrie usor .Usurinta aceasta vine de la un State Machine ( vezi text  sau video  ) si care aduce penalitati de performanta daca nu e folosit cum trebuie (https://ayende.com/blog/174689/the-cost-of-the-async-state-machine ) Vreau sa discut despre un async/ await specific, pe Windows_Closing din WPF. Trebuia […]

Continue reading →

Build any cpu = 32 != 64

Sunt tot felul de diferente intre 32 si 64 de biti. Iar “Any CPU” , teoretic, ar trebui sa te ajute – insa  citeodata te incurca Exemplu: Sa zicem ca avem un programel care listeaza toate procesele       Compilat pe AnyCPU si pornit cu drepturi de admin, eroarea este Unhandled Exception: System.ComponentModel.Win32Exception: A […]

Continue reading →

Application Starters

I have started an application about CDC and TemporalTables . It is made in Windows Forms( to be much easy ) –and it is a refactoring of http://cdchelper.codeplex.com/ . You will see in Windows Store soon , I hope. It is amazing for me the amount of packages/references used for a simple windows forms project […]

Continue reading →

Playlist 5 Minutes .NET

  Acestea sunt videourile de la 5 Minutes .NET https://www.youtube.com/playlist?list=PL4aSKgR4yk4OnmJW6PlBuDOXdYk6zTGps Title Description Url 5MinSimpleDI Simple DI with Structure Map with logging as an example. Code Source at  https://github.com/ignatandrei/ToolsAndUtilities/tree/master/VS2015/SimpleDI https://www.youtube.com/watch?v=dBhCFR0Jf60 5MinSimplePlugin Simple plugin demo in C#. Event and Interface.Code at https://github.com/ignatandrei/ToolsAndUtilities/tree/master/VS2015/EventsAndPlugins https://www.youtube.com/watch?v=S06xlpvus-I 5MinPluginOffice plugins in office( with powerpoint example) https://www.youtube.com/watch?v=4n1_L207qEM 5MinMVVM_JS MVVM with javascript tutorial https://www.youtube.com/watch?v=clXDXeSmvss […]

Continue reading →

Architecti–din nou

Am citit de multe ori Joel Spolsky, http://www.joelonsoftware.com/items/2008/05/01.html si http://www.joelonsoftware.com/articles/fog0000000018.html . Problema este ca ei nu isi dau seama. De ce scriu asta? Pentru ca am citit un blogpost nou , http://mkartak.blogspot.ro/2016/07/unknown-disposables-disposing-of-non.html . Treaba ar fi rezolvata mai simplu daca IContract ar fi IContract: IDisposable si ar fi utilizat un simplu using. Pentru ca nu […]

Continue reading →

Dynamic and IDisposable and ReleaseComObject

Data trecuta am scris un post despre cum trebuie apelat IDisposable pentru fiecare obiect COM pe care il aveti. Nu ar fi mai bine daca s-ar face automat prin IDisposable – ca sa utilizam usor using ? Problema este duala De imitat obiectul respectiv cu proprietati si metode ( duck typing ) De chemat Marshal.ReleaseCOMOject pe Dispose   O […]

Continue reading →

Marshal.ReleaseCOMObject

Ce faceti cind instanta de Excel nu moare , desi setati toate la NULL ? Utilizati Marshal.ReleaseComObject Atentie sa faceti la TOATE obiectele ( hint: Daca aveti doua puncte, aveti doua obiecte) De ex: Se va transofrma in Video la https://youtu.be/wOQLimzYqAM Surse la https://github.com/ignatandrei/ToolsAndUtilities

Continue reading →