Click here to Skip to main content
15,890,282 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: I just did something really stupid ☹️ Pin
OriginalGriff8-Dec-21 21:18
mveOriginalGriff8-Dec-21 21:18 
GeneralRe: I just did something really stupid ☹️ Pin
Randor 8-Dec-21 21:51
professional Randor 8-Dec-21 21:51 
GeneralRe: I just did something really stupid ☹️ Pin
theoldfool9-Dec-21 0:37
professionaltheoldfool9-Dec-21 0:37 
GeneralRe: I just did something really stupid ☹️ Pin
DerekT-P9-Dec-21 6:20
professionalDerekT-P9-Dec-21 6:20 
GeneralRe: I just did something really stupid ☹️ Pin
Randor 9-Dec-21 19:24
professional Randor 9-Dec-21 19:24 
GeneralRe: I just did something really stupid ☹️ Pin
DerekT-P9-Dec-21 23:16
professionalDerekT-P9-Dec-21 23:16 
GeneralRe: I just did something really stupid ☹️ Pin
Randor 9-Dec-21 23:52
professional Randor 9-Dec-21 23:52 
GeneralMS C# weirdness: GZip code is talking to China ? Pin
BillWoodruff8-Dec-21 19:47
professionalBillWoodruff8-Dec-21 19:47 
I have my own serialize/deserialize code that i've been using for years that, optionally, uses the GZip facility MS provides in System.IO.Compression, and, System.Runtime.Serialization.

A new C# WinForm project i started in VS22 to try and see what using Blazor webassembly was like, and that used Gzip to save state compiled, but, would not run ... no error message; it just exited the app with no output.

Figuring there was some weirdness goin' down with Blazor/VS 22, I went and tested a previous VS2019 project that used the old library; saving using GZip showed the same puzzling behavior., The code that invokes GZip is bog-standard:
using System.IO.Compression;
using System.Runtime.Serialization;
// in some method where 'dcs is a DataContractSerializer  instance, 'flename is valid file name
using (FileStream compressedFileStream = File.Create(filename))
{
    using (var compressionStream =
           new GZipStream(compressedFileStream, CompressionLevel.Optimal, true))
    {
        dcs.WriteObject(compressionStream, typeof(T));
        compressionStream.Close();
    }
}
Oh .. my firewall/virus thing (EmsiSoft) was blocking the .exe ... the details surprised me:<\
Quote:
12/9/2021 11:44:19 AM quarantined Malware "Behavior.CryptoMalware" in "test blazor dec 4 2021.exe".
Cloud Host Rule modified "Block silently" for host "42.180.243.234"
That IP appears to be in China:
Quote:
P Address: 42.180.243.234
IP Location: China, Liaoning, Liaoyang
IP Owner: Unicom Liaoning Province Network
Of course i'll submit a report to EmsiSoft, but, wonder if anything in this scenario you see i might be overlooking.

thanks !
«The mind is not a vessel to be filled but a fire to be kindled» Plutarch

GeneralRe: MS C# weirdness: GZip code is talking to China ? Pin
NeverJustHere8-Dec-21 20:09
NeverJustHere8-Dec-21 20:09 
GeneralRe: MS C# weirdness: GZip code is talking to China ? Pin
Super Lloyd8-Dec-21 20:16
Super Lloyd8-Dec-21 20:16 
GeneralRe: MS C# weirdness: GZip code is talking to China ? Pin
Kornfeld Eliyahu Peter8-Dec-21 20:37
professionalKornfeld Eliyahu Peter8-Dec-21 20:37 
GeneralRe: MS C# weirdness: GZip code is talking to China ? Pin
BillWoodruff8-Dec-21 21:00
professionalBillWoodruff8-Dec-21 21:00 
GeneralRe: MS C# weirdness: GZip code is talking to China ? Pin
Kornfeld Eliyahu Peter8-Dec-21 21:48
professionalKornfeld Eliyahu Peter8-Dec-21 21:48 
GeneralRe: MS C# weirdness: GZip code is talking to China ? Pin
Kornfeld Eliyahu Peter8-Dec-21 21:52
professionalKornfeld Eliyahu Peter8-Dec-21 21:52 
GeneralRe: MS C# weirdness: GZip code is talking to China ? Pin
BillWoodruff8-Dec-21 22:35
professionalBillWoodruff8-Dec-21 22:35 
GeneralRe: MS C# weirdness: GZip code is talking to China ? Pin
Kornfeld Eliyahu Peter8-Dec-21 22:40
professionalKornfeld Eliyahu Peter8-Dec-21 22:40 
GeneralRe: MS C# weirdness: GZip code is talking to China ? Pin
obermd9-Dec-21 3:25
obermd9-Dec-21 3:25 
GeneralRe: MS C# weirdness: GZip code is talking to China ? Pin
BillWoodruff9-Dec-21 3:31
professionalBillWoodruff9-Dec-21 3:31 
GeneralRe: MS C# weirdness: GZip code is talking to China ? Pin
obermd9-Dec-21 4:56
obermd9-Dec-21 4:56 
GeneralRe: MS C# weirdness: GZip code is talking to China ? Pin
BillWoodruff9-Dec-21 16:26
professionalBillWoodruff9-Dec-21 16:26 
GeneralIs this spaghetti? Pin
Amarnath S8-Dec-21 18:22
professionalAmarnath S8-Dec-21 18:22 
GeneralRe: Is this spaghetti? Pin
Randor 8-Dec-21 18:59
professional Randor 8-Dec-21 18:59 
GeneralRe: Is this spaghetti? Pin
Amarnath S8-Dec-21 19:14
professionalAmarnath S8-Dec-21 19:14 
GeneralRe: Is this spaghetti? Pin
BernardIE53179-Dec-21 10:32
BernardIE53179-Dec-21 10:32 
QuestionRe: Is this spaghetti? Pin
Randor 9-Dec-21 19:01
professional Randor 9-Dec-21 19:01 

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.