Click here to Skip to main content
15,892,809 members
Home / Discussions / C#
   

C#

 
GeneralRe: Generate Textbox on runtime Pin
Richard MacCutchan10-Mar-22 0:31
mveRichard MacCutchan10-Mar-22 0:31 
GeneralRe: Generate Textbox on runtime Pin
Saim Ullah 202110-Mar-22 0:41
Saim Ullah 202110-Mar-22 0:41 
GeneralRe: Generate Textbox on runtime Pin
Richard MacCutchan10-Mar-22 0:45
mveRichard MacCutchan10-Mar-22 0:45 
AnswerRe: Generate Textbox on runtime Pin
OriginalGriff10-Mar-22 0:12
mveOriginalGriff10-Mar-22 0:12 
GeneralRe: Generate Textbox on runtime Pin
Saim Ullah 202110-Mar-22 0:34
Saim Ullah 202110-Mar-22 0:34 
GeneralRe: Generate Textbox on runtime Pin
OriginalGriff10-Mar-22 1:08
mveOriginalGriff10-Mar-22 1:08 
GeneralRe: Generate Textbox on runtime Pin
Saim Ullah 202110-Mar-22 7:59
Saim Ullah 202110-Mar-22 7:59 
AnswerRe: Generate Textbox on runtime Pin
RedDk10-Mar-22 8:26
RedDk10-Mar-22 8:26 
GeneralRe: Generate Textbox on runtime Pin
Richard MacCutchan10-Mar-22 22:21
mveRichard MacCutchan10-Mar-22 22:21 
GeneralRe: Generate Textbox on runtime Pin
RedDk11-Mar-22 8:06
RedDk11-Mar-22 8:06 
QuestionC# File.Create terminating WimForm app wiith no error thrown ? Pin
BillWoodruff8-Mar-22 5:03
professionalBillWoodruff8-Mar-22 5:03 
AnswerRe: C# File.Create terminating WimForm app wiith no error thrown ? Pin
Pete O'Hanlon8-Mar-22 5:24
mvePete O'Hanlon8-Mar-22 5:24 
GeneralRe: C# File.Create terminating WimForm app wiith no error thrown ? Pin
BillWoodruff8-Mar-22 6:27
professionalBillWoodruff8-Mar-22 6:27 
GeneralRe: C# File.Create terminating WimForm app wiith no error thrown ? Pin
Pete O'Hanlon8-Mar-22 20:42
mvePete O'Hanlon8-Mar-22 20:42 
GeneralRe: C# File.Create terminating WimForm app wiith no error thrown ? Pin
BillWoodruff8-Mar-22 21:19
professionalBillWoodruff8-Mar-22 21:19 
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 

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.