55143681 Posted September 18, 2018 Share Posted September 18, 2018 I have a project developed with c++builder and uniGUI 1472,and updated sometimes with unigui,when updated to 1480,it compile ok. But ,when I create a new project have a login form with 1480,it compile normal,but when I click the button to login,it throw a memory error, I find that It maybe because the "return",if I replace the "return" with ModalResult=mrCancel; it works well. The lower uniGUI don'g have the problem,and the old project in the 1480 don't have the problem,but with 1480,when I create a new project with loginform,the problem comes out. void __fastcall TUniFormLogin::UniButton1Click(TObject *Sender) { //登录 UniMainModule()->loginUserNo=UniEdit1->Text; loginPass=UniEdit2->Text; // UniQuery1->Close(); UniQuery1->SQL->Clear(); UniQuery1->SQL->Add("select * from user_list_info where user_no=:p1"); UniQuery1->ParamByName("p1")->Value=UniMainModule()->loginUserNo; UniQuery1->Open(); if(UniQuery1->RecordCount<1) { ShowMessage("登录失败:该用户不存在!"); UniEdit1->SetFocus(); return; } // ModalResult=mrOk; this->Close(); } //--------------------------------------------------------------------------- Quote Link to comment Share on other sites More sharing options...
Oliver Morsch Posted September 18, 2018 Share Posted September 18, 2018 Try without "this->Close();". "ModalResult=mrOk;" should do the job (close the form). Quote Link to comment Share on other sites More sharing options...
55143681 Posted September 18, 2018 Author Share Posted September 18, 2018 3 hours ago, Oliver Morsch said: Try without "this->Close();". "ModalResult=mrOk;" should do the job (close the form). In the old version,I have that ,and works well. In 1480 version,you needn't that.just ModalResult=mrOk enough. Quote Link to comment Share on other sites More sharing options...
55143681 Posted September 18, 2018 Author Share Posted September 18, 2018 Fuck!!!!why???? Mind your language.(Moderator) c++10.2.3 && uniGUI1480. Just a simple loginForm.and just show the input "UniEdit1->text" But I have an Error,and showMessage show nothing? With before version,my project works well.And my before project comiled with 1480 works well. But when I create a new project have only the loginForm ,It doesn't work. Quote Link to comment Share on other sites More sharing options...
Oliver Morsch Posted September 20, 2018 Share Posted September 20, 2018 Which value has your button for ModalResult? Quote Link to comment Share on other sites More sharing options...
55143681 Posted September 20, 2018 Author Share Posted September 20, 2018 1 hour ago, Oliver Morsch said: Which value has your button for ModalResult? mrNone Quote Link to comment Share on other sites More sharing options...
55143681 Posted September 20, 2018 Author Share Posted September 20, 2018 Just now, 55143681 said: mrNone The same code works well with 1471. Quote Link to comment Share on other sites More sharing options...
55143681 Posted September 20, 2018 Author Share Posted September 20, 2018 Just now, 55143681 said: The same code works well with 1471. testShow.zip testLogin.zip Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted September 20, 2018 Administrators Share Posted September 20, 2018 Hi, Have you opened a support ticket for this? Quote Link to comment Share on other sites More sharing options...
55143681 Posted September 21, 2018 Author Share Posted September 21, 2018 On 9/20/2018 at 10:28 PM, Farshad Mohajeri said: Hi, Have you opened a support ticket for this? I am your licensed user,but I don't know how to open that . Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted September 21, 2018 Administrators Share Posted September 21, 2018 You can easily do it in support portal. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 22, 2018 Share Posted September 22, 2018 18 hours ago, 55143681 said: I am your licensed user,but I don't know how to open that . http://www.unigui.com/support/support-portal Quote Link to comment Share on other sites More sharing options...
55143681 Posted September 22, 2018 Author Share Posted September 22, 2018 2 hours ago, Sherzod said: http://www.unigui.com/support/support-portal I have send that。 Quote Link to comment Share on other sites More sharing options...
55143681 Posted October 6, 2018 Author Share Posted October 6, 2018 Eighteen days have pass through,when will you resolve the problem? 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.