-
Hello,
I could not reproduce this behavior. Attached is an example that works as expected on my side. Please modify it to illustrate the problem and attach it to your next message. We will examine it and do our best to find a solution. I am looking forward to hearing from you.
-
I still have the same problem in my program, I attach some additional error messages that might help us to solve the problem, I seem to be at the end of the road...
//Lars -
Hi, I have some additional information about the error.
I have attached a picture that shows the error as deep in the code as I can get.
It's in the unit cxLookAndFeelPainters.
There is a constant AName that has garbage as far as I can see, is that normal?//Lars
-
Hi, here is also the call stack when the error happens.
//Lars -
Hi again,
I also see that I sometimes get a different error, altough still happening when I click a tab.
2.3 Module Name : GDI32.dll - (GDI Client DLL)
2.4 Module Version: 6.1.7601.17514
2.5 Type : EAccessViolation
2.6 Message : Access violation at address 76939126 in module 'GDI32.dll'. Write of address 0050688C.I have attached a picture that show the call stack.
//Lars -
Hello,
Thank you for your additional clarification. Please take another moment to provide a simple example as our attempts to reproduce the issue using the call stack you supplied have been unsuccessful.
In addition, clarify the following:
1. Are you using TabControl in dll?
2. Which version of Embarcadero C++Builder XE2 are you using? -
Hello,
Well I have not been able to reproduce in your simple applikation.
1: not using in dll
2: I am using Delphi XE2 Update 4.
//Lars -
Hello,
I got this error from FastMM4, maybe that could help us?
//Lars -
I regret to inform you that this information is not enough for us to find the cause of the issue.
We have examined the provided report, but cannot replicate this scenario on our side. As we cannot debug the issue, we are not able to find the cause of the problem.You can execute the following steps to isolate the problem. Please reset all event handlers in your application. If the problem has disappeared, set them back one by one and see when the problem returns. If this does not help, remove all controls one by one and test your sample at each step, until the problem goes away. As a result, you will have a small sample illustrating the problem.
-
Just one question, when the error happens the function GetPainter is executed, otherwise it is not. (it is the function GetPainter where I have a breakpoint set in the attached picture)
As I explained before the error happens sometimes when a tab is clicked.My question is why and when does the function GetPainter get executed?
//Lars -
This method is called when it is necessary to draw some item. That is why it is hard to debug it (it is called very frequently).
-
Hello,
I did remove the tabcontrol and are using a regular Tlistbox instead. The errors are gone, too bad I could not find why the errors happened but it looks like there was something with the tabcontrol that caused it but I cannot be sure of course.
Lasse -
Hello,
Thank you for your feedback. I will show your message to our developers and they will examine the code once again to find the cause of the issue (if it is there).
Thanks again.
1 Solution
Is your intention to post an answer to your own question?
- If so, then proceed.
- If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
- If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.