RP286 0 Posted March 26, 2022 The FireMonkey Low Code App Wizard works fine on Delphi 11 (in RAD Studio 11). The generated project runs without issue. However, after upgrading to 11.1, whenever I run any generated project by the wizard, I got an error, like this: After using the debugger to trace the error source, I found that when the program runs to this line (in the function TScreenOrientationMonitor.GetScreenOrientation in Model.Types.pas) the error will be raised. Since I'm new to this wizard, can anyone please share any clue with me? Thanks a lot. Share this post Link to post
Sidney 0 Posted May 12, 2022 Hello! I have exact same issue here. After these two months I presume someone else already has the way out. Please share. Thank you! Share this post Link to post
Rollo62 536 Posted May 17, 2022 Haven't checked the sources: I would assume that the SubscribeToMessage() is called twice, with using the same event handler. That should not be allowed, from the EListError error above. So you could try to move this line to a position where it is only called once per lifetime of the app, during initialization ( in TScreenOrientationMonitor.Create for example, if that exists in the source ). Share this post Link to post
Sherlock 663 Posted May 18, 2022 Since this is code generated by the IDE, you should create a call for this right here https://quality.embarcadero.com/login.jsp. They just might be unaware that this error occurs. Edith says: Have not been able to log in right away, but there already is a call open for this: https://quality.embarcadero.com/browse/RSP-37338 Share this post Link to post
Sidney 0 Posted May 18, 2022 (edited) On 5/12/2022 at 1:38 PM, Sidney said: Hello! I have exact same issue here. After these two months I presume someone else already has the way out. Please share. Thank you! Edited May 18, 2022 by Sidney the information was not correct Share this post Link to post
sjordi 39 Posted October 10, 2023 In the main form, in the FormCreate event, comment the two last line at the end of the prodcedure // if FLandscapeOrientationMonitor.ScreenOrientation = TScreenOrientation.Landscape then // DoOnLandscapeOrientation; It works then. Share this post Link to post