Search Unity

Bug File with no name and icon propagate in all Project folder and unable to delete. Solution: Just rest

Discussion in 'Editor & General Support' started by AlanMattano, Sep 10, 2020.

  1. AlanMattano

    AlanMattano

    Joined:
    Aug 22, 2013
    Posts:
    1,501
    Minor Bug

    I make a new C# file and when I was giving to it the name, by mistake I passed into the name this script


    // Print the file.
    public void Printing()
    {
    try
    {
    streamToPrint = new StreamReader (filePath);
    try
    {
    printFont = new Font("Arial", 11);
    PrintDocument pd = new PrintDocument();
    pd.PrintPage += new PrintPageEventHandler(pd_PrintPage);
    // Print the document.
    pd.Print();
    }
    finally
    {
    streamToPrint.Close() ;
    }
    }
    catch(Exception ex)
    {
    MessageBox.Show(ex.Message);
    }
    }


    Turns out the file was not created but the reference was there with no name and no icon. This reference blanc reference file was all across the Project (one in each folder). The file was not showing in explorer.

    To fix this I just restarted the project.
    I did not make a bug report.