Catatan

Tunjukkan catatan dari September, 2021

Git Pull Repository

Imej
  References: https://www.datree.io/resources/git-force-pull

.Net prevent load Microsoft Symbol Servers

Imej
Masa nak run Debug mode dekat .NET, code tu ada error. Lepas tu dengan secara tidak disengajakan tertekan retrieve Reference Microsoft Symbol Server.  Lee simpan kat sini je cara nak ubah balik setting tu.. kalau lupa boleh rujuk balik Bila Run, instead of .NET execute terus application tu, .NET pergi Load Microsoft Symbol Servers. Lama dowh dia load. Jadi dekat belah atas tu, klik Tools > Options... Akan display windows Options macam kat bawah ni. Pergi ke Debugging > Symbols. Lepas tu, pilih option yang belah bawah tu.. Load only specified modules . Kalau nak untick dua2 symbol tu pun boleh je.

.Net Symbol loading for d3d9.dll was skipped because it is not specified in the included modules list

Imej
Lee ada buat function untuk Media Player dekat .NET. Before ni okay je function mcm biasa. Tapi after Lee clean windows.. function tu tak jadi dah then keluar error mcm kat bawah.. Cara Lee solve isu ni adalah dengan update Driver, Error tu muncul sbb .pdb.dll file tu corrupt atau not updated Error seperti di bawah Cara solve, update drive DirectX atau GPU Driver

C# List

Note C# List<T> Rujukan: C# - List<T> -  https://www.tutorialsteacher.com/csharp/csharp-list How to Delete All Items Of A C# List -  https://www.c-sharpcorner.com/UploadFile/mahesh/delete-all-items-in-a-C-Sharp-list/ C# | Join() Method - https://www.geeksforgeeks.org/c-sharp-join-method-set-1/

How to debug C# - Breakpoint & Exception

Imej
 Cara untuk debug code dekat .NET Rujukan utama : Get started debugging multithreaded applications (C#, Visual Basic, C++) https://docs.microsoft.com/en-us/visualstudio/debugger/get-started-debugging-multithreaded-apps?view=vs-2019 Use breakpoints in the Visual Studio debugger https://docs.microsoft.com/en-us/visualstudio/debugger/using-breakpoints?view=vs-2019 Watch variables with Watch windows and QuickWatch https://docs.microsoft.com/en-us/visualstudio/debugger/watch-and-quickwatch-windows?view=vs-2019 7 Ways to Look at the Values of Variables While Debugging in Visual Studio https://devblogs.microsoft.com/devops/7-ways-to-look-at-the-values-of-variables-while-debugging-in-visual-studio/ Rujukan lain: Send messages to the Output window -  https://docs.microsoft.com/en-us/visualstudio/debugger/diagnostic-messages-in-the-output-window?view=vs-2019&redirectedfrom=MSDN&viewFallbackFrom=vs-2015 The program '[3984] dotnet.exe' has exited with code -2147450751 (0x80008081)

Algorithm Notes

 https://www.tutorialspoint.com/data_structures_algorithms/linked_list_algorithms.htm

C# Garbage Collector

  References: Garbage Collection and C# -  https://www.codingame.com/playgrounds/6179/garbage-collection-and-c Use of Finalize/Dispose method in C# -  https://stackoverflow.com/questions/898828/use-of-finalize-dispose-method-in-c-sharp When is it a good idea to force garbage collection? -  https://softwareengineering.stackexchange.com/questions/276585/when-is-it-a-good-idea-to-force-garbage-collection

Building Visual Studio Setup/Deploy project asks to install 2010 shell integrated

  I actually found a solution to this now over at   Microsoft's Visual Studio Developer Community   (Quoted relevant parts to prevent the likelihood of future dead links): 1- Open a cmd as admin. 2- Go to directory C:\Program Files (x86)\Common Files\microsoft shared\MSI Tools 3- run: regsvr32.exe /u mergemod.dll" 4- run: regsvr32.exe mergemod.dll" I followed these steps, restarted VS2017 and it worked perfectly. No more request for the VS2010 Integrated Shell installer! References:  https://stackoverflow.com/a/52031193 https://developercommunity.visualstudio.com/t/building-a-microsoft-visual-studio-2017-installer/198143#T-N217923

Config Connection MSSQL through Network

Imej
Config Connection MSSQL through Network f f f f  References :  https://dba.stackexchange.com/a/62300 http://lexisnexis.custhelp.com/app/answers/answer_view/a_id/1095989/~/sql-server-configuration-manager-general-information

Invoke or BeginInvoke cannot be called on a control until the window handle has been created

 Invoke or BeginInvoke cannot be called on a control until the window handle has been created Reference: https://stackoverflow.com/questions/7181756/invoke-or-begininvoke-cannot-be-called-on-a-control-until-the-window-handle-has