# Wait For Window or Control stores only about 8000 bytes of a caption

**URL:** <https://www.finalbuilder.com/forums/t/wait-for-window-or-control-stores-only-about-8000-bytes-of-a-caption/3229>\
**Category:** Bugs\
**Created:** [March 24, 2010, 9:06am UTC](https://www.finalbuilder.com/forums/t/wait-for-window-or-control-stores-only-about-8000-bytes-of-a-caption/3229 "2010-03-24T09:06:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)\
**Post date:** [March 24, 2010, 9:06am UTC](https://www.finalbuilder.com/forums/t/wait-for-window-or-control-stores-only-about-8000-bytes-of-a-caption/3229/1 "2010-03-24T09:06:27Z")

</div>

I&nbsp;appologize for not having a test case, but our system produces a window semi-periodically that contains error text.&nbsp; The error text in some few cases has run longer than about 8000 characters and the remaining text gets cut off.&nbsp; If necessary I&nbsp;could create a sample executable that demonstrates the problem.

I'm using FinalBuilder 6.3.0.1916.

The usage is to create a "Wait For Window or Control"&nbsp;that waits for an textarea / edit box with the "On Find Window"&nbsp;set to "Store caption in variable".&nbsp; "Control From Description"&nbsp;looks like:

FindChild("%iProject% WinConsole",null).FindChild("Edit",null)

"Wait Parameters" is set to "Wait for the process"&nbsp;and "Time out after 10secs"&nbsp;and "On Timeout"&nbsp;"Fail the action".&nbsp; Basically it runs in a loop waiting for the window while checking other variables.

This is a failure to store more than 8k of data, otherwise it seems to work more or less fine.

Thanks,  
John

---

<div class="post-metadata">

**Author:** ![paulsamways](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/e8c25b/32.png) [@paulsamways](https://www.finalbuilder.com/forums/u/paulsamways)\
**Post date:** [March 24, 2010, 11:06am UTC](https://www.finalbuilder.com/forums/t/wait-for-window-or-control-stores-only-about-8000-bytes-of-a-caption/3229/2 "2010-03-24T11:06:07Z")

</div>

Hi John,   
  
 Thanks for reporting this, I’ve increased the maximum number of characters to returned from an edit control from 8192, to 65k. I’ll let you know when a new test build is available.   
  
 Regards,   
 Paul.
