|
So I had a strange issue yesterday with a WPF app running on Windows 7 Embedded. It would hard crash when the user clicks inside a password box. After some debugging and searching for solutions it turns out that Embedded didn't have the Arial font installed and the password box needs it to display the * . I installed the font and all is well. What a weird issue!
|
|
|
|
|
Which part of null do you not understand?
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.
"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."
If software development were a circus, we would all be the clowns.
|
|
|
|
|
CDP1802 wrote: Which part of null do you not understand? The ecstasy in the emptiness.
«There is a spectrum, from "clearly desirable behaviour," to "possibly dodgy behavior that still makes some sense," to "clearly undesirable behavior." We try to make the latter into warnings or, better, errors. But stuff that is in the middle category you don’t want to restrict unless there is a clear way to work around it.» Eric Lippert, May 14, 2008
|
|
|
|
|
I would use a different word for this[^]
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.
"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."
If software development were a circus, we would all be the clowns.
|
|
|
|
|
I would have hoped that the .Net FW would be a little bit more clever than to crash in a case like this
|
|
|
|
|
Why? What should it do other than bring the problem to your attention and let you fix it once and for all? Sweep it under the rug? Use another font that may or may not work as a substitute?
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.
"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."
If software development were a circus, we would all be the clowns.
|
|
|
|
|
A hard crash is hardly informative. No information was given as to why it crashed.
|
|
|
|
|
Ah, ok. Then someone just did not expect that the font could ever be missing. Not a big deal, that can happen to anybody. You probably know that kind of function where at least half of the code is concerned with preventing all kinds of errors and still some slip through because you did not expect that particular thing to ever happen.
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.
"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."
If software development were a circus, we would all be the clowns.
|
|
|
|
|
"To expect the unexpected shows a thoroughly modern intellect" --- Oscar Wilde
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
This holds particular true in the maternity realm.
(What were you expecting from me,anyway?)
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
I didn't even know you were expecting!
Do you know if it will be a boy or a girl?
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
OriginalGriff wrote: Do you know if it will be a boy or a girl? Of course I know.
The answer to your question is "YES".
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
Phew!
Having seen your avatar, that's a HUGE relief!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
In my case a girl
7 weeks left
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Congratulations!
7 weeks until your life is turned upside down, forever...but in the best possible way!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
|
|
Not at all. You should exception wrap calls like this.
|
|
|
|
|
It crashes even when wrapped!
|
|
|
|
|
What is the code, .Net?
Why run .Net code on embedded anyway, its a minimal install, minimal foot print OS, use C or C++ and catch them the normal way.
|
|
|
|
|
There are a class of exceptions that can't be caught in managed code. This was likely one of those.
|
|
|
|
|
Such as?
You can handle exceptions with C code in the kernel, are you telling me you cant handle this one? In any way.
|
|
|
|
|
Sure you can handle those in a C app. But this discussion is regarding a WPF app. And unless you want to re-implement the entire WPF library in C, you have little choice but to use managed code.
|
|
|
|
|
Yeah, I know jack about managed code, never use it. Shame it doesnt handle this kind of exception though, seems like its an oversight.
|
|
|
|
|
Check your font substitutions strings.
If you don't have "Substitute Calibri with anything at all -- even wingdings", add it.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|