Changes

Strange Errors & Behavior in VB6

820 bytes added, 03:51, 29 January 2008
/* Automation error, The object invoked has disconnected from its clients. */
The following lines were added (+) and removed (-):
Key terms:Possibe Key terms:The Fix:The following simplified code sample is what renders the error from the compiled exe.  cboSkGroup.AddItem ("<All Skill Groups Available>")  cboSkGroup.Text = "<All Skill Groups Available>"The following code has been substituted and thus resolved the error.  cboSkGroup.AddItem ("<All Skill Groups Available>")  cboSkGroup.ListIndex = 0''I think that the issue has to do with the way VB matches the text from the listed item with the text entered using the .text property.  Typically characters are matched and what is entered with .text works fine.  In this case it is perhaps something to do with the characters within the listed item.  Most of the time the first method would not cause a problem.  Sometimes it is just better to find a different way to do the same thing and move forward.''
Bureaucrat, administrator
16,192
edits