Error compiling the program. Error cs0168

0

Hello, when I compile a program and execute it, I always get the same error in Visual Studio. Although in the end the program is executed, it is quite annoying. Error message:

'Tanji.vshost.exe' (CLR v4.0.30319: Tanji.vshost.exe): 'C:\Users\android\Desktop\c#\habbo\Tanji-master\Tanji\bin\Debug\Tanji.exe' cargado. Símbolos cargados.
'Tanji.vshost.exe' (CLR v4.0.30319: Tanji.vshost.exe): 'C:\Users\android\Desktop\c#\habbo\Tanji-master\Tanji\bin\Debug\Eavesdrop.dll' cargado. Símbolos cargados.
'Tanji.vshost.exe' (CLR v4.0.30319: Tanji.vshost.exe): 'C:\Users\android\Desktop\c#\habbo\Tanji-master\Tanji\bin\Debug\Sulakore.dll' cargado. Símbolos cargados.
El subproceso 0xa88 terminó con código 0 (0x0).
El subproceso 0x190c terminó con código 0 (0x0).
El programa '[5288] Tanji.vshost.exe' terminó con código 0 (0x0).

If you know the solution, it really would be good for me. Greetings and see you soon.

    
asked by Rivo Rivo 20.03.2016 в 17:29
source

1 answer

2

The code CS0168 is not an error code, it is a warning.

Indicates that you have declared a variable and you have not used it.

Example that would give this warning:

public static void Main()
{
   int j = 0;      // CS0168, de comenta la siguiente linea
   // j++;
   ClaseX a;       // CS0168, en lugar de este, intenta el código de la siguiente linea.
   // ClaseX a = new ClaseX();
}

Solution:

Look for the line of code that the compiler tells you and delete that variable, anyway you are not using it.

    
answered by 20.03.2016 в 20:57