|
SVG made an amazing come back.
I remember when the only way to render it in a browser was with Adobe’s SVG plugin for IE.
Microsoft had their own Vector Markup Language/VML which they dropped.
Then Adobe dropped support for their IE plugin, then it seemed that all of the browser vendors decided to support SVG in-browser.
Crazy!
|
|
|
|
|
Hi All,
I have written a bit of C# software that is good, working fully. The only thing is there is a condition where a rich textbox overflows and crashed the software (happens only if left unattended for a month). All is fine all is good run the installer on Win11 everything ends up where it should all is well works fine. Today is starts bugging out and crashing with no warning just plain ups and closes without warning just plain up vanishes from the task bar... It was using a serial port but... Has anyone else seen similar with Win 11 or is just my dodgy coding?
|
|
|
|
|
If I am wrong, rich textbox creates GDI objects to display the rich text. When the number of GDI handles reaches 10,000, the process will either hang or crash. The system-wide GDI handle limit is 65535 (for all the processes combined).
You can check on TaskManager if the GDI handle keeps increasing for your process but first, you have to add the GDI handle column to the TaskManager.
|
|
|
|
|
Please also check if your process is running out of memory. If your program is 32-bit, it may exhaust the process memory though the system still has available free memory when it has more than 4GB of RAM on a 64-bit platform.
|
|
|
|
|
Didn't think that! when I can I will look
|
|
|
|
|
Shao has good points. If you have a rich text box and are adding text to it (what are you doing with that serial port?), then you might have found a bug.
Checking the GDI handles is an easy first step, second would be memory leaks. A GDI leak will kill an application pretty quickly. I've written very little .net c# code, so I cannot comment on it's quality, but after all these years I'd be really surprised to see a leak in the rich edit control but it happens.
A very long time ago, I traced a GDI leak into CDialog and it's exposure message. Easy to code around, but since my HMI could be running for years, it had to go.
Make sure to come back and tell us the conclusion.
Charlie Gilley
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
Has never been more appropriate.
|
|
|
|
|
Odder and odder, Termite, I left logging data from the serial port, got given something else to do, came back it had closed. I am now thinking of trying a third...
|
|
|
|
|
Software is like toddlers. It should never be out of your sight for more than a few minutes, otherwise hire a baby/software sitter
|
|
|
|
|
Quote: Software Myself is like toddlers. It should never be out of your sight for more than a few minutes, otherwise hire a baby/software sitter
Fixed that for you
To err is human to really elephant it up you need a computer
|
|
|
|
|
and I was speaking specifically about myself. Not others. Me
To err is human to really elephant it up you need a computer
|
|
|
|
|
DrWalter PE wrote: Software is like toddlers.
It should only be let run in a sandbox.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
...and even then it shouldn't be without surveillance, as toddlers tend to find things in the sandbox left by the cat. Then who knows what they'll do with it.
|
|
|
|
|
decades ago, I left my first son at the age of 3 in the room I was painting. I swear, I was only gone for 30 seconds. Sigh, the damage done
Charlie Gilley
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
Has never been more appropriate.
|
|
|
|
|
glennPattonWork3 wrote: Today is starts bugging
Other comments are fine but don't seem to address that you are suggesting the following
1. Even new install crashes immediately
2. You did not change anything in the executable
3. The computer you tested on worked before (and it had Windows 11 before.)
If the above it true then the most likely explanation is that the environment changed. And the most likely change there is a Windows 11 update happened. Other possibility is that you installed/updated some other software - like a virus checker.
glennPattonWork3 wrote: where a rich textbox overflows
I don't do UIs but this seems like an application anyways. Have you looked into logging software (libraries) and then added generic try/catches to all threads (which would log)?
|
|
|
|
|
So Mr. Patton - what's the status of this issue? Inquiring minds want to know.
Charlie Gilley
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
Has never been more appropriate.
|
|
|
|
|
Just plain odd, lashed up another app with a rich text box and a loop to place "Huh?" in it and it works, ran my App again, without Admin rights didn't work, with Admin rights ran, left it running and splat, crashed again. I'm starting to think it could be the PC as I ran it at home on Win 11 works, left over night fine. Last Win11 update caused my Work Laptop to choke...
|
|
|
|
|
Not that it's important, but when you moved the application to your home pc, did you re-compile? I wonder if the dlls are the same when the app loads up? I think you are old enough to remember dll-hell
Charlie Gilley
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
Has never been more appropriate.
|
|
|
|
|
Okay, full story, I am not a 'Software Author' therefor I am not entitled to a Vis Studio Licence so I have to use my own. I was compiled on my home machine so ran the installer at work on 11 didn't have 11 at home (now I have!). I have used the installer on Win 7 to 10 with no alteration (all is good) on Win 11 issues. Yes I rember DLL-hell it was how I found CP Googling in vain... My thinking was look at what had changed there will be the answer.
|
|
|
|
|
Perspective program - with a bug? (8)
|
|
|
|
|
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
Definition:
Perspective
Program APP
with (append)
A bug ROACH
APPROACH
Since there was no offered solution it would appear that I win!
So, I will post tomorrow's clue as well.
|
|
|
|
|
I got it but I've already posted this week - in the UK they are more commonly known as cockroaches but roach is an acceptable name for the horrible things nice little clue
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
Thank you. Cockroach is also the more common term for the insect in the US as well, but roach is used fairly often too. Another term, at least here, for roach is joint (Marijuana) but I was unsure how widely known it was and nothing occurred to me as to how to work that meaning into a clue.
|
|
|
|
|
The roach in a joint is the bit you put in your mouth which is usually a torn up Rizla packet flap - not that I know...
The clue could be
Perspective from small program with the end of a joint
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
Wordle 663 4/6
🟩🟨🟨⬛⬛
🟩🟩🟩⬛⬛
🟩🟩🟩⬛⬛
🟩🟩🟩🟩🟩
|
|
|
|