Click here to Skip to main content
15,886,110 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# File.Create terminating WimForm app wiith no error thrown ? Pin
Richard Deeming8-Mar-22 21:49
mveRichard Deeming8-Mar-22 21:49 
GeneralRe: C# File.Create terminating WimForm app wiith no error thrown ? Pin
BillWoodruff8-Mar-22 22:08
professionalBillWoodruff8-Mar-22 22:08 
AnswerRe: C# File.Create terminating WimForm app wiith no error thrown ? Pin
Randor 9-Mar-22 9:05
professional Randor 9-Mar-22 9:05 
GeneralRe: C# File.Create terminating WimForm app wiith no error thrown ? Pin
BillWoodruff9-Mar-22 9:29
professionalBillWoodruff9-Mar-22 9:29 
GeneralRe: C# File.Create terminating WimForm app wiith no error thrown ? Pin
Randor 9-Mar-22 9:36
professional Randor 9-Mar-22 9:36 
GeneralRe: C# File.Create terminating WimForm app wiith no error thrown ? Pin
BillWoodruff9-Mar-22 22:00
professionalBillWoodruff9-Mar-22 22:00 
GeneralRe: C# File.Create terminating WimForm app wiith no error thrown ? Pin
Randor 9-Mar-22 22:56
professional Randor 9-Mar-22 22:56 
Answersolved thanks to Randor ... but, it's a kinky one ! Pin
BillWoodruff10-Mar-22 3:23
professionalBillWoodruff10-Mar-22 3:23 
@Randor

Thanks to David (aka Randor) !

Well, turns out I did not look deeply enough into the EmsiSoft AV/Firewall records, as David suggested.

Note: size of test file saved as .xml 1017; size saved as .gz 369.

EmsiSoft was quarantining the WinForm app .exe. I set permission for the entire folder containing my C# work in progress ...code works ... ... setting permission for VS 2019 and 2022 had no effect. Why the whole folder ? I was too lazy to set it for one specific project.

Here's what the kinks were:

1. no run-time notification pop-up from EmsiSoft which is normally ... a frequent popper-upper. And, once quarantined, why should the app run partially at all ? I will write about this to them, and, aaso ask them what could happen if I were using GitHub storage.

2. why should standard XML writing:
using (var writer = new FileStream(fullfilename, FileMode.OpenOrCreate, FileAccess.Write
                   //FileIOPermissionAccess.AllAccess
               ))
        {
            dcs.WriteObject(writer, instance);
        }
work, but, why does this:
using (FileStream compressedFileStream = new FileStream(fullfilename, FileMode.OpenOrCreate, FileAccess.Write))
{
    using (GZipStream compressionStream =
           new GZipStream(compressedFileStream, CompressionLevel.Optimal, false))
    {
        dcs.WriteObject(compressionStream, instance);
        compressionStream.Close();
    }
}
trigger AV interception ? Is there an MS bug here ?
«The mind is not a vessel to be filled but a fire to be kindled» Plutarch


modified 11-Mar-22 6:08am.

PraiseRe: solved thanks to Randor ... but, it's a kinky one ! Pin
Randor 11-Mar-22 12:27
professional Randor 11-Mar-22 12:27 
GeneralRe: solved thanks to Randor ... but, it's a kinky one ! Pin
BillWoodruff11-Mar-22 17:04
professionalBillWoodruff11-Mar-22 17:04 
Questionc# programming Pin
Member 155562105-Mar-22 5:01
Member 155562105-Mar-22 5:01 
AnswerRe: c# programming Pin
Dave Kreskowiak5-Mar-22 5:13
mveDave Kreskowiak5-Mar-22 5:13 
AnswerRe: c# programming Pin
OriginalGriff5-Mar-22 5:56
mveOriginalGriff5-Mar-22 5:56 
QuestionCrystalReport Viewer Pin
Luis M. Rojas3-Mar-22 5:39
Luis M. Rojas3-Mar-22 5:39 
AnswerRe: CrystalReport Viewer Pin
Mycroft Holmes3-Mar-22 11:44
professionalMycroft Holmes3-Mar-22 11:44 
QuestionC# List Pin
Member 155527492-Mar-22 1:41
Member 155527492-Mar-22 1:41 
AnswerRe: C# List Pin
Richard Deeming2-Mar-22 2:09
mveRichard Deeming2-Mar-22 2:09 
SuggestionWhy does the music stop ? Pin
Member 155522211-Mar-22 19:46
Member 155522211-Mar-22 19:46 
GeneralRe: Why does the music stop ? Pin
OriginalGriff1-Mar-22 20:01
mveOriginalGriff1-Mar-22 20:01 
GeneralRe: Why does the music stop ? Pin
Pete O'Hanlon1-Mar-22 22:14
mvePete O'Hanlon1-Mar-22 22:14 
QuestionC# Trouble passing a string var : Form1 to Forms and back again Pin
Member 155520191-Mar-22 12:09
Member 155520191-Mar-22 12:09 
AnswerRe: C# Trouble passing a string var : Form1 to Forms and back again Pin
OriginalGriff1-Mar-22 20:00
mveOriginalGriff1-Mar-22 20:00 
QuestionRefer a class in C# but don't recognized Pin
ernteSKY24-Feb-22 14:38
ernteSKY24-Feb-22 14:38 
AnswerRe: Refer a class in C# but don't recognized Pin
OriginalGriff24-Feb-22 19:35
mveOriginalGriff24-Feb-22 19:35 
QuestionConditional Compiler Symbols Pin
Kevin Marois22-Feb-22 11:00
professionalKevin Marois22-Feb-22 11:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.