Jump to content

Recommended Posts

I have a problem with my DataSnap client application on Android 11 OS. Not every time but from time to time and on different places in my code. Sometimes I recive this message

 

image.thumb.png.2c248f8856a4cc92ac31dffd2c2731d0.png

 

When i click Break debuger points on this line in code

 

image.thumb.png.16cad344aa7b49406d9f2074ad4c79c7.png

 

What can be a problem

  • Like 1

Share this post


Link to post

Does it always fail on the same parameter?

I'd probably do it like this, but it depends on the declaration and description of the GetOptParameter method.

  var
    FNameOut: AnsiString;
  begin
    ...
    FNameOut := UTF8Encode(ParamName);
    if FDSBase.GetOptParameter(0, FieldNo, @FNameOut, ParamType,  ...

Share this post


Link to post
On 10/30/2024 at 9:12 PM, dlucic said:

I have a problem with my DataSnap client application on Android 11 OS. Not every time but from time to time and on different places in my code. Sometimes I recive this message

 

image.thumb.png.2c248f8856a4cc92ac31dffd2c2731d0.png

 

When i click Break debuger points on this line in code

 

image.thumb.png.16cad344aa7b49406d9f2074ad4c79c7.png

 

What can be a problem

Same to me 😞

Share this post


Link to post
On 10/31/2024 at 4:01 PM, Lars Fosdal said:

Does it always fail on the same parameter?

I'd probably do it like this, but it depends on the declaration and description of the GetOptParameter method.


  var
    FNameOut: AnsiString;
  begin
    ...
    FNameOut := UTF8Encode(ParamName);
    if FDSBase.GetOptParameter(0, FieldNo, @FNameOut, ParamType,  ...

I made a simple test application as you tell me but I never get error as one in my application. New app has all the client data sets as my original application

 

image.thumb.png.222c4822ef0905d8273cd95f66b5d35a.png

 

When I click on button List param my test app fill Listbox with all params from the CDS selected by Radiobuttons. 

 

image.thumb.png.cfa16ce6abd6925b4e39736d34c74c5c.png

 

Then I select one of params and click on the other button Test param. This is onClick method code

 

image.thumb.png.71e04d151ae17b9ed207fa7621be7f9e.png

 

I never get error as I get in my original application

 

 

Share this post


Link to post
On 11/2/2024 at 4:32 PM, TDDung said:

Same to me 😞

Any solution?

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×