Guest Posted April 18, 2011 Share Posted April 18, 2011 Message from: "Patryk Nusbaum" Hello there, I have been trying to make UniGUI work with dbexpress, but it causes an AccessViolation error caused by the ExtPascalx.bpl library. Is it impossible to use dbexpress components with UniGUI? I use Delphi XE. Patryk. . Link to comment Share on other sites More sharing options...
Guest Posted April 18, 2011 Author Share Posted April 18, 2011 Message from: "Farshad Mohajeri" "Patryk Nusbaum" wrote in message news:iCWhfaf$LHA.2024@anaxagvs227... > Hello there, > > I have been trying to make UniGUI work with dbexpress, but it causes an > AccessViolation error caused by the ExtPascalx.bpl library. Is it > impossible to use dbexpress components with UniGUI? > There should be no issues regarding using uniGUI and dbexpress. I've used it a few times myself. Where do you get this message? Are you using runtime packages? . Link to comment Share on other sites More sharing options...
Guest Posted April 18, 2011 Author Share Posted April 18, 2011 Message from: "Patryk Nusbaum" W dniu 2011-04-18 21:04, Farshad Mohajeri pisze: > "Patryk Nusbaum" wrote in message > news:iCWhfaf$LHA.2024@anaxagvs227... >> Hello there, >> >> I have been trying to make UniGUI work with dbexpress, but it causes an >> AccessViolation error caused by the ExtPascalx.bpl library. Is it >> impossible to use dbexpress components with UniGUI? >> > > There should be no issues regarding using uniGUI and dbexpress. I've used it > a few times myself. > > Where do you get this message? Are you using runtime packages? > > During runtime, I didn't know how to integrate them into the application. Can you tell me how? . 1 Link to comment Share on other sites More sharing options...
Guest Posted April 18, 2011 Author Share Posted April 18, 2011 Message from: "Farshad Mohajeri" "Patryk Nusbaum" wrote in message news:0ux5Hvf$LHA.2024@anaxagvs227... >W dniu 2011-04-18 21:04, Farshad Mohajeri pisze: >> "Patryk Nusbaum" wrote in message >> news:iCWhfaf$LHA.2024@anaxagvs227... >>> Hello there, >>> >>> I have been trying to make UniGUI work with dbexpress, but it causes an >>> AccessViolation error caused by the ExtPascalx.bpl library. Is it >>> impossible to use dbexpress components with UniGUI? >>> >> >> There should be no issues regarding using uniGUI and dbexpress. I've used >> it >> a few times myself. >> >> Where do you get this message? Are you using runtime packages? >> >> > > During runtime, I didn't know how to integrate them into the application. > Can you tell me how? You won't get a "bpl" related runtime error unless you're using runtime packages? Are you using runtime packages? . Link to comment Share on other sites More sharing options...
Guest Posted April 18, 2011 Author Share Posted April 18, 2011 Message from: "Patryk Nusbaum" Well, actually these errors seems to be caused by the TUniToolbar components, when mouse-over. I thought it was related to dbexpress, but it seems it's not. . Link to comment Share on other sites More sharing options...
Guest Posted April 18, 2011 Author Share Posted April 18, 2011 Message from: "Patryk Nusbaum" W dniu 2011-04-18 21:27, Patryk Nusbaum pisze: > Well, actually these errors seems to be caused by the TUniToolbar > components, when mouse-over. I thought it was related to dbexpress, but > it seems it's not. But well, dbexpress works on the normal version, while the web one does not seem to be able to connect. . Link to comment Share on other sites More sharing options...
Guest Posted April 18, 2011 Author Share Posted April 18, 2011 Message from: "Farshad Mohajeri" "Patryk Nusbaum" wrote in message news:3M%23QQ7f$LHA.4040@anaxagvs227... >W dniu 2011-04-18 21:27, Patryk Nusbaum pisze: >> Well, actually these errors seems to be caused by the TUniToolbar >> components, when mouse-over. I thought it was related to dbexpress, but >> it seems it's not. > > But well, dbexpress works on the normal version, while the web one does > not seem to be able to connect. Where do you put your data components? I mean connections and datasets? Can you send a sample test case? . Link to comment Share on other sites More sharing options...
Guest Posted April 18, 2011 Author Share Posted April 18, 2011 Message from: "Patryk Nusbaum" W dniu 2011-04-18 21:33, Farshad Mohajeri pisze: > "Patryk Nusbaum" wrote in message > news:3M%23QQ7f$LHA.4040@anaxagvs227... >> W dniu 2011-04-18 21:27, Patryk Nusbaum pisze: >>> Well, actually these errors seems to be caused by the TUniToolbar >>> components, when mouse-over. I thought it was related to dbexpress, but >>> it seems it's not. >> >> But well, dbexpress works on the normal version, while the web one does >> not seem to be able to connect. > > Where do you put your data components? I mean connections and datasets? > > Can you send a sample test case? > > I put it on the main form. Sure, here it goes. Link to comment Share on other sites More sharing options...
Guest Posted April 18, 2011 Author Share Posted April 18, 2011 Message from: "Farshad Mohajeri" "Patryk Nusbaum" wrote in message news:57LA9%23f$LHA.4040@anaxagvs227... >W dniu 2011-04-18 21:33, Farshad Mohajeri pisze: >> "Patryk Nusbaum" wrote in message >> news:3M%23QQ7f$LHA.4040@anaxagvs227... >>> W dniu 2011-04-18 21:27, Patryk Nusbaum pisze: >>>> Well, actually these errors seems to be caused by the TUniToolbar >>>> components, when mouse-over. I thought it was related to dbexpress, but >>>> it seems it's not. >>> >>> But well, dbexpress works on the normal version, while the web one does >>> not seem to be able to connect. >> >> Where do you put your data components? I mean connections and datasets? >> >> Can you send a sample test case? >> >> > > I put it on the main form. Sure, here it goes. > It will be tested as soon as conversion is completed. thx . Link to comment Share on other sites More sharing options...
Guest Posted April 18, 2011 Author Share Posted April 18, 2011 Message from: "Patryk Nusbaum" W dniu 2011-04-18 21:36, Farshad Mohajeri pisze: > "Patryk Nusbaum" wrote in message > news:57LA9%23f$LHA.4040@anaxagvs227... >> W dniu 2011-04-18 21:33, Farshad Mohajeri pisze: >>> "Patryk Nusbaum" wrote in message >>> news:3M%23QQ7f$LHA.4040@anaxagvs227... >>>> W dniu 2011-04-18 21:27, Patryk Nusbaum pisze: >>>>> Well, actually these errors seems to be caused by the TUniToolbar >>>>> components, when mouse-over. I thought it was related to dbexpress, but >>>>> it seems it's not. >>>> >>>> But well, dbexpress works on the normal version, while the web one does >>>> not seem to be able to connect. >>> >>> Where do you put your data components? I mean connections and datasets? >>> >>> Can you send a sample test case? >>> >>> >> >> I put it on the main form. Sure, here it goes. >> > > It will be tested as soon as conversion is completed. thx > > And where did you put the components when you were developing your app? . Link to comment Share on other sites More sharing options...
Guest Posted April 18, 2011 Author Share Posted April 18, 2011 Message from: "Farshad Mohajeri" "Patryk Nusbaum" wrote in message news:rqIG0Bg$LHA.4040@anaxagvs227... >W dniu 2011-04-18 21:36, Farshad Mohajeri pisze: >> "Patryk Nusbaum" wrote in message >> news:57LA9%23f$LHA.4040@anaxagvs227... >>> W dniu 2011-04-18 21:33, Farshad Mohajeri pisze: >>>> "Patryk Nusbaum" wrote in message >>>> news:3M%23QQ7f$LHA.4040@anaxagvs227... >>>>> W dniu 2011-04-18 21:27, Patryk Nusbaum pisze: >>>>>> Well, actually these errors seems to be caused by the TUniToolbar >>>>>> components, when mouse-over. I thought it was related to dbexpress, >>>>>> but >>>>>> it seems it's not. >>>>> >>>>> But well, dbexpress works on the normal version, while the web one >>>>> does >>>>> not seem to be able to connect. >>>> >>>> Where do you put your data components? I mean connections and datasets? >>>> >>>> Can you send a sample test case? >>>> >>>> >>> >>> I put it on the main form. Sure, here it goes. >>> >> >> It will be tested as soon as conversion is completed. thx >> >> > And where did you put the components when you were developing your app? Of course, visual components are put on Forms. Non-visual data aware components can be put on Forms, but it is better to place them on MainModule. . Link to comment Share on other sites More sharing options...
Guest Posted April 18, 2011 Author Share Posted April 18, 2011 Message from: "Patryk Nusbaum" I do not know if I'm doing something wrong or what, but it doesn't want to connect. It works on desktop, but not in browser. I moved the components to MainModule and the problem remains. W dniu 2011-04-18 21:42, Farshad Mohajeri pisze: > "Patryk Nusbaum" wrote in message > news:rqIG0Bg$LHA.4040@anaxagvs227... >> W dniu 2011-04-18 21:36, Farshad Mohajeri pisze: >>> "Patryk Nusbaum" wrote in message >>> news:57LA9%23f$LHA.4040@anaxagvs227... >>>> W dniu 2011-04-18 21:33, Farshad Mohajeri pisze: >>>>> "Patryk Nusbaum" wrote in message >>>>> news:3M%23QQ7f$LHA.4040@anaxagvs227... >>>>>> W dniu 2011-04-18 21:27, Patryk Nusbaum pisze: >>>>>>> Well, actually these errors seems to be caused by the TUniToolbar >>>>>>> components, when mouse-over. I thought it was related to dbexpress, >>>>>>> but >>>>>>> it seems it's not. >>>>>> >>>>>> But well, dbexpress works on the normal version, while the web one >>>>>> does >>>>>> not seem to be able to connect. >>>>> >>>>> Where do you put your data components? I mean connections and datasets? >>>>> >>>>> Can you send a sample test case? >>>>> >>>>> >>>> >>>> I put it on the main form. Sure, here it goes. >>>> >>> >>> It will be tested as soon as conversion is completed. thx >>> >>> >> And where did you put the components when you were developing your app? > > > Of course, visual components are put on Forms. > Non-visual data aware components can be put on Forms, but it is better to > place them on MainModule. > > > . Link to comment Share on other sites More sharing options...
Guest Posted April 27, 2011 Author Share Posted April 27, 2011 Message from: "Oscar Flor" I suffer many of DBExpress related buggies. I found workarrounds for many of them. I don't send example programas to Farshad to solve to because I'm expecting the new core to be ready that can obviusly have many new bugs but corrections to actual problems implied. Best Regard Colleages "Patryk Nusbaum" escribió en el mensaje news:iCWhfaf$LHA.2024@anaxagvs227... > Hello there, > > I have been trying to make UniGUI work with dbexpress, but it causes an > AccessViolation error caused by the ExtPascalx.bpl library. Is it > impossible to use dbexpress components with UniGUI? > > I use Delphi XE. > > Patryk. . Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted May 1, 2011 Administrators Share Posted May 1, 2011 Message from: "Oscar Flor" I suffer many of DBExpress related buggies. I found workarrounds for many of them. Hmm. I will ask for details when 0.85.0 is published. I don't send example programas to Farshad to solve to because I'm expecting the new core to be ready that can obviusly have many new bugs but corrections to actual problems implied. Yes, I can guarantee that the new core will introduce new bugs. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted May 10, 2011 Administrators Share Posted May 10, 2011 Message from: "Patryk Nusbaum" Hello there, I have been trying to make UniGUI work with dbexpress, but it causes an AccessViolation error caused by the ExtPascalx.bpl library. Is it impossible to use dbexpress components with UniGUI? I think I could identify your problem. It is related to ShowModal and not DBX itself. In attached test case: UniFormLogin().ShowModal(); if (UniFormLogin().ModalResult = mrOK) then begin UserLogin := UniFormLogin().edtLogin.Text; UserPassword := UniFormLogin().edtPassword.Text; SQLConnection.Params.Values['User_Name'] := UserLogin; SQLConnection.Params.Values['Password'] := UserPassword; SQLConnection.Open(); //if (SQLConnection.Connected) then //begin UniStatusBar.Panels[0].Text := 'Connected!'; UniDBGrid.Visible := True; UniToolButton1.Enabled := False; UniToolButton2.Enabled := True; SQLDataset.Active := True; ClientDataSet.Active := True; //end; end; In WebMode ShowModal is not "blocking" and code block after is immediately executed. The code block inside IF..THEN is not executed because ModalResult never returns mrOK. Instead you must execute the above code inside LoginForm's OnClose event. procedure TUniFormLogin.UniFormClose(Sender: TObject; var Action: TCloseAction); begin if ModalResult=mrOK then MainForm.ProcessOK; end; Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now