Quantcast
Channel: Embarcadero Community - Embarcadero Community
Viewing all 3212 articles
Browse latest View live

Does my Delphi subscription enable me take advantage of new "free" offers.

$
0
0

I have a maintenance subscription for Delphi Pro 10 Seattle I purchased last year.  I have downloaded Berlin 10.1 and see Embarcadero is offering the Mobile Add-On Pack free for those who purchase a new or upgrade license.  Does my my subscription entitle me to also obtain the add-on for free?

Thanks in advance

 

Terry


Memory leak after upgrade to Delphi 10.1 Berlin

$
0
0

Hi all,

i recently upgraded to Delphi 10.1 Berlin from 10 U1 Seattle.

After that I get a memory leak reported by the IDE.
The Code hasn't been changed after the upgrade, so something must have been changed in the Delphi sources.

What I have figured out so far is, that it is somehow related to the TMenuBar component.
When I run the application and not touching the main menu in any way, then the memory leak is not reported.
But as soon as I click on a menu item (opening the menu is already enough, no need to execute a menu entry) the leak is reported after closing the application.

Is it a known problem?
Is there a workaround?

 

You can very easy reproduce the error by:

1. Create a new Firemonkey desktop application
2. drop a TMenuBar item on the form
3. add some menu items
4. set  "System.ReportMemoryLeaksOnShutdown := True;" in the application unit
5. run the application and click the menu item
6. close the application

Here you go... a memory leak should be reported after closing the app.


Some Info:
I am developing on a windows 7 system;
The IDE is version Delphi 10.1 Berlin;
The application is based on the FMX framework.
Styles are used (but disabling styles did not help) 

Greetings

A. Hoppe

Looking to create an activex form with an image component on it.

$
0
0

Delphi Seattle or Berlin. i have followed all the instructions to the point that i have created the activex file and registered it. but i cannot do anything with it. I have read many articles/forums that say to 'JUST ADD WHATEVER PROPERTIES/FUNCTIONS' you need but how/where. i have my activex project and when i use it i cannot load a picture into the image box because i do not have a LoadFromFile method. i am looking for an example of how/where to add the new method to loadfromfile, savetofile, clearimage and any other things i can add to the activex control. just how. Thanks.

OnFormCloseQuery not working in Delphi 10.1 Berlin anymore

$
0
0

Hi,

I recently upgraded to Delphi 10.1 Berlin.
After upgrading the OnFormCloseQuery-Event of a Firemonkey-Form dos not work anymore.

To reproduce the error simply:

1. create a blank Firemonley Desktop-Application
2. create a second form
3. in the OnFormCloseQuery event-proc of the second form set "canClose := False" to prevent the form from closing
4. drop a button on the first (main) form
5. in the OnClick-event of the button, create the second form and call "ShowModal" to display the form.
6. destroy the second form after showModal.
7. run the application

Now you can observe that the second form can be closed without any error.
The CanClose := False is simply ignored.

We use this feature in multiple applications very excessive to ask the "Close window without saving?" question.
So this is definitely a show stopper!! It renders 10.1 Berlin useless.

Will this be fixed in the near future?

Greetings

A. Hoppe 

Delphi XE7 FMX: TStringGrid: OnSelectCell event bug

$
0
0

    Delphi XE7 update1 bugs:  (Under FMX environment)     18.  stringGrid: OnSelectCell event bug: after first triggering this event, once you move your mouse into this column this event will be triggered    [No matter you move into visible or invisble area of this column) Drop a stringGrid into a Form, and create 2 column: StringColumn1, StringColumn2, and set RowCount:=100;    procedure TForm1.StringGrid1SelectCell(Sender: TObject; const ACol, ARow: Integer; var CanSelect: Boolean); begin if StringGrid1.Columns[acol].Name='StringColumn1' then    showmessage( 'StringColumn1');   end;  

error rest

$
0
0

Hi All

After compiling my project in Delphi 10.1 this returned with the error TNETHTTP and components TREST returning message 'DATA ERROR' and 'resquest DATA ERROR'. (only IOS)

What to do ?

Thank's

Delphi Berlin with Android 4.0.3. How?

$
0
0

How to configure Delphi Berlin to Android 4.0.3?

delphi: how to implementat static receiver in android

$
0
0

 int AndroidManifest.xml

  like this:

              receiver android:name="com.baidu.push.example.MyPushMessageReceiver"

              intent-filter

                       action android:name="com.baidu.android.pushservice.action.MESSAGE"

       

           

        

               

             

               

               

           

       

           

               

               

               

               

               

           

       

           

               

               

               

               

               

           

       

               

               

               

               

               

           

       

               

               

               

               

   

               

               

               

               

           

       


Bug in VCL.Olectrls

$
0
0

Dear-Embarcadero-Team.

 

We found a bug concerning OnMouseMove in procedure TOleControl.StandardEvent - The MouseMove-Event only has 3 Arguments and due to a check on Args >=4 the code is not for MouseMove does not get executed. We checked olectrls from Delphi5 to XE6 and the problem exists in all versions.

Original Code:

      DISPID_MOUSEDOWN, DISPID_MOUSEMOVE, DISPID_MOUSEUP:

        if Params.cArgs >= 4 then

        begin

          X := Integer(Variant(Args^[3])) and 7;

          Y := Integer(Variant(Args^[2])) and 7;

          Button := ButtonMap[X];

          Shift := ShiftMap[Y] + MouseMap[X];

          X := Variant(Args^[1]);

          Y := Variant(Args^[0]);

          case DispID of

            DISPID_MOUSEDOWN:

              MouseDown(Button, Shift, X, Y);

            DISPID_MOUSEMOVE:

              MouseMove(Shift, X, Y);

            DISPID_MOUSEUP:

              MouseUp(Button, Shift, X, Y);

          end;

        end;

 

 

Working code (Code in bold was added/changed):

      DISPID_MOUSEDOWN, DISPID_MOUSEMOVE, DISPID_MOUSEUP:

        if Params.cArgs >= 3 then       

        begin

          if Params.cArgs >3 then X := Integer(Variant(Args^[3])) and 7;

          Y := Integer(Variant(Args^[2])) and 7;

          Button := ButtonMap[X];

          if DispID = DISPID_MOUSEMOVE then  Shift := MouseMap[Y]

          else Shift := ShiftMap[Y] + MouseMap[X];

          X := Variant(Args^[1]);

          Y := Variant(Args^[0]);

          case DispID of

            DISPID_MOUSEDOWN:

              MouseDown(Button, Shift, X, Y);

            DISPID_MOUSEMOVE:

              MouseMove(Shift, X, Y);

            DISPID_MOUSEUP:

              MouseUp(Button, Shift, X, Y);

          end;

        end;

in a macro, how do I access the name of the parent entity for a subtype?

$
0
0

When exporting Entities via a macro, I'd like to include the name of the parent entity where the current entity is a subtype. There's no property on Entity or Relationship that I can use, at least according to the object model in the macro editor.Do I have to build a list of subtypes via clusters and look up my entity in that, or is there a better way?

When I look at a list of entities in the Entity Editor, I see the words Supertype and Subtype in the 'Type' column, yet those values don't come from the relationship 'type' property.

Exception TStaticListAction on change display resolution

$
0
0

Hello Embarcadero Team,

I am using Delphi XE8 Professional and meet with strange run-time exception. To reproduce this exception I created standard VCL form application with TActionToolBar. Toolbar contains TCustomActionCombo created from TStaticListAction (included 2 items - amount does not matter).

If I try to change resolution of display with this application the exception occurs: 

Access violation at address 00407920 in module 'Project1.exe'. Read of address FFFFFFFD;

Invalid pointer operation.

Access violation at address 00000000 in module 'Project1.exe'. Read of address 00000000.

Help me pls to exclude this exception from application

Thank you an advance

M. Martynov

 

 

delphi: how to implementat static receiver on android

$
0
0

 int AndroidManifest.xml

  like this:

              receiver android:name="com.baidu.push.example.MyPushMessageReceiver"

              intent-filter

                       action android:name="com.baidu.android.pushservice.action.MESSAGE"

java code:

public class MyPushMessageReceiver  extends PushMessageReceiver {

    /** TAG to Log */

    public static final String TAG = MyPushMessageReceiver.class

            .getSimpleName();

    public static  String SRES;

......          

           

        

               

             

               

               

           

       

           

               

               

               

               

               

           

       

           

               

               

               

               

               

           

       

               

               

               

               

               

           

       

               

               

               

               

   

               

               

               

               

           

       

BiDi support for Appmethod

$
0
0

Dear Firends,


I want to migrate from VCL to Appmethod cross-platform solution. but when I was test the Appmethod(or RAD Studio XE5), I gave that they does-not support BiDi.I want to know:

1.When do you think the Appmethod(or RAD Studio XE5) will support BiDi? (for Arabic, Hebrew, Persian or other languages that are right-to-left, Appmethod(or RAD Studio XE5) could-not a solution for starting or migrating to cross-platform. They have to search for another cross-platform solution that support BiDi).

2. I think, for a rapid response to these customers, At least, you should corrects the drawing of the characters, Regardless of full BiDi support. For explained the problem, I have an example here. The word "سلام" displayed like this "س ل ا م" at runtime. The first step could be this that Appmethod(or RAD Studio XE5) display the words correct(for my example, "سلام"), meanwhile they are displaying from left to right. It is cool for now.

3. The final solution are the somethings like VCL behavior.

Best Regards

Mehdy

BiDi RightToLeft support?

$
0
0

Hi,

Any news for BiDi RightToLeft support for Hebrew/Arabic on iOS and Android?

Thanks,

Asaf

Docwiki is DOWN

$
0
0

Hello friends. 

I am learning about new features of Delphi, but all the tutorials and demos are posted at the website  docwiki.embarcadero.com,

 

the website has been down for 2 two days,... (since 3-jun-2016 to 5-jun-2016, and is still down)

can some one help us?

there is not another place to look for the official tutorials and samples of Embarcadero?

we have completly dependence fo that website?

thank you for your help


Unable to import .Net assembly

$
0
0

I have a group of .Net assemblies (FBF.*.dll).  They are signed and have strong names. I have registered them in the GAC. They appear in Windows\Microsoft.Net\assembly\GAC_MSIL\FbF.*. They do not appear in Windows\assembly. 

When I try to import the .Net assembly, they do NOT appear in the list and I have been unable to add them.

Any ideas would be appreciated.

TDSRestConnection TimeOut ENetHTTPClientException

$
0
0

Hello,

using a DataSnap REST Serve, when consuming a method that takes 30 seconds or more to return, the client application this exception occurs "ENetHTTPClientException".

 

Is there any TimeOut option to configure on TDSRestConnection?

Or some other solution?

 

Using Delphi 10 Seattle.

 

Thanks.

TeeChart for RAD Studio 10.1

$
0
0

The feature list for RAD Studio 10.1 indicates it includes TeeChart but it is not installed in the Tool Palette and I cannot find a design time package to install.  The GetIt Manager doesn't list TeeChart as an option.  What do I need to do to install TeeChart in RAD Stuation 10.1?

boost in c++ 10.1 starter

$
0
0

Hello,

The Feature Matrix states that boost is part of c++ starter Edition. But after Installation there is no boost Folder in include path.
Does it mean that the boost is excluded? Or I miss something.

Thanks,
Vlad

delphi xe7 couldn't debug 64bit application

$
0
0

I installed XE7 under WIN 10, so debugging 32-bit programs is normal, but the 64 program, compile is set breakpoints, but it does not work .Idea I basically set are normal, check the DEBUG information are set up, .Personal thought is WIN10 permission problems

Viewing all 3212 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>