Search This Blog

Friday, December 21, 2018

Nodejs Assertion args[1]->IsString() failed

Nodejs Assertion args[1]->IsString() failed

node asserts in node_contextify.cc:631 Assertion `args[1]->IsString()' failed


Solution:
run:
 
npm i natives

Friday, June 8, 2018

current working directory node.js

node.js > process > cwd

process.cwd() returns the current working directory

Thursday, May 31, 2018

Get File Version of Process c#

c# > System.Diagnostics > Process Class > GetProcesses

GetProcesses: use this method to create an array of new Process components and associate them with all the process resources on the local computer. 

Get File Version of Process

var processes = Process.GetProcesses();

foreach (var process in processes)
{
try
{
              Console.WriteLine("Process: {0} FileVersionInfo: {1}", process.ProcessName, process.MainModule.FileVersionInfo.FileVersion);
       }
       catch
{ };
}

Friday, January 19, 2018

View Error List Visual Studio

Visual Studio -> Error List

Click View / Error List