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. General Programming
  3. C#
  4. Text Field and Running time issue in .Net

Text Field and Running time issue in .Net

Scheduled Pinned Locked Moved C#
helpcsharp
3 Posts 2 Posters 0 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.
  • A Offline
    A Offline
    ahchoo
    wrote on last edited by
    #1

    Hi all, I have a program running without stop with a textfield to display data. I reset the textfield whenever its maxlength is reached. The program ran well but one day I saw my computer was restarted and I looked at the application event and saw that it was caused by Running time in .Net . I wonder if anyone knows this running time issue or a similar problem. Thanks. Kyah

    R 1 Reply Last reply
    0
    • A ahchoo

      Hi all, I have a program running without stop with a textfield to display data. I reset the textfield whenever its maxlength is reached. The program ran well but one day I saw my computer was restarted and I looked at the application event and saw that it was caused by Running time in .Net . I wonder if anyone knows this running time issue or a similar problem. Thanks. Kyah

      R Offline
      R Offline
      Robert Rohde
      wrote on last edited by
      #2

      I never had any issues regarding this. Could you post what exactly has been written to the events queue?

      A 1 Reply Last reply
      0
      • R Robert Rohde

        I never had any issues regarding this. Could you post what exactly has been written to the events queue?

        A Offline
        A Offline
        ahchoo
        wrote on last edited by
        #3

        well, the code is not so complicated. private void display(string data) { checklength(data.length); txtdisplay.appendtext(data); } private void checklength(int num) { if((txtdisplay.text.length + num) > txtdisplay.maxlength) txtdisplay.reset(); } Anyone wants to test, creating a form with multiline textfield, just running a forever loop and passing a string to the display function. Thanks. Kyah

        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