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!

    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
                        • V Vark111

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

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

                          Such as? You can handle exceptions with C code in the kernel, are you telling me you cant handle this one? In any way.

                          V 1 Reply Last reply
                          0
                          • J Jacquers

                            It crashes even when wrapped!

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

                            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.

                            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!

                              K Offline
                              K Offline
                              KarstenK
                              wrote on last edited by
                              #24

                              You lucky one had found your bugs. I am struggling with some multi-threadings bugs, because my app is regularly starting threads for scanning some data. X|

                              Press F1 for help or google it. Greetings from Germany

                              1 Reply Last reply
                              0
                              • M Munchies_Matt

                                Such as? You can handle exceptions with C code in the kernel, are you telling me you cant handle this one? In any way.

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

                                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.

                                M 1 Reply Last reply
                                0
                                • V Vark111

                                  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.

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

                                  Yeah, I know jack about managed code, never use it. Shame it doesnt handle this kind of exception though, seems like its an oversight.

                                  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