Pasted here is the code for an ODT object class that we created to put a bit of a wrapper around the WScript.Shell OleObject. This class works perfectly in TC 3.12 and, in fact, worked well in TC 4.25. However, upon upgrading to TC 4.27 this class stopped working. When executing the RunApp method of the class, we get the error "The property or method does not exist or it is used incorrectly. (You are trying to read a write-only property or to write to a read-only property)."
While we've put in place a workaround to get us past this, we've experienced a couple of similar problems with other OleObjects that we are putting into properties on and ODT object.
1) Why did this start happening?
2) When can it be corrected?
<font class="small">Code:</font><hr /><pre>
lClass := ODT.Classes.Items['WScriptShellWrap'];
if (lClass <> 0) then
lClass := ODT.Classes.Declare('WScriptShellWrap');