Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. A missing font made my application crash

A missing font made my application crash

Scheduled Pinned Locked Moved The Lounge
csharpwpfhardwarealgorithmshelp
26 Posts 11 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Jacquers

    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!

    L Offline
    L Offline
    Lost User
    wrote on last edited by
    #2

    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 fucking 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.

    B J 2 Replies Last reply
    0
    • L Lost User

      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 fucking 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.

      B Offline
      B Offline
      BillWoodruff
      wrote on last edited by
      #3

      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

      L 1 Reply Last reply
      0
      • L Lost User

        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 fucking 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.

        J Offline
        J Offline
        Jacquers
        wrote on last edited by
        #4

        I would have hoped that the .Net FW would be a little bit more clever than to crash in a case like this

        L 1 Reply Last reply
        0
        • J Jacquers

          I would have hoped that the .Net FW would be a little bit more clever than to crash in a case like this

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #5

          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 fucking 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.

          J K 2 Replies Last reply
          0
          • L Lost User

            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 fucking 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.

            J Offline
            J Offline
            Jacquers
            wrote on last edited by
            #6

            A hard crash is hardly informative. No information was given as to why it crashed.

            L 1 Reply Last reply
            0
            • L Lost User

              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 fucking 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.

              K Offline
              K Offline
              Klaus Werner Konrad
              wrote on last edited by
              #7

              Yes, it WILL use another font, even without you telling it to do so: Weiterleitungshinweis[^]

              1 Reply Last reply
              0
              • J Jacquers

                A hard crash is hardly informative. No information was given as to why it crashed.

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #8

                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 fucking 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.

                OriginalGriffO 1 Reply Last reply
                0
                • B BillWoodruff

                  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

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #9

                  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 fucking 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.

                  1 Reply Last reply
                  0
                  • L Lost User

                    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 fucking 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.

                    OriginalGriffO Offline
                    OriginalGriffO Offline
                    OriginalGriff
                    wrote on last edited by
                    #10

                    "To expect the unexpected shows a thoroughly modern intellect" --- Oscar Wilde

                    Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

                    "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                    "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                    W 1 Reply Last reply
                    0
                    • J Jacquers

                      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!

                      M Offline
                      M Offline
                      Munchies_Matt
                      wrote on last edited by
                      #11

                      Not at all. You should exception wrap calls like this.

                      J V 2 Replies Last reply
                      0
                      • J Jacquers

                        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!

                        M Offline
                        M Offline
                        Mark_Wallace
                        wrote on last edited by
                        #12

                        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!

                        1 Reply Last reply
                        0
                        • OriginalGriffO OriginalGriff

                          "To expect the unexpected shows a thoroughly modern intellect" --- Oscar Wilde

                          Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

                          W Offline
                          W Offline
                          W Balboos GHB
                          wrote on last edited by
                          #13

                          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

                          OriginalGriffO 1 Reply Last reply
                          0
                          • W W Balboos GHB

                            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

                            OriginalGriffO Offline
                            OriginalGriffO Offline
                            OriginalGriff
                            wrote on last edited by
                            #14

                            I didn't even know you were expecting! Do you know if it will be a boy or a girl? :laugh:

                            Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

                            "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                            "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                            W N 2 Replies Last reply
                            0
                            • OriginalGriffO OriginalGriff

                              I didn't even know you were expecting! Do you know if it will be a boy or a girl? :laugh:

                              Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

                              W Offline
                              W Offline
                              W Balboos GHB
                              wrote on last edited by
                              #15

                              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

                              OriginalGriffO 1 Reply Last reply
                              0
                              • W W Balboos GHB

                                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

                                OriginalGriffO Offline
                                OriginalGriffO Offline
                                OriginalGriff
                                wrote on last edited by
                                #16

                                Phew! Having seen your avatar, that's a HUGE relief!

                                Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

                                "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                                "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                                1 Reply Last reply
                                0
                                • OriginalGriffO OriginalGriff

                                  I didn't even know you were expecting! Do you know if it will be a boy or a girl? :laugh:

                                  Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

                                  N Offline
                                  N Offline
                                  Nelek
                                  wrote on last edited by
                                  #17

                                  In my case a girl :) :-D 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.

                                  OriginalGriffO 1 Reply Last reply
                                  0
                                  • N Nelek

                                    In my case a girl :) :-D 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.

                                    OriginalGriffO Offline
                                    OriginalGriffO Offline
                                    OriginalGriff
                                    wrote on last edited by
                                    #18

                                    Congratulations! 7 weeks until your life is turned upside down, forever...but in the best possible way! :thumbsup:

                                    Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

                                    "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                                    "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                                    N 1 Reply Last reply
                                    0
                                    • OriginalGriffO OriginalGriff

                                      Congratulations! 7 weeks until your life is turned upside down, forever...but in the best possible way! :thumbsup:

                                      Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

                                      N Offline
                                      N Offline
                                      Nelek
                                      wrote on last edited by
                                      #19

                                      OriginalGriff wrote:

                                      7 weeks until your life is turned upside down, forever.

                                      I know :sigh: :sigh: point of no return was already left behind a while ago...

                                      OriginalGriff wrote:

                                      but in the best possible way! :thumbsup:

                                      I hope so :-D :-D :jig: :badger: :jig:

                                      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.

                                      1 Reply Last reply
                                      0
                                      • M Munchies_Matt

                                        Not at all. You should exception wrap calls like this.

                                        J Offline
                                        J Offline
                                        Jacquers
                                        wrote on last edited by
                                        #20

                                        It crashes even when wrapped!

                                        M 1 Reply Last reply
                                        0
                                        • M Munchies_Matt

                                          Not at all. You should exception wrap calls like this.

                                          V Offline
                                          V Offline
                                          Vark111
                                          wrote on last edited by
                                          #21

                                          There are a class of exceptions that can't be caught in managed code. This was likely one of those.

                                          M 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups