I am getting an AV with the call stack below after moving from 12.3 to 12.5. Are there any known issues? it is a pretty complicated section of my app and would be hard to create a demo.
Ed Dressel
:7460c41f KERNELBASE.RaiseException + 0x58
:00408db4 NotifyNonDelphiException + $1C
:76f1b42b ; ntdll.dll
Vcl.Controls.TWinControl.DisableAlign
:76ed0133 ntdll.KiUserExceptionDispatcher + 0xf
:00b13981 HandleOwnerMessage + $35
:00b13a74 TdxBarManager.OwnerWndProc + $A8
:00b0e7b8 CallOwnerWndProc + $E0
:00b0e92e dxBarWndProcHook + $5E
:0091d5b1 TdxSystemHook.ProcessHookProcs + $55
:0091d40a dxSystemWndProcHook + $1A
:76526381 USER32.CallNextHookEx + 0xfc
:7655c21f USER32.GetRawInputDeviceInfoW + 0x76
:7651a740 ; C:\Windows\syswow64\USER32.dll
:76ed010a ntdll.KiUserCallbackDispatcher + 0x2e
:7651aa3c ; C:\Windows\syswow64\USER32.dll
:76518a5c USER32.CreateWindowExW + 0x33
Winapi.Windows.CreateWindowEx(???,???,'',1174405120,0,0,947,429,3675228,0,4194304,nil)
Vcl.Controls.TWinControl.CreateWindowHandle($18F3E4)
Vcl.Controls.TWinControl.CreateWnd
Vcl.Forms.TScrollingWinControl.CreateWnd
Vcl.Controls.TWinControl.CreateHandle
Vcl.Controls.TWinControl.HandleNeeded
Vcl.Controls.TWinControl.GetHandle
:006078ee TScrollingWinControl.CreateWnd + $A
:00b03b64 GetBarManagerForm + $14
:00b0d7e7 HandleByManager + $47
:00b0dd65 dxBarKeyboardHook + $5D
:0091d5b1 TdxSystemHook.ProcessHookProcs + $55
:0091d3ca dxSystemKeyboardHook + $1A
:76526381 USER32.CallNextHookEx + 0xfc
:765180a9 USER32.GetUserObjectInformationW + 0x41
:76518133 USER32.GetUserObjectInformationW + 0xcb
:76ed010a ntdll.KiUserCallbackDispatcher + 0x2e
:76520751 ; C:\Windows\syswow64\USER32.dll
Vcl.Forms.TApplication.ProcessMessage(???)
Hello,
This CallStack does not look like any issue I know, so it is difficult to identify the cause of the problem. It would be very helpful if you provide any additional information you may have (an extended MadExcept CallStack or a detailed problem description, steps to reproduce the issue or even a simplified sample project). Thanks in advance.
I rolled back to 12.3 and everything worked fine--then I reinstalled 12.5 and the AV problems came back.
I have attached a madExcept bug report.
Hi,
I've reported a similar problem with issue http://www.devexpress.com/Support/Center/Question/Details/Q489457. Have your bar/ribbons on your forms and do you change the Visible-property of bars runtime?
best regards
Toni
I have ribbons on the main form and do set the visibility of some buttons at runtime.
DevEx--you are welcome to schedule a time with me and login to my app and see it run. (I'm in Pacific Daylight Time).
Hello Edward,
I am afraid that we still cannot reproduce this issue on our side and cannot find the cause of the problem. I see that Anton assumed that this issue is that one described in the Ribbon - TdxRibbonBackstageView - In RAD Studio XE or later, an AV occurs when changing the parent of a currently hidden form with the BackstageView after the form Position property has been set to poDesigned and the toolbar on this form made visible ticket. I have reproduced that behavior, but I am not sure that two problems are equal because the call stack looks different.
I kindly ask you to provide us with a small sample project, so that we can precisely replicate your scenario on our side. Please reset all event handlers in your application. If the problem disappears , set them back one by one and see when the problem returns. If this does not help, try to remove all controls one by one and test your sample at each step until there is no problem. As a result, you will have a small sample illustrating the problem. This project will help us debug the code on our side. Thanks in advance.
I have some more info, but not a demo yet.
The AV occurs in a TdxBarManager that is owned by a TFrame and cannot find a TCustomForm. The AV occurs in this line:
procedure TdxBarManager.DoCreate;
var
I: Integer;
begin
if BarRestoringListExists then
begin
ParentForm.DisableAlign; //<---- 17176
…
ParentForm returns nil here.
This problem did not occur in 12.2.3
Thank you for your additional information. I am afraid that a small sample project illustrating the problem is absolutely necessary.
I had my head engineer spend almost a day on this--together we have spent more than a day's work trying to reproduce this in a demo.
The call stack happens in DevEx's control handling a posted message. He doesn't find a parent form and AVs.
Can we arrange for someone to log into my machine and look at it?
Hello,
We are going to release a new minor version soon (this week according to plan) where we have fixed some problems (including the Ribbon - TdxRibbonBackstageView - In RAD Studio XE or later, an AV occurs when changing the parent of a currently hidden form with the BackstageView after the form Position property has been set to poDesigned and the toolbar on this form made visible one mentioned by Anton). I suggest you wait for a while and test your project with it. VCL 12.2.6 Bars should be more stable.
If this update does not help please update this ticket.
As for the remote connection, it would be much better to create your system image that can be launched using VMWare or VPC, and upload it to the FTP server. We will download and examine it on our side.
Hi Ed,
are you changing the Visible-property of ribbon-bars before the form shows? If so, try to avoid this and move the code into the OnActivate of the form or somewhere else (do it with a timer after showing the form). There seems to be a problem with this in 12.2.5 and I moved back to 12.2.4.
best regards
Toni
Paulo:
There is no way I can release all of my source code. I am glad to provide access to my machine.
The problem sounds different--there are no ribbon bars in play here (only on the main form and MDI child form, but not in the frames that are causing problems).
Ed Dressel
Today 12.2.6 was released. Did you just try with it?
Toni
I just upgraded and the same problem exists in 12.2.6.
Hello,
It is not necessary to provide all your source code. You can execute the following steps to simplify the project. Reset all event handlers in your application. If the problem disappears, set them back one by one and see when the problem returns. If this does not help, try to remove all controls one by one and test your sample at each step until there is no problem. As a result, you will have a small sample illustrating the problem.
As an alternative you can create your system image that can be launched using VMWare or VPC, and upload it to the FTP server. We will download and examine it on our side.
Let me know if it is possible. If you wish to sign an NDA with our company, contact our CTO, Julian Bucknall (julianb@devexpress.com).
Neither of those options work. The app is too complex to remove all of the events--and it wouldn't work very well either. I won't release all my source code either, even with an NDA/MNDA.
I am glad to schedule a time where you can login to my system.
Hi Ed,
I am ready to perform a remote connection to your system the next week (on Monday). If it is OK for you, please provide us with information about how to establish a remote connection to your system. I suggest that you create a separate Private ticket for this.
Keep in mind that investigating this issue may require performing several remote connections.