rlebeau wrote:Have you tried debugging the project yet?
Yes.
rlebeau wrote:Does the debugger show breakpoint enabled lines in the unit in question?
Yes, even though the whole block is commented out with /* */
rlebeau wrote:Have you tried putting any breakpoints in the unit to see if the code is ever executed?
There is NO code that calls it in any unit in the project.
rlebeau wrote:You might not think the code is part of the project, but if the debugger says otherwise then it actually is.
I agree but, I have made sure that there is NO link to the unit at all in any of my other units and I have removed the unit in question from the project all together.
rlebeau wrote: Could be a mistake on the linker's part
Could very well be, but why?
rlebeau wrote:or maybe a misconfiguration that you are not seeing.
I guess I am not seeing it because I don't know what the hell is going on, any idea as to what could be misconfigured, I had not done much in configuration other than setting Link with runtime packages to false and back again in my attempts to work out what is going on, also added include paths to my projects and set basic editor preferences, which I am sure have no effect on linker execution.
I also cannot understand why when I clear text boxes of their Text property, the names of the component appear at run time, there is no code in the TextBox unit that sets it. refer my other post "Help, I am going nuts" nor can I understand why check boxes lose their caption if link with runtime packages is false and magically reappear when set to true, why tree nodes have white background when set to false and normal when set to true.
I will concede that some of the issues may relate to my packages but, using debug the way you suggested has not put any light on the matter, in fact it confuses me even more.
For example, this code should check if in design mode or not (I think) either way nothing happens, putting a break point anywhere does not do anything AND the throw does not throw when I run the executable outside the ide.
I will accept that these may be wrong but, in Rad 2010, there are no issues with this approach (none that the compiler complains about any way).
Code: Select all
if( ComponentState.Contains(csDesigning) )
{
//To Do...
}
else
{
Text = "";
throw Exception("Here");
}
//or
if(FfieldName != value)
{
FfieldName = value;
if( ComponentState.Contains(csDesigning) )
{
UnicodeString s = UpperCase(FfieldName[1]);
s += FfieldName.SubString(2, FieldName.Length()-1);
Name = FnamePrefix + s;
Text = Name;
}
}
Would having Rad 2010 Professional and XE2 Professional installed on the same machine have any bearing on the issues I am facing?
I completely uninstalled the trial AND the licensed C++ Builder and left configuration to the installer and it does the same thing.
The issues seem to be random and illogical, however, if I execute code in my units, like loading a combo box from an sqlite database parsing a string and ref to the combo box in my odbc unit it works WITHOUT any problem, as do other methods.
With all these issues I am having I would have expected that tried and proven methods from Rad 2010 would fail if there were problems.
I am tearing my hair out trying to understand where to look.
Cheers.