Results 1 to 4 of 4

Thread: [RESOLVED] Thread used up its stack

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Dec 2009
    Location
    Arizona
    Posts
    185

    Resolved [RESOLVED] Thread used up its stack

    I am editing a very large file with my multilingual text editor, using a richtextbox,
    and I have noticed a slow-down in operations, and also got the error "Thread used
    up its stack".
    My theory is that the size of the textbox capacity needs to be increased . . . .
    has anyone ever had this problem before, and does that sound like a valid theory?

    Size of the rtf file I am editing is over 1.3 megabytes.
    Last edited by skywola; Nov 22nd, 2012 at 11:56 AM.
    .
    We must question the story logic of having an all-knowing all-powerful God, who creates faulty Humans, and then blames them for his own mistakes.
    GENE RODDENBERRY
    .
    http://www.tachufind.com
    .

  2. #2
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 2012
    Posts
    8,245

    Re: Thread used up its stack

    1.3Mb doesn't come close to the character limit for an RTB though I would have to question the size of that document given that the average paperback translates to less than 500Kb as text. Can it not be broken down at all?

    Stack problems are not caused by what you put in the RTB but what you do with it in memory.
    As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"

    Reviews: "dunfiddlin likes his DataTables" - jmcilhinney

    Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!

  3. #3
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    9,017

    Re: Thread used up its stack

    What was your code doing when this error occurred ?
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Dec 2009
    Location
    Arizona
    Posts
    185

    Re: Thread used up its stack

    Thanks for the comments, they helped me narrow down the problem, it did not have anything to do with the size of the textbox, it had to do with what I was doing, pasting text in, and the debugger found that there was a problem with the formatting. Thanks . . .
    .
    We must question the story logic of having an all-knowing all-powerful God, who creates faulty Humans, and then blames them for his own mistakes.
    GENE RODDENBERRY
    .
    http://www.tachufind.com
    .

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width