Mauri Posted December 7, 2016 Share Posted December 7, 2016 Hello there, I have a form that has controls created at runtime, if I run the project using the Standalone it works fine, but when I deploy it to Apache 32bits when I try to open the form I get an exception "Control '' has no parent Window" Does anyone know what might it be? Thank you. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted December 7, 2016 Administrators Share Posted December 7, 2016 Hi, Probably you are using non-uniGUI controls in your application. Quote Link to comment Share on other sites More sharing options...
Mauri Posted December 7, 2016 Author Share Posted December 7, 2016 If that was the case shouldn't the error occur in the standalone aswell? Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted December 7, 2016 Administrators Share Posted December 7, 2016 If that was the case shouldn't the error occur in the standalone aswell?In standalone we have a real vcl app in background handling message loops. In isapi or service no such loop exists Quote Link to comment Share on other sites More sharing options...
Mauri Posted December 7, 2016 Author Share Posted December 7, 2016 In fact I created components but all of them Inherit from Unigui components, is there anything I should bear in mind when it comes to custom components? Like, events, references, etc..? Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted December 7, 2016 Administrators Share Posted December 7, 2016 You are using controls which rely on Windows Handle and message loops. uniGUI components won't need them. Quote Link to comment Share on other sites More sharing options...
Mauri Posted December 7, 2016 Author Share Posted December 7, 2016 I'll check my code too see what's happening.. thank you Quote Link to comment Share on other sites More sharing options...
Mauri Posted December 14, 2016 Author Share Posted December 14, 2016 Solved it, the problem was not in my components, it was actually a function that I had in my legacy software that used a TLabel to get the Canvas.TextWidth to set the Width of some components, just replaced the TLabel for a TUniBitMap and it's working fine, thanks for the help. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted December 14, 2016 Administrators Share Posted December 14, 2016 Thanks for update. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.