﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WinForms (How do I?)  » Error HRESULT E_FAIL and Index was outside the bounds of the array...</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Thu, 10 Sep 2026 11:49:59 GMT</lastBuildDate><ttl>20</ttl><item><title>Error HRESULT E_FAIL and Index was outside the bounds of the array...</title><link>http://forum.strataframe.net/FindPost29909.aspx</link><description>This follows on from an earlier post but the erors are happening so frequentlt now it warrants a separate post.&lt;br/&gt;&lt;br/&gt;When I go to amend a TextBox on a form , and specifically click on the fropDown Arrow to select the Bonding Filed from the list of Fields in a table, &amp;nbsp;it can inertmittently either be 1.OK&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.Get a HRESULT E_FAIL error&amp;nbsp;&amp;nbsp; or&amp;nbsp;&amp;nbsp; 3. Get a Index was outside the bounds of the&amp;nbsp;aaray.&amp;nbsp;&amp;nbsp;&amp;nbsp; If I manually type in the Filed name, I dont get an error and compile works fine.&amp;nbsp; I also get a series of error messages if I click on PopulationDataSource Settings on a Combo &amp;nbsp;&amp;nbsp;, but for this thread easier to concentrate on the textBox errors.&lt;br/&gt;&lt;br/&gt;I have done a complete Re-insatll of Visual Studio, Dot Net 2 and SFrame (at least twice) and although it appeared to be ok for a period of time, there does not seem to be any consistency.&amp;nbsp;&amp;nbsp; This is extremelt frustrating as my whole development is at a standstill.&amp;nbsp; As faras I can see, these problems only seem to be a problem on controls that are related to Business Objects. (I have also recompiled all my Business Objects)&lt;br/&gt;&lt;br/&gt;The following is an example of what has been happening:&lt;br/&gt;&lt;br/&gt;[quote]10.30am&lt;br/&gt;Go into Visual Studio.&amp;nbsp;&amp;nbsp;&amp;nbsp; Open up a Project.&amp;nbsp;&amp;nbsp;&amp;nbsp; Click on Proerties of a TextBox linked to a BO.&amp;nbsp;&amp;nbsp; Click on the Down Arrow&amp;nbsp; ---&amp;gt; Error Hresult E_FAIL has been returned....&lt;br/&gt;Closed down Visual Studio.&amp;nbsp; Went back Into Visual studio.&amp;nbsp;&amp;nbsp; Recompiled ny Busimness Objects DLL.&amp;nbsp; Opend up My Form&lt;br/&gt;When I try to amdn the textBox Binding Field ---&amp;gt; Index was outside the bounds of the array&lt;br/&gt;&lt;br/&gt;10.50am&lt;br/&gt;Go into Visual Studio.&amp;nbsp;&amp;nbsp;&amp;nbsp; Open up a Project.&amp;nbsp;&amp;nbsp;&amp;nbsp; Click on Proerties of a TextBox linked to a BO.&amp;nbsp;&amp;nbsp; Click on the Down Arrow&amp;nbsp; ---&amp;gt; HRESULT E_FAIL has been returned from a call....&lt;br/&gt;&lt;br/&gt;10.55&lt;br/&gt;Closed down Visual Studio.&amp;nbsp; Went back Into Visual studio.&amp;nbsp;&amp;nbsp; Recompiled ny Busimness Objects DLL.&amp;nbsp; Opend up My Form&lt;br/&gt;When I try to amend the textBox Binding Field ---&amp;gt; Everything OK &lt;br/&gt;&lt;br/&gt;11.00&lt;br/&gt;&amp;nbsp;Closed down Visual Studio.&amp;nbsp; Went back Into Visual studio.&amp;nbsp;&amp;nbsp; Opend up My Form&lt;br/&gt;When I try to amend the textBox Binding Field ---&amp;gt; HRESULT E_FAIL has been returned from a call....[/quote]&lt;br/&gt;&lt;br/&gt;Any ideas at what might be the root cause of this would be appreciated as I am at a complete standstill. I dont think reinsatlling Vis Studio, Dot Net, Sframe can be the answer as it took me half a day to do this (twice) and the problem has resurfaced again. </description><pubDate>Mon, 25 Apr 2011 04:46:03 GMT</pubDate><dc:creator>Ger Cannoll</dc:creator></item><item><title>RE: Error HRESULT E_FAIL and Index was outside the bounds of the array...</title><link>http://forum.strataframe.net/FindPost29913.aspx</link><description>Hi Peter.&lt;br/&gt;&lt;br/&gt;I am fairly sure I have already tried that and it did not work.&lt;br/&gt;&lt;br/&gt;Now this morning, when I go into Vis Studio, I dont have&amp;nbsp; aproblem and all is working fine.... but this is what has been happening.... I may have&amp;nbsp; aproblem later today and then it may go away !!</description><pubDate>Mon, 25 Apr 2011 04:46:03 GMT</pubDate><dc:creator>Ger Cannoll</dc:creator></item><item><title>RE: Error HRESULT E_FAIL and Index was outside the bounds of the array...</title><link>http://forum.strataframe.net/FindPost29911.aspx</link><description>Hi,&lt;br/&gt;&lt;br/&gt;I would try creating a new form with a new text box to see if that works as expected. If it does I would suspect the form is corrupt&amp;nbsp;in some way. If practical, blow away the form and start over.&lt;br/&gt;&lt;br/&gt;Cheers, Peter</description><pubDate>Mon, 25 Apr 2011 03:15:06 GMT</pubDate><dc:creator>Peter Jones</dc:creator></item></channel></rss>