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