DonaldShimoda Posted February 23, 2021 Share Posted February 23, 2021 function UniMainModule: TUniMainModule; begin Result := TUniMainModule(UniApplication.UniMainModule); Result = nil Theres any pre requisites before get this value? Best regards Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted February 24, 2021 Share Posted February 24, 2021 17 hours ago, DonaldShimoda said: function UniMainModule: TUniMainModule; begin Result := TUniMainModule(UniApplication.UniMainModule); Result = nil Theres any pre requisites before get this value? Best regards If there is no session, it will be nil. Are you calling this code from ServerModule? Quote Link to comment Share on other sites More sharing options...
DonaldShimoda Posted February 24, 2021 Author Share Posted February 24, 2021 Just now, Hayri ASLAN said: If there is no session, it will be nil. Are you calling this code from ServerModule? No, im calling from a frame inside the main unigui form, with an active session. Is very weird. Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted February 24, 2021 Share Posted February 24, 2021 Just now, DonaldShimoda said: No, im calling from a frame inside the main unigui form, with an active session. Is very weird. What about UniApplication.UniMainModule? is it nil too? Quote Link to comment Share on other sites More sharing options...
DonaldShimoda Posted February 24, 2021 Author Share Posted February 24, 2021 3 minutes ago, Hayri ASLAN said: What about UniApplication.UniMainModule? is it nil too? UniApplication is empty also as far as i remember. I must change the code, cant stop. 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.