- This topic has 5 replies, 3 voices, and was last updated 2025-01-22 at 4:53 am by
David Rose.
-
AuthorPosts
-
-
January 7, 2022 at 9:07 am #2889
Hi
I’m using CodeSite V5.4.0 with C++ Builder 10.2 and just testing how it works.
I have this simple code:
CS->TraceMethod(“Test method”);
for (auto i = 0; i < 10; i++) {
CS->SendError(“Log message”);
CS->SendWarning(“Warning message”);
CS->SendScreenShot(“Screen shot”, (unsigned)this->Handle);
}return;
but the output is as per the attached screen shot. It doesn’t look right to me. Am I using it wrong?
Andy

-
January 7, 2022 at 4:06 pm #2891
Hi,
No, you are not using it incorrectly. Unfortunately, there was a change in C++Builder (I do not remember the precise version), but it broke the TraceMethod functionality. It’s on our list of things to fix for the next major release. In the meantime, you can use the EnterMethod/ExitMethod approach to group your CodeSite messages by method.
Ray
-
January 9, 2022 at 1:16 pm #2892
Thanks Ray
Andy
-
January 21, 2025 at 9:16 am #4064
Seems that it’s broken in Delphi (11) too as I’m having a similar issue.
-
January 22, 2025 at 1:27 am #4066
Hi David,
I just created a quick test project in Delphi 11 and created the following event handler:
procedure TForm13.RzButton1Click(Sender: TObject); begin CodeSite.TraceMethod( 'RzButton1Click' ); CodeSite.Send( 'Test Message' ); CodeSite.Send( 'Test Message #2' ); end;I ran the program and the output showed the two test messages within an EnterMethod message and an ExitMethod message.
Are you able to duplicate the problem in a test project? If so, please send the source (no executables) to support@raize.com and I’ll take a look.
Ray
-
January 22, 2025 at 4:53 am #4068
It’s odd. In the large project I was having the issue, it goes wrong in one method, but not in several others.
Just in case it helps, my codesite messages were in methods in objects called from the method being traced.
I’ll try and reproduce in a test project.
-
-
AuthorPosts
- You must be logged in to reply to this topic.