Posts

Showing posts from October, 2015

Please help me to understand why AV is going on here (http://pastebin.com/YkAqQ604):

Please help me to understand why AV is going on here ( http://pastebin.com/YkAqQ604 ): program Project1; {$APPTYPE CONSOLE} {$R *.res} uses   System.SysUtils, System.Classes, System.JSON, Data.DBXJSONReflect; function Marshal(AObject: TObject): string; var   Marshaller: TJSONMarshal; begin   Marshaller := TJSONMarshal.Create;   try     Result := Marshaller.Marshal(AObject).ToJSON;   finally     FreeAndNil(Marshaller);   end; end; function Unmarshal(AString: string): TStringList; var   Unmarshaller: TJSONUnMarshal;   JV: TJSONValue; begin   Unmarshaller := TJSONUnMarshal.Create;   try     JV := TJSONObject.ParseJSONValue(AString);     try       Result := Unmarshaller.Unmarshal(JV) as TStringList;     finally       FreeAndNil(JV);     end;   finally     FreeAndNil(Unmarshaller);   end; end; function MarshalUnmarshal: string; var   StringList: TStringList;   Marshaled: string; begin   StringList := TStringList.Create;   try     StringList.Text := 'abc';     Marshaled := Marshal(St

I guess it can't hurt to try...

I guess it can't hurt to try... Very annoyed by the fact that intrinsic functions which are overloaded don't behave like regular overloaded functions, in that trying to add an additional overload will hide the intrinsic function instead. https://quality.embarcadero.com/browse/RSP-12795

Hi!

Hi! I am a Delphi developer from Hungary. I'm using it since Turbo Pascal 7.0 or so. Currently I'm using the latest Delphi Seattle, with a lot of TMS components, too.

hola como estan??

hola como estan?? tengo una pregunta, los reportes con QuickReport como se imprimen desde el cliente??

I have an article may be useful

I have an article may be useful  http://www.youtube.com/watch?v=XzuzG8elfLY

An old article, but still accurate on most of its content. Performance is not an easy task, unless you follow some simples rules... And know a little bit what is happening behind the scene.

An old article, but still accurate on most of its content. Performance is not an easy task, unless you follow some simples rules... And know a little bit what is happening behind the scene. http://blog.synopse.info/post/2011/05/20/How-to-write-fast-multi-thread-Delphi-applications

Hello guys

Image
Hello guys, I built a FMX Windows app from scratch, I have never seen a Delphi app running on Windows 10, but something got wrong and it is flickering a lot, when I interact with a control, the background get black and normal, normal and black and so on, at the same time other controls are weird rendered :( My Windows 10 is the 10.10.10240 build Thanks :D

Pascal Expert from Peganza has been released (the competitor to Roman Yankovsky's FixInsight)

Pascal Expert from Peganza has been released (the competitor to Roman Yankovsky's FixInsight) Information can be found here :  http://www.peganza.com/products_pex.html , with documentation found here :  http://www.peganza.com/pexhelp/index.html http://www.peganza.com/products_pex.html

Hi group

Hi group Need some help in convrert C+ code, namely char** e.g in a function call to a dll to get data:  char **return_data, int *return_data_len  return_data: Pointer to a pointer to the memory location of a char array containing the data returned from the datalogger I am suspecting its a pointer to a pointer of array (pansichar) I have googled...found like to use ^pansichar ? Thanks for input on how to use this (how to code in the header file for using the dll and how to handle the data passed to the program calling the dll file ( I suspect its an array where you need to allocate size that is set by the returned data length sort of thing) thanks!

I know this might as so often turn into a "language X is better" or "I've been using Delphi before you were even born I like it as it is" argument but I will risk it anyway (but since I got the mighty power of comment deletion for this post I will use it to remove all the unconstructive flaming - deal with it ;p).

I know this might as so often turn into a "language X is better" or "I've been using Delphi before you were even born I like it as it is" argument but I will risk it anyway (but since I got the mighty power of comment deletion for this post I will use it to remove all the unconstructive flaming - deal with it ;p). Let's talk about something that is called "ceremony vs essence" (see  http://bryanpendleton.blogspot.de/2010/02/ceremony-vs-essence.html ). Don't get me wrong: I like the Delphi language (why else would I waste a lot of my precious time writing open source in it...) but I feel it's way too much ceremony. When I have to exactly explain how something should be done instead of just writing what I want to achieve when I don't need to and typing long expressions and boilerplate code I feel the language forces way too much ceremony. And no, it's not just about the typing but also about reading more code than would be necessary.

Confession: My name is Lars Fosdal, and I am a writer of frameworks.

Image
Confession: My name is Lars Fosdal, and I am a writer of frameworks. It's just so hard not to do it!. I really dislike cut & paste code or having to rewrite the same code with just different types!  Generics are really addictive, and I fear I have become a user.

Hello!

Hello! So... I got a bit of friendly tease to do for Julian Bucknall :) Julian, I am sure you already know this, but DevExpress isn't allowed to "cheat" :) If you sell an RTF control, it MUST contain code to print the document :D You can't ship it without that! At the very least, provide a way in code to do it - and use it in the demos :D I looked into the Demos and the action for printing is invisible!!! DevExpress isn't allowed that luxury, we're spoiled! :D A

WTF ?!

WTF ?! this application just stop after the splashscreen under lolipop on a SONY tablet Z2 Android 5.1.1, and Samsung S5 Android 5.0, it works on a Samsung Tab 2 Android 4.1.2...the project compiled with Seattle works fine in debug mode but stop also in release mode ?! LogCat shows this: 10-30 13:58:24.077: I/Timeline(887): Timeline: Activity_windows_visible id: ActivityRecord{b393e23 u0 com.embarcadero.DelphiStaff/com.embarcadero.firemonkey.FMXNativeActivity t470} time:323606374 10-30 13:58:24.676: I/WindowState(887): WIN DEATH: Window{3505f613 u0 com.embarcadero.DelphiStaff/com.embarcadero.firemonkey.FMXNativeActivity} 10-30 13:58:24.717: I/ActivityManager(887): Process com.embarcadero.DelphiStaff (pid 12326) has died https://play.google.com/store/apps/details?id=com.embarcadero.DelphiStaff the online version is build with XE7 with the Lolipop patch (or was it XE8 ?! don't remember). https://play.google.com/store/apps/details?id=com.embarcadero.DelphiStaff

How can I remove this dependency to classes.dex on an Android project started under XE7, then XE8 and now Seattle ?

Image
How can I remove this dependency to classes.dex on an Android project started under XE7, then XE8 and now Seattle ? I can uncheck them, but can't delete them :/

Test case management tools

Test case management tools What tools do you use for creating and managing tests and executing them? I'm not thinking of DUnit/X - but manual, hands on tests, although integrating with automated testing would be a bonus.

#10Seattle

#10Seattle I am running Seattle Ent.  on Windows 10 Pro.  I have an Intel Core i7 and 16 GB Ram.  The IDE "blinks" about every minute.  All the toolbar icons go away for about 4 seconds and the IDE is totally non-responsive. It is more than annoying. Is anyone else experiencing this?

I've actually run across a situation where Error Insight and Find Declaration can find the identifier in question, but the compiler cannot.

I've actually run across a situation where Error Insight and Find Declaration can find the identifier in question, but the compiler cannot.  Fun, fun!

Delphi 2010 - Seattle - TFile.

Delphi 2010 - Seattle - TFile.GetLastWriteTimeUtc returns wrong (-1 hour), for a file timestamp set with TFile.SetLastWriteTimeUtc. Looks like caused by daylight savings offset. Sample below: var   fileName: String;   fileTimeStamp: TDateTime; begin   fileName := 'D:\testdate.txt';   //create the file   if not TFile.Exists(fileName) then     TFile.WriteAllText(fileName, ' ');   fileTimeStamp := EncodeDateTime(2015, 8, 22, 14, 26, 22, 0);   ShowMessage('Set ' + DateTimeToStr(fileTimeStamp)); //shows 2015-08-22 14:26:22, correct   TFile.SetLastWriteTimeUtc(fileName, fileTimeStamp);   ShowMessage('Get ' + DateTimeToStr(TFile.GetLastWriteTimeUtc(fileName))); //shows 2015-08-22 13:26:22, wrong -1 hour end;

Delphi 2010 - Seattle - TFile.GetLastWriteTimeUtc returns wrong (-1 hour), for a file timestamp set with TFile.SetLastWriteTimeUtc. Looks like caused by daylight savings offset.

Delphi 2010 - Seattle - TFile.GetLastWriteTimeUtc returns wrong (-1 hour), for a file timestamp set with TFile.SetLastWriteTimeUtc. Looks like caused by daylight savings offset. Sample below: var   fileName: String;   fileTimeStamp: TDateTime; begin   fileName := 'D:\testdate.txt';   //create the file   if not TFile.Exists(fileName) then     TFile.WriteAllText(fileName, ' ');   fileTimeStamp := EncodeDateTime(2015, 8, 22, 14, 26, 22, 0);   ShowMessage('Set ' + DateTimeToStr(fileTimeStamp)); //shows 2015-08-22 14:26:22, correct   TFile.SetLastWriteTimeUtc(fileName, fileTimeStamp);   ShowMessage('Get ' + DateTimeToStr(TFile.GetLastWriteTimeUtc(fileName))); //shows 2015-08-22 13:26:22, wrong -1 hour end;

The official Developer Skill Sprints playlist

The official Developer Skill Sprints playlist https://www.youtube.com/playlist?list=PLwUPJvR9mZHhZTajVWsgaFPLtDA-t1Xwc
To all the "Delphi codegen is horrible" folks out there - has any of you ever tried Delphi2Cpp? I was wondering if a translation to C++ code and then feeding that to the compiler of your choice will lead to a better result. Also how compatible is Delphi2Cpp with Delphi code containing generics and that stuff?

New blog post https://theroadtodelphi.wordpress.com/2015/10/28/using-the-network-list-manager-nlm-api-from-delphi/

New blog post  https://theroadtodelphi.wordpress.com/2015/10/28/using-the-network-list-manager-nlm-api-from-delphi/ https://theroadtodelphi.wordpress.com/2015/10/28/using-the-network-list-manager-nlm-api-from-delphi

Strange... I get AV in RTL150.BRL (Delphi XE) on exit after installing #TestInsight (1.1.2.0). Uninstalling it solves the problem. Any hint?

Strange... I get AV in RTL150.BRL ( Delphi XE ) on exit after installing #TestInsight (1.1.2.0). Uninstalling it solves the problem. Any hint?

Who's going to EKON 19 in Cologne, Germany, Nov 2-4?

Who's going to EKON 19 in Cologne, Germany, Nov 2-4? I'm not actually attending, but I live in Cologne and would happily meet up with anyone who's attending and feels like a beer or a tour of the city, including if you want to get out of the touristy parts. I've met up with a few people from this community over the past year, and it's always been great. Nice to put a face to a name and talk Delphi. Also, if you've never been to Köln before, with my deep local knowledge I can assist your decisions about what kind of Kölsch to drink (yes, some are better than others) and what kind of Altbier to drink (none, you Düsseldorf heathen.)
I stubbed out the function. That means it's like 99% done, right?
Looking for some screenshots of nice Windows apps developed in Delphi.  Most interested in the UI, well laid out, appealing, etc. Any chance a repository exists somewhere for inspiration for those of us who are graphically challenged?

Does anybody know any benchmark stats comparing TurboPower Abbrevia with TZipMaster? PS, years back I've done a very rough comparison (just be watching a stopwatch) between TZipMaster and another commercial one, TZipMaster wins. Now I see Abbrevia gets updated constantly in recent years and want to see if it is a viable alternative option.

Does anybody know any benchmark stats comparing TurboPower Abbrevia with TZipMaster? PS, years back I've done a very rough comparison (just be watching a stopwatch) between TZipMaster and another commercial one, TZipMaster wins. Now I see Abbrevia gets updated constantly in recent years and want to see if it is a viable alternative option. http://delphizip.org/

Generics T constraint

Generics T constraint TMyClass = class private   FReference: T; public    property Reference:T read FReference write FReference; end; T needs to be either a class or a record but you can't combine those constraints.  The obvious workaround is  TMyClassC = class(TMyClass ); TMyClassR = class(TMyClass ); That is a bit annoying :P

We have migrated to Delphi X Seattle.

We have migrated to Delphi X Seattle.   We now find that many of our DUnit tests fail because the overridden constructor for our descendants of TTestCase is not being called. Anyone know why that is?  Did DUnit change?  And how do you create a class without calling it's constructor, for heaven's sake?

Does anyone know how to get hold of Jacob Thurman apart from his G+ and Embarcadero email account? I think the Castalia website has been hacked - there are spam blog posts, and have been for several weeks, and I've been trying to let him know.

Does anyone know how to get hold of Jacob Thurman apart from his G+ and Embarcadero email account? I think the Castalia website has been hacked - there are spam blog posts, and have been for several weeks, and I've been trying to let him know. Look at the last three posts in the feed here, for example:  http://www.delphifeeds.com/feeds/186 http://www.delphifeeds.com/feeds/186

Hello guys

Image
Hello guys, I am surfing on a strange problem, please took a carefully look at the image below, The full code is hosted at https://gist.github.com/horaciojcfilho/c72a921b81ce65e9f218 My constructor is overloaded but the Delphi IDE highlight it like it was not marked with "overload" directive. I don't know what is going wrong :( Thanks :D
I just wonder... How do you test VCL components? Do you use DUnit, DUnitX or similar tool?

Christian Pradelli has just released a new and exciting IntraWeb Bootstrap Library. It requires IntraWeb 14.0.38 or later (so Delphi 2009 to 10 Seattle are supported). This new framework is free and open source, and is hosted on github. You can also find a complete online demo! Enjoy!

Christian Pradelli has just released a new and exciting IntraWeb Bootstrap Library. It requires IntraWeb 14.0.38 or later (so Delphi 2009 to 10 Seattle are supported). This new framework is free and open source, and is hosted on github. You can also find a complete online demo! Enjoy! https://github.com/kattunga/IWBootstrapFramework

is that a seattle regression ?

Image
is that a seattle regression ? hit F1 on a warning message "no help for dcc32"

I have a Firemonkey form containing 2 frames, with each of those frames containing a wide assortment of controls. I need for the form to be able to determine which of the 2 frames currently has the "focus".

I have a Firemonkey form containing 2 frames, with each of those frames containing a wide assortment of controls.  I need for the form to be able to determine which of the 2 frames currently has the "focus". Although the docs say that TFrame has an OnActivate event, that doesn't appear to be true.  Is there a way I'm overlooking to determine which frame has the focus (or one of its controls) w/o having to trace through every child / descendant control in the frame?
Does anyone know how to export/import DDevExtensions options?

Hello guys

Hello guys, Does anyone can explain how do I implement  System.IEnumerable interface? I have tried to make my class implement that but I was not able to achieve that. Implementing that I can use it on string.Join method for example and many other RTL methods :D Thanks a lot :D

About debug visualizers, a problem I want to solve, evaluating the expression 'Addr(foo)' returns the correct pointer but it seems accessing that pointer casted to its correct type produces strange av afterwards, no useful stack trace. Found Cnpack developer had the same problem:

About debug visualizers, a problem I want to solve, evaluating the expression 'Addr(foo)' returns the correct pointer but it seems accessing that pointer casted to its correct type produces strange av afterwards, no useful stack trace. Found Cnpack developer had the same problem: http://bbs.cnpack.org/viewthread.php?tid=3323 explanation seems to be the address lives in a different virtual space, which I have no idea how to overcome.

Hello!

Hello! I have had an email exchange with Randy Jacops . So far, he's been very pleasant to talk to and seems to be far better than previous management. He's also demonstrated quite a bit of guts by making his address available to some customers. I am sure he's received a lot of emails from many of us and I am sure our passion has shined through. Let's see how he conducts himself, but so far it's a thumbs up from me. A

I am using this code MODIFIED from

I am using this code MODIFIED from http://otapi.com/2014/11/09/app-tethering-part-2-resources-and-a-license-duplication-check-demo/ but TetherProfSL.Connect(ARemoteProfiles[I]) is always false. Can someone explain? Thanks. Dan'l procedure TdmDataXFer.TetherManSLEndProfilesDiscovery(const Sender: TObject;   const ARemoteProfiles: TTetheringProfileInfoList); var   i,j: integer; begin   L(Format('Profile Discovery Complete, found %d Remote Profiles',                          [ARemoteProfiles.Count]));   // Iterate all discovered Remote Profiles   for I := 0 to ARemoteProfiles.Count - 1 do   begin     // Log information about the Remote Manager     L(Format('Discovered Remote Profile %d - %s' + #13#10 +                            #9 + 'Manager Text: %s' + #13#10 +                            #9 + 'Profile ID: %s',                            [I,                             ARemoteProfiles[I].ManagerIdentifier,                             ARemoteProfiles[I]

My favorite refactoring key!

Image
My favorite refactoring key!

I've just had an epic derp moment...

Image
I've just had an epic derp moment... I inherited a form, add a few new controls and the related scaffolding. Then I thought - wow - it would be nice to have a generic type property on that form - so I added to the declaration of the inherited form, and used the type in a couple of non visual related methods.  Saved, close the unit, instantiated the form elsewhere, using the appropriate T substitute. The form shows up and goes BANG on the first new control reference in the code.  It was nil. All the new controls were nil. I open the new form - or rather I try: Parent not found - so I can't open the form designer. Turns out that adding a generic wasn't such a good idea after all. Interesting that it compiled, really - considering the visual inheritance was totally broken. Edit: But it would have been super neat! :P

Hi!

Hi! i'm asking for a suggestion, or any idea .... how to debug android services with delphi ?  difference in debugging  between intent service and local service?

Hello

Hello,  I created a embedded forms in runtime using TTabControl the creation was fine but i stuck in how to determine the open tabs so it wont create(self) again when i click on the same button ? this code for the adding forms in TTacbControl  procedure AddForm(EmbeddableForm: TCustomInfoFrame); begin   EmbeddableForm.Show(MainForm.FaceP);   MainForm.cxTabControl1.Tabs.AddObject(EmbeddableForm.Caption, EmbeddableForm);   ResizeTabsWidth;   ShowForm(EmbeddableForm); end;

1st time it happened : I've created a new form, renamed it and saved it.

1st time it happened : I've created a new form, renamed it and saved it. Worked 3-4 hours on it and saving work in progress from time to time.... Closing the IDE and running it again... Loading my project, trying to compile it but IDE failed with "unknown error" exception (catch with madexcept). Previously saved form (pas + dfm) was missing... I only see trace of them on the _history folder.... (see missing dfm.~6~) : fmReglage.dfm.~1~ fmReglage.dfm.~2~ fmReglage.dfm.~3~ fmReglage.dfm.~4~ fmReglage.dfm.~5~ fmReglage.pas.~1~ fmReglage.pas.~2~ fmReglage.pas.~3~ fmReglage.pas.~4~ fmReglage.pas.~5~ fmReglage.pas.~6~ Ps : using Delphi Seattle 10  ( #10Seattle )

1st time it happened : I've created a new form, renamed it and saved it. Worked 3-4 hours on it and saving work in progress from time to time....

1st time it happened : I've created a new form, renamed it and saved it. Worked 3-4 hours on it and saving work in progress from time to time.... Closing the IDE and running it again... Loading my project, trying to compile it but IDE failed with "unknown error" exception (catch with madexcept). Previously saved form (pas + dfm) was missing... I only see trace of them on the _history folder.... (see missing dfm.~6~) : fmReglage.dfm.~1~ fmReglage.dfm.~2~ fmReglage.dfm.~3~ fmReglage.dfm.~4~ fmReglage.dfm.~5~ fmReglage.pas.~1~ fmReglage.pas.~2~ fmReglage.pas.~3~ fmReglage.pas.~4~ fmReglage.pas.~5~ fmReglage.pas.~6~ Ps : using Delphi Seattle 10  ( #10Seattle )

Running Delphi in BlueStacks Android Emulator

Running Delphi in BlueStacks Android Emulator Hi All See here: http://www.delphifan.com/forum/Thread-Using-Bluestacks-as-emulator I have tested and it seems to be running my test app. The debugger however doesn't seem to connect, but the app is running perfectly. I will try and get everything working shortly. Stiaan http://www.delphifan.com/forum/Thread-Using-Bluestacks-as-emulator

in our team we "recently" {about 3 months ago} upgraded Delphi IDE from 2007 to XE8; I estimate we spent about 80 manhours to migrate our project. We have about 2 000 000 lines of code in our project group. Then we spent about 40 manhours to eliminate migrational bugs. Yes after we finished initial migration phase we discovered that tons of bugs were introduced in our apps as a result of migration. Now about #delphi XE8. Code completion still barely works, houglasses argh. The IDE crashes. Code navigation barely works, often goes to wrong line or nowhere at all. I wonder if it was worth upgrading at all. Looking back seems like upgrading the IDE was a barely justified decision.

in our team we "recently" {about 3 months ago} upgraded Delphi IDE from 2007 to XE8; I estimate we spent about 80 manhours to migrate our project. We have about 2 000 000 lines of code in our project group. Then we spent about 40 manhours to eliminate migrational bugs. Yes after we finished initial migration phase we discovered that tons of bugs were introduced in our apps as a result of migration. Now about #delphi   XE8. Code completion still barely works, houglasses argh. The IDE crashes. Code navigation barely works, often goes to wrong line or nowhere at all. I wonder if it was worth upgrading at all. Looking back seems like upgrading the IDE was a barely justified decision. Thanks Embarcadero

In Delphi XE10 Pro, the code that sets custom StyleLookup to TTreeViewItems and TListViewItems created at run time,...

In Delphi XE10 Pro, the code that sets custom StyleLookup to TTreeViewItems and TListViewItems created at run time, DON'T WORKS. It shows only the text assigned to the Text property. It's absurd! And I can't find how to do this in Delphi XE10 Seattle. Al my applications use TTreeViews and TListViews with custom StyleBook assigned at runtime. For me it's very important solve this.  I'm totally blocked with this issue.  I don't know if it's a bug. I know that this components has been suffer a refactoring process, but I can't find help about how to make this in Delphi XE10. I can't assign a custom Style to the TListViewItems and TTreeViewItems created at run time.  Does any one have the same problem?  And the solution?  Thanks!

In Delphi XE10 Pro, the code that sets custom StyleLookup to TTreeViewItems and TListViewItems created at run time, DON'T WORKS.

In Delphi XE10 Pro, the code that sets custom StyleLookup to TTreeViewItems and TListViewItems created at run time, DON'T WORKS. It shows only the text assigned to the Text property. It's absurd! And I can't find how to do this in Delphi XE10 Seattle. Al my applications use TTreeViews and TListViews with custom StyleBook assigned at runtime. For me it's very important solve this.  I'm totally blocked with this issue.  I don't know if it's a bug. I know that this components has been suffer a refactoring process, but I can't find help about how to make this in Delphi XE10. I can't assign a custom Style to the TListViewItems and TTreeViewItems created at run time.  Does any one have the same problem?  And the solution?  Thanks!

Hi Guys

Hi Guys I'm trying to port our Firebird 2.0 database to Interbase to be used with Interbase ToGo. The issue I have currently is with some of the external functions like CHAR_LENGTH and TRIM. These were available natively in Firebird, but it seems it must be imported from the external UDF library using Interbase. I have found the DLL in the Windows IbToGo distributions, but I don't see it in the Android distro. Can someone give some indication if these libraries are build into the Android SO library? Much appreciated! Stiaan

Anyone know where I can find info on class constructors/destructors.

Anyone know where I can find info on class constructors/destructors. It seems that class destructors never run when used in runtime packages, at least that's what I'm seeing. Wondering if that's as designed, or a known issue? Any references? The help wiki doesn't say much -  http://docwiki.embarcadero.com/RADStudio/Seattle/en/Methods I'm trying to clean up my shutdown code so I can see the wood for the trees in the fastmm leak reports.

Anyone know where I can find info on class constructors/destructors. It seems that class destructors never run when used in runtime packages, at least that's what I'm seeing. Wondering if that's as designed, or a known issue? Any references? The help wiki doesn't say much - http://docwiki.embarcadero.com/RADStudio/Seattle/en/Methods

Anyone know where I can find info on class constructors/destructors. It seems that class destructors never run when used in runtime packages, at least that's what I'm seeing. Wondering if that's as designed, or a known issue? Any references? The help wiki doesn't say much -  http://docwiki.embarcadero.com/RADStudio/Seattle/en/Methods I'm trying to clean up my shutdown code so I can see the wood for the trees in the fastmm leak reports.

Any hints?

Any hints? http://stackoverflow.com/q/33350807/49925?sgp=2

Hi all!

Hi all!  I'm using code like this, since Delphi XE3: procedure TEnterprisesController.RefreshTreeView_EnterprisesList; {Clear all data in the view and reload it from database } {! I M P O R T A N T  !   This method don't executes the query. It spend the query is open previously.} var EnterpriseItem :TEnterpriseItem; begin    FViewList.TreeView.BeginUpdate;    try       FViewList.TreeView.Clear;       FViewList.TreeView.ItemHeight := 42;       FModel.Refresh;       while not FModel.EOF do begin          EnterpriseItem := FModel.GetCurrent;          InsertTreeViewItem_EnterpriseList(EnterpriseItem);          FModel.Next;       end;    finally       FViewList.TreeView.EndUpdate;    end; end; procedure TEnterprisesController.InsertTreeViewItem_EnterpriseList(aItem: TEnterpriseItem); var TreeNode :TTreeViewItem; begin    TreeNode := TTreeViewItem.Create(nil);    TreeNode.Parent    := FViewList.TreeView;    TreeNode.TagObject := aItem;    TreeNode.Text := aItem.CD_ENTERPRISE.AsString

Funky code of the day

Funky code of the day type   ICalculator = interface(IInvokable)     function Add(a, b: Integer): Integer;   end; ... var   calculator: ICalculator; begin   calculator := Mock .Create;   calculator.Add(Arg.IsAny , Arg.IsAny ).Returns(     function(const x: TCallInfo): TValue     begin       Result := x[0].AsInteger + x[1].AsInteger;     end);   CheckEquals(3, calculator.Add(1, 2)); end;

Please add this blog to Beginend.net and Delphifeeds.com

Please add this blog to Beginend.net and Delphifeeds.com Originally shared by Magno Lima Boa noite pessoal, conheçam o meu blog: magnumlabs.wordpress.com Abraços http://magnumlabs.wordpress.com

Quick question - I haven't got the latest and greatest around to check, but I am right in thinking Seattle supports...

Quick question - I haven't got the latest and greatest around to check, but I am right in thinking Seattle supports attributes added to methods in generic classes? If so, when was support added? In XE3 (which I'm currently working with), attributes added to methods in generic classes are just ignored, i.e. enumerating the RTTI of an instantiation of the generic doesn't come up with any attributes for the methods concerned.
Quick question - I haven't got the latest and greatest around to check, but I am right in thinking Seattle supports attributes added to methods in generic classes? If so, when was support added? In XE3 (which I'm currently working with), attributes added to methods in generic classes are just ignored, i.e. enumerating the RTTI of an instantiation of the generic doesn't come up with any attributes for the methods concerned.

Hello all

Hello all, Please, your inputs are needed in this question. Thanks. http://stackoverflow.com/questions/33322821/tracking-down-and-fixing-annoying-access-violation

On last Thursday (22nd), there was the first Australian Developer Day, (http://ausdd.embarcadero-info.com/) sponsored by Embarcadero Technologies. Malcolm Groves was quite worried about the weather (it seems that when it rains in Sydney, people don't turn up - personally, I wouldn't turn up if it was good weather... off to the beach but I digress) but it held out long enough for people to arrive and once there, they stayed. I did over hear someone say that they came for one or two sessions but in the end stayed for the entire day - yet again, I digress.

On last Thursday (22nd), there was the first Australian Developer Day, ( http://ausdd.embarcadero-info.com/ ) sponsored by Embarcadero Technologies. Malcolm Groves was quite worried about the weather (it seems that when it rains in Sydney, people don't turn up - personally, I wouldn't turn up if it was good weather... off to the beach but I digress) but it held out long enough for people to arrive and once there, they stayed. I did over hear someone say that they came for one or two sessions but in the end stayed for the entire day - yet again, I digress. shane van de Vorstenbosch was there giving away some copies of his "The Rotten Cookbook" ( http://rottenfoodcookbook.com.au/ ) - I can't wait to make up some of those dishes for work!! ;-)  During the sessions, some information was "leaked" out by people such as Malcolm Groves, David Intersimone and Damien Bootsma. Such items that were leaked were such things as: * Compile to Linux coming next year - So

I know I'm late to the party here, but can anyone tell me why, in DUnit, they changed the XML output format in XMLTestRunner.pas?

I know I'm late to the party here, but can anyone tell me why, in DUnit, they changed the XML output format in XMLTestRunner.pas? I discovered this change as part of the move from XE to DX Seattle.

Hi, I'm using TActionMainMenuBar in a software of mine compiled with #10Seattle.

Image
Hi, I'm using TActionMainMenuBar in a software of mine compiled with #10Seattle. I'm noticing an annoying pixel drawn between the first and second row of the pulldown menu. I could notice this also in the Delphi IDE as you can see in the picture below. Anyone can notice this pixel too?

Hi, I'm using TActionMainMenuBar in a software of mine compiled with #10Seattle. I'm noticing an annoying pixel drawn between the first and second row of the pulldown menu. I could notice this also in the Delphi IDE as you can see in the picture below. Anyone can notice this pixel too?

Image
Hi, I'm using TActionMainMenuBar in a software of mine compiled with #10Seattle. I'm noticing an annoying pixel drawn between the first and second row of the pulldown menu. I could notice this also in the Delphi IDE as you can see in the picture below. Anyone can notice this pixel too?

Hi all

Hi all, There probably is an simple way to find all dfm files in a project (or in a folder), that are saved in binary format (those that don't have "Text DFM" checked), I'm just not aware about it :) I want to set all such binary dfm files to "Text DFM". Can someone please point me in the right direction?

A curiosity, got BDS hang and found the endless running thread was at:

A curiosity, got BDS hang and found the endless running thread was at: codequerydelphi230.bpl!@Sqlitedelphiparser@TSQLiteDelphiParser@SimpleExpression$qqrv Name suggests SQLite is used to store parsing output, or SQ means anything else?

Some times Google Alerts give you strange hits :)

Some times Google Alerts give you strange hits :) https://chicago.craigslist.org/chc/apa/5277093320.html

https://plus.google.com/+JeroenPluimers/posts/VxejwJsk3YQ

https://plus.google.com/+JeroenPluimers/posts/VxejwJsk3YQ
just received my welcome letter from Mr Jacops of Idero. seems quite positive.

There is a beta bugfix for https://quality.

There is a beta bugfix for  https://quality.embarcadero.com/browse/RSP-12512 DCC64 codegen isn't deterministic (regression) Too bad I'm not allowed to download it for some reasons unknown. https://quality.embarcadero.com/browse/RSP-12512

There is a beta bugfix for https://quality.embarcadero.com/browse/RSP-12512 DCC64 codegen isn't deterministic (regression)

There is a beta bugfix for  https://quality.embarcadero.com/browse/RSP-12512 DCC64 codegen isn't deterministic (regression) Too bad I'm not allowed to download it for some reasons unknown. https://quality.embarcadero.com/browse/RSP-12512
... and while I'm at it, has anyone noticed any change in the behavior of IsConsole?  I'm seeing it not work right when I'm running in the IDE.  Trying to write a test case, but I thought I'd ask.

Maybe I'm crazy, but I seem to remember that the IDE behaved differently than it does now in the following way:

Maybe I'm crazy, but I seem to remember that the IDE behaved differently than it does now in the following way: 1.  Create an app 2.  Build the app 3.  Press the "Run without Debugging" button Now my memory was that at this point, the IDE would not recompile the application, but instead run the EXE I created in step 2.  However, now it appears that the IDE does a compile and then runs the app. Do I have a poor memory?

Most of the CodeRage X #10Seattle videos are available for replay now. There are a few that had some issues and I am still editing them to fix them. There are a few others that are premium and only available to Update Subscription customers. Emails should be going out to everyone involved with details.

Most of the CodeRage X #10Seattle  videos are available for replay now. There are a few that had some issues and I am still editing them to fix them. There are a few others that are premium and only available to Update Subscription customers. Emails should be going out to everyone involved with details.  I'd like to thank my son, who came with me during his vacation to edit, render and upload CodeRage videos so we could get these online so quickly. https://www.youtube.com/watch?v=wza6cCHiO_g&list=PLwUPJvR9mZHi5rzePADdymmQVnNPbI6Et

Most of the CodeRage X #10Seattle videos are available for replay now.

Most of the CodeRage X #10Seattle  videos are available for replay now. There are a few that had some issues and I am still editing them to fix them. There are a few others that are premium and only available to Update Subscription customers. Emails should be going out to everyone involved with details.  I'd like to thank my son, who came with me during his vacation to edit, render and upload CodeRage videos so we could get these online so quickly. https://www.youtube.com/playlist?list=PLwUPJvR9mZHi5rzePADdymmQVnNPbI6Et

Most of the CodeRage X #10Seattle videos are available for replay now. There are a few that had some issues and I am still editing them to fix them. There are a few others that are premium and only available to Update Subscription customers. Emails should be going out to everyone involved with details.

Most of the CodeRage X #10Seattle  videos are available for replay now. There are a few that had some issues and I am still editing them to fix them. There are a few others that are premium and only available to Update Subscription customers. Emails should be going out to everyone involved with details.  I'd like to thank my son, who came with me during his vacation to edit, render and upload CodeRage videos so we could get these online so quickly. https://www.youtube.com/playlist?list=PLwUPJvR9mZHi5rzePADdymmQVnNPbI6Et
I'm sure this has been entered in QC many times, and perhaps it will never be fixed.   Why can't the debugger display variable values with "With" statements.  I know, I know, don't use withs.  However, for old code that has withs, it's a pain.

Hello again!

Hello again! How do I strip the thousands separator from a string with a number in order to convert that to an Integer value? Ex.: 14.500 -> 14500 Thanks :)

So my Delphi XE6 install suddenly started doing this each time I fire it up:

So my Delphi XE6 install suddenly started doing this each time I fire it up: [Window Title] Error [Content] Can't load package c:\program files (x86)\embarcadero\studio\14.0\bin\dclmcn200.bpl. Registration procedure, VCLFormDesigner.IDERegister in package C:\Program Files (x86)\Embarcadero\Studio\14.0\bin\vcldesigner200.bpl raised exception class EActionError: The VCL framework is already registered. Do you want to attempt to load this package the next time a project is loaded? [Yes] [No] The bpl that triggers the complaint (dclmcn200.bpl in this case) changes, but the rest is the same. I haven't installed or changed any Delphi related stuff lately, it worked fine last week but this week it's been doing this consistently. Any ideas what this might be?

Did I miss something? What are those CodeRage X PREVIEW videos uploaded on Embarcadero's YouTube account? Description says:

Did I miss something? What are those CodeRage X PREVIEW videos uploaded on Embarcadero's YouTube account? Description says: "Full video is available with an active Update Subscription" https://www.youtube.com/user/EmbarcaderoTechNet/videos https://www.youtube.com/user/EmbarcaderoTechNet/videos

Do you use UML Modeling Features?

Do you use UML Modeling Features ?

Is it possible to completely disable modeling functionality in #10Seattle?

Is it possible to completely disable modeling functionality in #10Seattle?

Blog post "Running Delphi Applications on Android Intel" at http://blog.marcocantu.com/blog/2015-october-running-android-intel.html

Blog post "Running Delphi Applications on Android Intel" at http://blog.marcocantu.com/blog/2015-october-running-android-intel.html http://blog.marcocantu.com/blog/2015-october-running-android-intel.html
Can System.pas _Ustrcmp be used? I'm having different results comparing strings doing simple a b else...

New version of Secure Bridge (network security solution) released.

New version of Secure Bridge (network security solution) released. - RAD Studio #10Seattle    supported - CTR encryption mode is added - Possibility to connect to SSH and SSL servers via HTTP Tunnel is added Check more improvements below https://goo.gl/nyCCZX https://goo.gl/nyCCZX
Is there any Debug Visualizer to automatically cast object instances (and their properties/fields) to the right class types? (ie: I'm really TIRED of casting and casting and casting when inspecting instances)

Hi Marco Canto

Hi Marco Canto I see on TheRegister.Co.Uk that Idera bought EMBT. This creates some uncertainty, as I can still remember the Inprise saga.... I'm about to invest some serious money and effort using Delphi in a very big project, so I was wondering if we (The Delphi community) should be worried in any way? I would appreciate everybody's feedback as well. Regards Stiaan

Hi to everybody!

Image
Hi to everybody! In the last days I'm heavily working with #10Seattle in the maintenance of a huge unit where I keep all my customized components (about 40000 lines pas file). Sometimes it is really impossible to work for even minutes because the IDE freeze. During this freeze time one of the 8 i7 cores of my machine is working at 100% (I can hear the cpu fan spin faster!). Has anyone experienced the same behavior? In XE8 and previous versions I never see this kind of problem doing the same things.

FireDAC TFDBatchMove custom Mappings ..

FireDAC TFDBatchMove custom Mappings .. Has anyone have a sample of creating custom mappings for moving data using TFDBatchMove with a TFDBatchMoveSQLReader and TFDBatchMoveSQLWriter? I get an error: 'access violation at .. :read of address ..' I wrote .. var   I: Integer;   ABatchMoveMappingItem: TFDBatchMoveMappingItem; begin     fdbatchmove.Mappings.Clear;     fdmetaSource.First;     fdmetaTarget.First;     while NOT fdmetaSource.Eof do     begin       ABatchMoveMappingItem := fdbatchmove.Mappings.Add;       ABatchMoveMappingItem.SourceFieldName := fdmetaSource.FieldByName('COLUMN_NAME').AsString;       ABatchMoveMappingItem.DestinationFieldName := fdmetaTarget.FieldByName('COLUMN_NAME').AsString;       fdmetaSource.Next;       fdmetaTarget.Next;     end;     fdbatchmove.Execute;   end;

I give up... What is the required syntax when using variables in Select statements in SQLite? For example:

I give up... What is the required syntax when using variables in Select statements in SQLite? For example: SELECT firstname,lastname FROM members WHERE username=variablename Thanks!

Need a little help with SQLite and FireDAC.

Need a little help with SQLite and FireDAC. A pretty simple query where I look up a username and when found pull down it's associated fields into variables. But I need to do error checking along the way; i.e. if connection fails and if username is not found, etc. Basic code I am working with is below, would someone mind helping me tweak this code to take care of dealing with the error conditions? And of course if I have made an mistakes in my code to begin with. FDConnection1.DriverName := 'SQLITE'; FDConnection1.Params.Values['Database'] := 'C:\Users\Admin\Desktop\test_app\TestDatabase.db3'; FDConnection1.Open; query := TFDQuery.Create(nil);      query.Connection := FDConnection1; query.SQL.Text := 'Select password from Test_Table where username=usernameEntered'; query.Open(); dbPassword := query.FieldByName('password').AsString; dbName := query.FieldByName('Name').AsString; query.Close; query.DisposeOf;

http://18delphi.blogspot.com/2015/10/1165-exceptions-and-efficiency.html

http://18delphi.blogspot.com/2015/10/1165-exceptions-and-efficiency.html

http://18delphi.blogspot.com/2015/10/1167-containers-arc-and-efficiency.html

http://18delphi.blogspot.com/2015/10/1167-containers-arc-and-efficiency.html

I was asked to share this, so though it might be a fun for more people. It is a demonstration of pre-emptive multitasking in Turbo Pascal. I wrote this back '97 when I was 17 years old, using Turbo Pascal 7.

I was asked to share this, so though it might be a fun for more people. It is a demonstration of pre-emptive multitasking in Turbo Pascal. I wrote this back '97 when I was 17 years old, using Turbo Pascal 7. You can register a number of tasks, in the form of parameter-less procedures, and the code will then switch between them pre-emptively, that is, without cooperation. It hooks interrupt 8, which fires every 18.2 ms or so, which triggers a task switch in a round-robbin fashion. It saves all the registers of the running tasks, find the next task to run, and restore all registers from that task. I recall spending an entire night studying the x86 instruction set trying to figure out how to save all the registers and flags in a way which would not overwrite the very registers or flags I was trying to save. The code here just has two tasks, one which processes keyboard inputs and one which draws something on the screen. Anyway, good times :) http://paste.ie/view/8d50f39c

The Embarcadero tech partner spotlight on Bookmarks and Navigator is up on Youtube! This is a short video, with a quick introduction to the two plugins followed by a live Q&A. It's a good intro to the plugins and doesn't even take long to watch.

The Embarcadero tech partner spotlight on Bookmarks and Navigator is up on Youtube! This is a short video, with a quick introduction to the two plugins followed by a live Q&A. It's a good intro to the plugins and doesn't even take long to watch. https://parnassus.co/watch-the-short-video-on-bookmarks-and-navigator-courtesy-of-embarcaderos-tech-partner-spotlight-series/ Thanks Jim McKeeth and David Intersimone for organising and running the spotlight, and providing the video replay. https://parnassus.co/watch-the-short-video-on-bookmarks-and-navigator-courtesy-of-embarcaderos-tech-partner-spotlight-series
Olá, Bom Dia, amigos, estou preciso de ajuda, com Notificações no push DELPHI XE7, fiz igualzinho  este tutorial: https://www.youtube.com/watch?v=Fbuj-R14pTg , mais meu projeto recebe erro no  AndroidManifest.template.xml. Quem poderá me ajudar!! agradeço muito!!! Se tiver algum link agradeço. https://www.youtube.com/watch?v=Fbuj-R14pTg

Hello friends!

Hello friends! I need a help to implement a filtering by field value over TObjectList . Please share any example...

RTTI and method overrides

RTTI and method overrides Is it possible to see that a specific method in the (current) class has an override, using RTTI? Update: See my comment 12:02 - it was solvable without using RTTI or VMT trickery
Because datasnap loses connection to the client application FireMonkey? What is better? TCP or HTTP?

TestInsight 1.1.2 is finally available on http://testinsight.dsharp.org

TestInsight 1.1.2 is finally available on  http://testinsight.dsharp.org It contains a few bugfixes and the long awaited Seattle support. For those using DUnitX - make sure to update to the latest version - Delphi Seattle users can use the bundled one. P.S. If you love the plugin - feel free to become a sponsor ;)

Hi

Hi I need to integrate my application with SAP Business One.  Can anyone help me getting started?  Is there an SDK? are there any prebuilt components which might assist me? Any advice gratefully appreciated. Thanks for Looking Philip L Jackson

Important Note about using the Google Maps API from Desktop Apps

https://theroadtodelphi.wordpress.com/2015/10/19/important-note-about-using-the-google-maps-api-from-desktop-apps/

Very Important note about using the Google Maps API from Delphi Apps https://theroadtodelphi.wordpress.com/2015/10/19/important-note-about-using-the-google-maps-api-from-desktop-apps/

Very Important note about using the Google Maps API from Delphi Apps https://theroadtodelphi.wordpress.com/2015/10/19/important-note-about-using-the-google-maps-api-from-desktop-apps/ https://theroadtodelphi.wordpress.com/2015/10/19/important-note-about-using-the-google-maps-api-from-desktop-apps

Hey guys

Hey guys, Sorry for asking it, but I wasn't able to find it, where do I add Program arguments to my project? I need to compile my program passing some command line arguments to test it. For example: pmt -e 2 -p patterns.txt data.txt Thanks a lot :D

HTML Component Library, HTML Report Library and HTML Editor Library 3.4 released.

HTML Component Library, HTML Report Library and HTML Editor Library 3.4 released. This version introduce a new rendering architecture: now drawing is fully separated from other library parts and can be implemented via any graphics library. For example you can chooose between GDI and GDI+ canvas in VCL or between FMX and native canvas on Android. GDI canvas (htcanvasgdi unit) is much faster than GDI+ and provide precise text rendering without GDI+ text issues, so it's use is preferable for text editing or displaying large text documents. But it has some limitations - rounded rectangles are not smooth and pictures support are limited by Delphi VCL, so for old IDE version only bitmaps and JPEG are supported, for XE+ also GIF and PNG. You can test it using compiled Editor demo (see link below) with live canvas selection. Android canvas (fmx.htcanvasandroid) provides much fasted and better rendering than default FMX canvas. Correct drawing of kerning pairs, precise baseline alignment, R

Blog post "My CodeRage Delphi Product Address and the Broadening our Android Platform" at http://blog.

Blog post "My CodeRage Delphi Product Address and the Broadening our Android Platform" at http://blog.marcocantu.com/blog/2015-october-coderage-x-product-address.html (I know some of you will disagree, discussion is welcome but on technical basis, please) http://blog.marcocantu.com/blog/2015-october-coderage-x-product-address.html

Blog post "My CodeRage Delphi Product Address and the Broadening our Android Platform" at http://blog.marcocantu.com/blog/2015-october-coderage-x-product-address.html (I know some of you will disagree, discussion is welcome but on technical basis, please)

Blog post "My CodeRage Delphi Product Address and the Broadening our Android Platform" at http://blog.marcocantu.com/blog/2015-october-coderage-x-product-address.html (I know some of you will disagree, discussion is welcome but on technical basis, please) http://blog.marcocantu.com/blog/2015-october-coderage-x-product-address.html

Multithreading is hard.

Multithreading is hard. I often say this and, boy, am I right! Few days ago I've published a tutorial (link below) on updating a progress bar from a parallel for loop. Relatively simple code, nothing to go wrong, true? Wrong! Today I reviewed one of the examples as something was bothering me and then I noticed that all of the progress bar examples (that is, sections from 1.a to 2.c in the tutorial) are bad! Each of them can exhibit unwanted behaviour! While I prepare an explanation article and fixed code examples (which may take a day or three) you are kindly invited to find the problems in my code and post them here :) A winner (criteria will be the number of bugs found and quality of explanations) gets a free copy of my "Parallel Programming with OmniThreadLibrary" book plus free access to my "High-level Multithreading with OmniThreadLibrary" webinars.

My CodeRage X session about TFrameStand component is available as replay!

My CodeRage X session about TFrameStand component is available as replay! http://www.andreamagni.eu/wp/2015/10/coderage-x-replays-available/

ADUG Member, good friend and author of the Rotten Food Cookbook shane van de Vorstenbosch has branched out to rotten Delphi parody songs.

ADUG Member, good friend and author of the Rotten Food Cookbook < http://rottenfoodcookbook.com.au > shane van de Vorstenbosch  has branched out to rotten Delphi parody songs. I truly fear what will come next. http://www.youtube.com/watch?v=i29ovY-t-G4

My CodeRage session on static analysis in Delphi.

My CodeRage session on static analysis in Delphi. https://www.youtube.com/watch?v=7TboChCHSCY

My CodeRage X session on parallel programming with patterns is now available on YouTube.

My CodeRage X session on parallel programming with patterns is now available on YouTube. https://www.youtube.com/watch?v=MdUO5k-iQsA
Does anyone have any recommendation for SIP telephony components for a Windows IVR application ?

I need to get a better understanding of using multiple forms in a project. What are the best practices? Differences between mobile (Android) and Windows, etc. I've built my Android app using a single screen and am hiding/showing different elements at runtime. Works well but what a mess it has become. In hindsite using different screens/forms may have been a better idea. But I have no idea how to do this.

I need to get a better understanding of using multiple forms in a project. What are the best practices? Differences between mobile (Android) and Windows, etc. I've built my Android app using a single screen and am hiding/showing different elements at runtime. Works well but what a mess it has become. In hindsite using different screens/forms may have been a better idea. But I have no idea how to do this. Can someone point me to a tutorial or some sample code that I could look at that would explain how to create an app that has a main form that then calls a 2nd form from say a button press, then on exit goes back to main form? Thanks much!

Just wondering what peoples comments on live bindings are?

Just wondering what peoples comments on live bindings are? What limitations there are (to which version)? What gotchas for people who are new to it? If you haven't used it, any particular reason why?

It seems that BitDefender thinks that Nick Hodges is going to harm your computer...

Image
It seems that BitDefender thinks that Nick Hodges is going to harm your computer... What are your evil plans Nick? And can I be a part of it too?? ;-)

So my last post about with statements was about me using one, and instantly realizing "what I had done." This post about with statement is just to make your eyes bleed. Courtesy of the VirtualTrees.pas...

So my last post about with statements was about me using one, and instantly realizing "what I had done." This post about with statement is just to make your eyes bleed. Courtesy of the VirtualTrees.pas...   with FHintData, FDrawBuffer do Now who's idea was it to allow with to use more than one variable at a time? Why this insanity? LOL! It's almost as if the developers are DARING me to figure out what they are doing, heh.
I need help to implement advertising tbannerad in IOS have an application but does not show advertising. and I put the code does not work admob help please :( and configure mediation if someone has a tutorial step by step I will be grateful.
Originally shared by Boian Mitov

I am looking for a solution to running a command line app from a VCL app, and getting the StdOut output into my VCL app. Ideally, without much low-level work on my part, since the need is a transient one. Any recommendations for a component or library would be welcome.

I am looking for a solution to running a command line app from a VCL app, and getting the StdOut output into my VCL app. Ideally, without much low-level work on my part, since the need is a transient one. Any recommendations for a component or library would be welcome. FYI: My context is D2007, so solutions through #10Seattle...   not so much.
Title
Title

How do I check or change which set elements are present, using RTTI?

How do I check or change which set elements are present, using RTTI?  I want to be able to check, add and remove T:TElements from ST:TElementSet. type   TElements = (elA, elB, elC);   TElementSet = set of TElements;   TMyClass = class     property SetValue:ST;   end; Generics doesn't enable me to tell the compiler that T is an enumerated type and that ST is a set of T. RTTI enables me to identify the types as tkEnumeration and tkSet - but I am unsure if I can make a strict connection between the two using RTTI. That doesn't really matter as I only need to twiddle the set bits by ordinal value. The question is: Can I do this safely, using Generics and RTTI, and if so - how? Examples and/or references to prior art would be appreciated. http://stackoverflow.com/questions/33173534/how-do-i-check-or-change-which-set-elements-are-present-using-rtti http://stackoverflow.com/questions/33173534/how-do-i-check-or-change-which-set-elements-are-present-using-rtti

How do I check or change which set elements are present, using RTTI? I want to be able to check, add and remove T:TElements from ST:TElementSet.

How do I check or change which set elements are present, using RTTI?  I want to be able to check, add and remove T:TElements from ST:TElementSet. type   TElements = (elA, elB, elC);   TElementSet = set of TElements;   TMyClass = class     property SetValue:ST;   end; Generics doesn't enable me to tell the compiler that T is an enumerated type and that ST is a set of T. RTTI enables me to identify the types as tkEnumeration and tkSet - but I am unsure if I can make a strict connection between the two using RTTI. That doesn't really matter as I only need to twiddle the set bits by ordinal value. The question is: Can I do this safely, using Generics and RTTI, and if so - how? Examples and/or references to prior art would be appreciated. http://stackoverflow.com/questions/33173534/how-do-i-check-or-change-which-set-elements-are-present-using-rtti http://stackoverflow.com/questions/33173534/how-do-i-check-or-change-which-set-elements-are-present-using-rtti

Generics object and assignment overloading

Generics object and assignment overloading type   TMyObject = class     property Value: T;   end;   TIntObject = TMyObject ; var   obj: TIntObject;   int: integer; begin   obj := TIntObject.Create;   obj := 4;  // assigns 4 to obj.value   int := obj; // resulting in Int being 4 end; Is it possible to do operator overloads which allows the assignments as outlined above? I know this is not housebroken code - but it would help immensely for code simplicity in the specific context that I want to use it in. If possible, what are the pitfalls? (instances will not be persistent or streamed).

Interesting use of an IDE plugin: Copy a string from a "Watch" entry to the clipboard without quotes.

Interesting use of an IDE plugin: Copy a string from a "Watch" entry to the clipboard without quotes. http://stackoverflow.com/a/33127943/49925?sgp=2

Is there an offical place where I can post some feature requests?

Is there an offical place where I can post some feature requests? I asked that question already on the offical community.embarcadero.com site, but nobody wanted to answer. By the way, that site is very slow and strange. When I submit a post, I get always the questions: "Do you want to leave that page" or "stay on page" (german translation, firefox). Very bad user experiance! My feature requests: * Bring back the modal Search dialog . Please!!!! * Bring back the modal IDE Insight dialog . Please!!! The old dialog coulded be configured and it was much easier to use. If you have a big monitor it hurts my eyes when all the time I have to focus the right upper corner!!!! The same with the search dialog!!!! * Possibility to disable the Castalia features. Hey, they are not working properly and CnPack has the same features but much more efficiently !!! I realy felt angry, when I had to use that productivity reductions!

Originally shared by Boian Mitov

Originally shared by Boian Mitov https://www.youtube.com/watch?v=GgXHD6lgjI0&feature=share

Originally shared by Boian Mitov

Originally shared by Boian Mitov Just released Visuino - Graphical Development for Arduino - Beta 68 with better TVOut support: http://www.visuino.com Now can be ordered for $9.99 + optional subscription for updates. If you want to order, you can login to your account and purchase from here http://www.visuino.com/login This is the version demonstrated in the Visuino session in CodeRage X. Here is also a version of the OpenWire Studio : http://www.openwirestudio.com Version of the Mitov Software libraries will also be available shortly. Improved TVOut support: http://playground.arduino.cc/Main/TVout Improved OpenWire Studio and Delphi communication Updated version of the Visuino Component Development SDK is also available in the G+ Beta Community and the Facebook Beta group: https://plus.google.com/communities/116125623808250792822 #Visuino #Arduino http://www.visuino.com

Hi guys

Hi guys, Someone out there running #10Seattle Professional can confirm whether the installation creates the registry keys HKEY_CURRENT_USER\SOFTWARE\Embarcadero\BDS\17.0 or HKEY_LOCAL_MACHINE\SOFTWARE\Embarcadero\BDS\17.0 (depending on "Install for all users" or "install for logged user" setting during the install, of course) and a string value  "Edition=Professional"? This is true since BDS 2006 at least, but does not seem to be true for Delphi 10 Seattle anymore. Is the value named "Edition" missing?

Folks --

Folks -- Has anyone seen the "Jumping around text in the text editor" thing?   Is there a bug report in on it? And yes, we've turned off Structured Highlighting.

(Delphi XE) Tried to write a Com-Dll which operates in Powershell.

(Delphi XE) Tried to write a Com-Dll which operates in Powershell. Read several guides and powershell allows me to create the object i have created. However, it seems the function i have implemented(added with the wizard) is not visible. The methods of TTypedComObject/TComObject are visible to powershell, but not mine. EVerything sofar has been created with the wizard. Something i have to keep in mind/check?

(Delphi XE) Tried to write a Com-Dll which operates in Powershell. Read several guides and powershell allows me to create the object i have created. However, it seems the function i have implemented(added with the wizard) is not visible. The methods of TTypedComObject/TComObject are visible to powershell, but not mine.

(Delphi XE) Tried to write a Com-Dll which operates in Powershell. Read several guides and powershell allows me to create the object i have created. However, it seems the function i have implemented(added with the wizard) is not visible. The methods of TTypedComObject/TComObject are visible to powershell, but not mine. EVerything sofar has been created with the wizard. Something i have to keep in mind/check?

Hi all

Hi all I have had to go back to XE8 from Seattle, because of a bug in the DBGrid. The width of first column in the grid, is automatically resized no matter what you set it to.  Frustrating.  Bug report: https://quality.embarcadero.com/browse/RSP-12433 . Also been picking up funnies when debugging 32bit windows app. Sometimes it wont allow Trace into.  Just stops on that line. I need Update 1 ASAP https://quality.embarcadero.com/browse/RSP-12433

Multithreaded debugging.

Multithreaded debugging. I wish I could tell the debugger that I don't care about breaking on exceptions in the IndyClient thread, but only in the primary thread. I.e. ignore specific thread classes or in some other way instruct the debugger to only do break on exception (or even breakpoints) in the thread(s) of my choice.

Anybody knowing what's up with the docwiki server? It throws Varnish https://en.wikipedia.org/wiki/Guru_Meditation errors

Anybody knowing what's up with the docwiki server? It throws Varnish https://en.wikipedia.org/wiki/Guru_Meditation errors  https://www.dropbox.com/s/53kdynrvv5okdib/Screenshot%202015-10-15%2012.17.15.png?dl=0

A Seattle Runaway

Image
A Seattle Runaway My colleague was just doing the normal edit, F9, break, edit, F9, etc - when this happened.  The compiler went runaway and found a lot of errors! In fact, it didn't run out of errors - but kept finding them until he killed  #10Seattle .     After a restart and a F9 - no errors and ran as expected. Naturally, it is impossible to reproduce on demand. Cosmic ray bit flipping? Random data in uninitialized buffers? Aliens?

Does anybody know the current status of RAD Studio Version Insight?

Does anybody know the current status of RAD Studio Version Insight? The Repository on Sourceforge seems outdated, there are several Git repositories sprinkled over the net which had their last commit in 2014. I need bindings for the latest (Tortoise)SVN dlls. There seem to have been name changes to the dlls in version 1.9. http://sourceforge.net/projects/radstudioverins/

Yet another grumble but this time is about BOGO - Why do new customers get a free gift but us loyal customers get shafted (ie, nothing). For once, there is something that I am quite interested in but as being a hobby programmer, it is out of my budget :-(

Yet another grumble but this time is about BOGO - Why do new customers get a free gift but us loyal customers get shafted (ie, nothing). For once, there is something that I am quite interested in but as being a hobby programmer, it is out of my budget :-( Don't get me wrong... I am not asking for a free version but a discounted wouldn't go astray. At least that way they have a hope of getting some repeat business (ie, the yearly subscription)... Time to hop off my soap box - thanks for the ear all :)

Ann: Nexus Quality Suite for Rad Studio 10 Seattle, introducing 64 bit support

Ann: Nexus Quality Suite for Rad Studio 10 Seattle, introducing 64 bit support =================================== We are happy to report that an update has just been released with Rad Studio 10 Seattle support, and introducing support for working with 64 bit executables! With the latest update, the Insider and MethodTimer tools also come in 64 bit versions. The other tools will have 64 bit capability added in future updates, currently being worked on. Nexus Quality Suite - your toolbox for performance and quality assurance! Listed below are the tools available. http://www.nexusdb.com/support/index.php?q=qualitysuite The best part: The entire Quality Suite is still only AUD 300. Take advantage of the offer today and save! MethodTimer =========== The MethodTimer tool is a method level performance analyzer. It measures and reports activity in your code with the purpose of identifying performance bottlenecks. It records routine calls and reports time spent in each routine. It also shows y

Why, oh, why doesn't a TToolButton automatically take the ImageIndex from a TAction??

Why, oh, why doesn't a TToolButton automatically take the ImageIndex from a TAction?? Without some hackary, you can't add a TToolButton to a TToolBar, so you can't create the TAction and TToolButton together to set the ImageIndex together... How frustrating!

Originally shared by Boian Mitov

Originally shared by Boian Mitov Join CodeRage X and watch my session on IoT with Delphi, Visuino and Arduino tomorrow! #Arduino   #Visuino   #Delphi   http://www.embarcadero.com/coderage

Surely the spam at https://community.embarcadero.com/forum in the cloud section is not a good look...been there for days and not removed

Surely the spam at   https://community.embarcadero.com/forum in the cloud section is not a good look...been there for days and not removed
This has probably been asked before, but how can I build an exe or dll with a different name when compiling for 32 or 64 bit?   I guess it will always use the project name for the exe or dll name?

Pet project, work in progress. An experimental "semantic" ast parser: https://github.com/davidberneda/TeeParser/blob/master/TeePascal.pas

Pet project, work in progress. An experimental "semantic" ast parser: https://github.com/davidberneda/TeeParser/blob/master/TeePascal.pas

Hy All! :)

Hy All! :) Is  the Capacity still Integer in TDictionary .Create in #10Seattle?

Brandon Staggs I guess your SO question got closed or removed because it was of the category "why does this code not work". I was just going to comment when it disappeared.

Brandon Staggs  I guess your SO question got closed or removed because it was of the category "why does this code not work". I was just going to comment when it disappeared. Anyway: "Diffing the generated asm is telling me that this is a codegen bug (already present in XE5 afais) where it switched the parameter addresses on the stack in the nested procedure - you should report it."

Freepascal server for Xml-RPC Webservices - Servidor de Webservices XML-RPC con Freepascal http://goo.gl/EzEJW5 @Freepascal

Freepascal server for Xml-RPC Webservices  - Servidor de Webservices XML-RPC con Freepascal http://goo.gl/EzEJW5 @Freepascal http://goo.gl/EzEJW5

Seen on Facebook, beta release now available https://github.com/senjaxus/AllaKore_Remote

Seen on Facebook, beta release now available https://github.com/senjaxus/AllaKore_Remote https://github.com/senjaxus/AllaKore_Remote

#CodeRageX : Q&A From Cary Jensen's FastReport Session

#CodeRageX : Q&A From Cary Jensen's FastReport Session Q: Is it possible to generate clientdatasets inside the report to enable report specific querying of data from a database using a predfined DataSetProvider? A: If you upgrade FastReport to one of the higher levels you can run Delphi code inside the report. Using that feature, I imagine that you could, though I've never tried to do this. Q: Quickreports is missed, but FastReports is nice but the fact that you have to buy a full version is not helpful. Can you please make all the demos available with Delphi? The FastReport demos folder after Delphi installation is complete  is empty A: Non of the examples that I've shown here require an upgrade. That's important. You can do sooo much with the Embarcadero edition. I don't know about the FastReport demos folder Q: When will the Delphi Developers Day 2016 be announced ? A: We are working on that now. Probably early in December Q: The crystal report file converte

A. Bouchez How does the optimized CopyRecord code in Mormot compare with the asm code in DX/XE7?

A. Bouchez How does the optimized CopyRecord code in Mormot compare with the asm code in DX/XE7?  I would like to port a RTL path to Fastcode, but would like have your input on this issue.  Is there a special reason why there's no X64 version in Mormot?

The Idera announcement of the acquisition is here: http://blog.idera.com/industry/idera-welcomes-embarcadero/

The Idera announcement of the acquisition is here:  http://blog.idera.com/industry/idera-welcomes-embarcadero/ The paragraph of most interest to Delphi developers is: Embarcadero is two great businesses with their database product portfolio expanding Idera’s focus on world-class solutions to simplify and accelerate DBA productivity. The application performance tools deliver similar business benefits to an entirely new community of users working to build great solutions for customers. Together, Idera and Embarcadero focus on driving value for users on the front lines of innovation. By application performance tools do they mean Emba's devtools division?  Seems like an odd way to describe it if that is what is meant.  I know we need to wait until the dust settles......

#CodeRageX: Idera

#CodeRageX: Idera David Intersimone described the Idera acquisition as extremely positive. Quote: "The grin on my face couldn't be bigger."

Small bug of the day :)

Image
Small bug of the day :)

I have a concern about an EMBT skills video: JSON: the new INI File by Jeff Lefebvre.

I have a concern about an EMBT skills video: JSON: the new INI File by Jeff Lefebvre. I like the idea very much, but how is streaming JSON going to work once your Settings class start changing over time? eg: Some properties in the class get removed or renamed. How will that affect reading the JSON file, and how do you handle those changed properties (old vs new)? https://youtu.be/e6IKO8so-Is
Is it just me, or doesn't Ctrl+X, Ctrl+C and Ctrl+V work in the FireMonkey form designer #10Seattle (AppMethod 1.17)?

So +Kevin Powick talked about coffee here, and this maybe a good time for me to receive some advises on taking my coffee making skill to the next level. Here in China we don't have a long coffee drinking tradition, and I mostly learned making coffee from self experiments. I use a Mocha pot with paper filter, Lavazza pre-ground coffee, sugar and powdered milk.

Image
So +Kevin Powick talked about coffee here, and this maybe a good time for me to receive some advises on taking my  coffee making skill to the next level. Here in China we don't have a long coffee drinking tradition, and I mostly learned making coffee from self experiments. I use a Mocha pot with paper filter, Lavazza pre-ground coffee, sugar and powdered milk.

Does anyone know what happend with "Mobile Preview" in #10Seattle ? It was introduced in XE5, but doesn't fully work anymore in #10Seattle . The help page was also deleted.

Does anyone know what happend with "Mobile Preview" in #10Seattle ? It was introduced in XE5, but doesn't fully work anymore in #10Seattle . The help page was also deleted. http://docwiki.embarcadero.com/RADStudio/XE5/en/Mobile_Preview (deleted) http://docwiki.embarcadero.com/RADStudio/Seattle/en/Mobile_Preview I can still add the unit FMX.MobilePreview, but the used style on windows is selected randomly and cannot changed anymore, as describted in the XE5 help page. I am using the trial version of AppMethod 1.17 http://docwiki.embarcadero.com/RADStudio/XE5/en/Mobile_Preview
Ok beginner here, time to learn how to use databases in Delphi. I want to create login functionality on Android and have Delphi 10 Professional and Mobile Add-on. My existing app is working quite well. Now I want to add an admin backend which will be accessed via login and used to configure the app. What type of database on the Android should I be using for this?
I just used a with statement. Is there a support group I should join?

I did a quick Google search but found no existing standard so I decided to simply describe one and publish it in the hope that others will find it useful and adhere to it.

I did a quick Google search but found no existing standard so I decided to simply describe one and publish it in the hope that others will find it useful and adhere to it. http://blog.dummzeuch.de/2015/10/12/save-event-hooking-and-unhooking-for-delphi-ide-plugins/

Hi!

Hi! I just wanted to let you know I had a chat with Russell Weetch  today and he's a top bloke.  It is nice to connect with other developers even just on Skype :D A

Originally shared by Boian Mitov

Originally shared by Boian Mitov A bit old, but may still be useful to component developers... https://www.youtube.com/watch?v=ikPk67RbfhU&feature=share