augusto.pellis Posted March 25, 2021 Share Posted March 25, 2021 Good morning everybody. I am facing a strange issue when compiling and running a Stand alone server uniGui application. On Debug mode I have not the error and there are no {ifdef debug} directives that might change program behaviour. I get an access violation when setting the project's login form ModalResult to mrOK. The av raises at the exact line where ModalResult is set. that's the log: dds.exe: 00003184: 07:17:37 [TUniServerModule]:Server First Init. dds.exe: 00003184: 07:17:37 [TUniServerModule]:Start Path = C:\Projects\XXXXX\Win32\Release\ dds.exe: 00003184: 07:17:37 [TUniServerModule]:Debug Mode = ON dds.exe: 00003184: 07:17:37 [TUniServerModule]:Global Cache Folder Erased. <9> Files deleted. dds.exe: 00003184: 07:17:38 [TUniServerModule]:Starting HTTP Server on Port: 8075... dds.exe: 00003184: 07:17:38 [TUniServerModule]:HTTP Server Started on Port: 8075 dds.exe: 00000B64: 07:17:40 [127.0.0.1]:EUniSessionException : Invalid session or session Timeout. (Session not found: DYrfXbm399107EE5374 ) : Addr: $008397DA dds.exe: 000040A4: 07:17:41 [127.0.0.1]:EUniSessionException : Invalid session or session Timeout. (Session not found: DYrfXbm399107EE5374 ) : Addr: $008397DA dds.exe: 000034D8: 07:17:57 [127.0.0.1]:Class: Exception<br>Msg..: An instance of <TMainForm> already is being created.<br><br>Comp: btnLog_In (TUniBitBtn)<br>Form: frmLogin<br> dds.exe: 000034D8: 07:17:57 [An instance of <TMainForm> already is being created.-127.0.0.1]:Exception : An instance of <TMainForm> already is being created. : Addr: $007ED5E8 Has somebody got suggestions? Thank you Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted March 25, 2021 Share Posted March 25, 2021 Hello, I have Never seen that before. It seems that your google or (browser) session is steel open. - Try to close your google and run again. - Try to recompile (on release mode) - Try with a blank Uniproject. 127.0.0.1]:EUniSessionException : Invalid session or session Timeout. (Session not found: DYrfXbm399107EE5374 ) : Addr: $008397DA Quote Link to comment Share on other sites More sharing options...
augusto.pellis Posted March 25, 2021 Author Share Posted March 25, 2021 Hi Abaksoft, of course I tried all the options already. A new unigui project works flawlessly. There are a pair of questions here on the forum regarding a similar issue An instance of <TMainForm> already is being created. What's weird is that it happens when you set ModalResult Quote Link to comment Share on other sites More sharing options...
augusto.pellis Posted March 25, 2021 Author Share Posted March 25, 2021 Found the issue. Was a function on login process which would raise an error. Not sure why at release only but fixing that solved the issue. Thank you all 🙂 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.