theLizard wrote:When I drop a custom component on a form and not doing anything else, i attempt to delete using the delete button, berlin freezes, but appears to be with one component only
theLizard wrote:question is, how would i go about finding what the cause is.
rlebeau wrote:Makes me think the component's destructor is doing something it should not be doing.
theLizard wrote:Yep, that was it, I suspected something like that, commented out a couple of things and problem has gone away.
theLizard wrote:Are there things I should look out for
theLizard wrote:for example should I include Vcl. in directives like (old) #include <StrUtils.hpp> (new) #include <Vcl.StrUtils.hpp> would this make any difference.
rlebeau wrote:Like what exactly?
rlebeau wrote:The "Vcl." unit scope prefix only applies to HPPs that are VCL-specific, to differentiate them from their FMX counterparts (eg, Vcl.Forms.hpp vs Fmx.Forms.hpp).
theLizard wrote:deleting an object which was created in constructor.
rlebeau wrote:If you don't delete it, you might have a memory leak, depending on the nature of the object, if it has another owner who deleted it, etc. Don't just blindly change your code if you don't understand what the code is doing in the first place. You may be causing more problems then you solve. If you want to understand what the original code was doing, and why your change "fixes" it, then please show the actual code.
theLizard wrote:is this done via the attach to process option in Run? if not how would I go about doing that
theLizard wrote:is this done via the attach to process option in Run?
rlebeau wrote:Another way is to set the IDE as the Host executable for your component's package, and then Run it
theLizard wrote:Another thing that is weird, I make changes to a place where I think the problem may be and even after uninstalling the package cleaning, recompile and install the break point I set is NOT reached, instead it steps into a blank line then skips the highlighted break point which is green and continues on!!!
I have even re-installed Berlin, am I the first with these problems!!!
theLizard wrote:Step by step, how exactly can I debug my package using this method.
rlebeau wrote: With the second IDE running
Users browsing this forum: Bing [Bot] and 3 guests