Jump to content

UniGUI and dbexpress


Guest

Recommended Posts

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

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

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?

.

 

  • Upvote 1
Link to comment
Share on other sites

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

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

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

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

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

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

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

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

  • 2 weeks later...

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

  • Administrators

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. :unsure:

Link to comment
Share on other sites

  • 2 weeks later...
  • Administrators

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...