Posts

Showing posts with the label xe7

First day with #10Seattle trying to break the thing with my huge project.

First day with #10Seattle  trying to break the thing with my huge project. Several hours later, not even a single error. Open and close the project several times, build it several times, opened and closed other big projects of 3rd party tools and build them, (insert repeat loop here). This IDE looks like a rock. Same scenario with #XE7  doesn't last more than 30 minutes until the IDE crashes. Am I dreaming? First time this happens since #Delphi7 . Congratulations to Embarcadero Technologies and to Marco Cantù. Very happy now.

Problems Starting Parallel Tasks in Plain For Loop

Problems Starting Parallel Tasks in Plain For Loop I'm having problems getting ITasks to work in a plane old "for" loop. I'd like to create a series of task in a for loop and carry on executing without waiting for them all to complete (otherwise I'd use a Parallel for loop). It compiles but doesn't work as I would expect. Take a look at this short screencast: http://screencast.com/t/XoX3mIcjv How would I accomplish this? Here's a link to the small app -  http://goo.gl/vJZldv Thanks - Steve #parallel #delphi #xe7 #ITask http://screencast.com/t/XoX3mIcjv

Hello

Hello, I just fell over this one with my 1st Delphi project moved to XE7 (previously XE6):     dsQ := TFDQuery.Create(Self);     dsQ.Connection := DM1.FDConnection1; // MySQL Server     dsQ.SQL.Text := 'SELECT gueltig_id FROM gueltig ORDER BY gueltig_id DESC';     dsQ.Open;     if not dsQ.Eof then         ResultID := dsQ.Fields[0].AsInteger + 1 // XE6 gives 156989 = correct    XE7 returns 5400 = WRONG!!     else         ResultID := 100; // just dont want to start with 1 or 10     dsQ.Close;     dsQ.Free; This little code sample returns the correct result in XE6, but completely incorrect in XE7 (both debug mode). Both On exactly the same server. MySQL Server is v5.6.12 FireDAC version is standard delivered with XE7 Delphi XE7 running on Windows 8.1 Update 1 in a VM (same OS for XE6, but separate VM). Moving code into another unit (form) doesn't help. Nor using TFDTable instead of TFDQuery. Anybody any clue? #delphi #programming #xe7 #firedac #mysql

Originally shared by David Berneda

Originally shared by David Berneda TeeChart 2014.12.140923 VCL/FMX release with full RAD Studio XE7: https://t.co/3KlSIEiiyo @RADtools #vcl #delphi #firemonkey #xe7 https://t.co/3KlSIEiiyo

XE7 Error Access Violation when insert image to BLOB field by Firedac .

XE7 Error Access Violation when insert image to BLOB field by Firedac .  #androidapps   #sqlite3 #xe7 #Tmemorystream   It worked on XE6. sample script.       LStream := TMemoryStream.Create;       Image1.Bitmap.SaveToStream(LStream);       SQLUpdate.ParamByName('Image').LoadFromStream(LStream, ftBlob); Anyone can suggust? Thanks.

XE7 Error Access Violation when insert image to BLOB field by Firedac . #androidapps #sqlite3 #xe7 #Tmemorystream

XE7 Error Access Violation when insert image to BLOB field by Firedac .  #androidapps   #sqlite3 #xe7 #Tmemorystream   It worked on XE6. sample script.       LStream := TMemoryStream.Create;       Image1.Bitmap.SaveToStream(LStream);       SQLUpdate.ParamByName('Image').LoadFromStream(LStream, ftBlob); Anyone can suggust? Thanks.
After all Delphi #XE7 news and its launch I'm really looking forward to see what Boian Mitov want to present with his extended RTTI classes.

XE7's new dynamic array syntax

XE7's new dynamic array syntax Good thing: Empty arrays can be used as default param value.     procedure Test(const Params: TVarArray = []); Bad thing: Variants not fully supported? Try uncommenting CVarArr in the example below. Doesn't work and gives "Constant expression expected".   Yet the same constant list can be assigned to VVarArr Go figure. program XE7Tests; {$APPTYPE CONSOLE} {$R *.res} uses   System.SysUtils, Variants; type   TVarArray = array of Variant;   TIntArray = array of Integer;   TTest = class     procedure Test(const Params: TVarArray = []);   end; { TTest } procedure TTest.Test(const Params: TVarArray); var   npar: Integer; begin   npar := High(Params) - Low(Params) + 1;   Writeln(nPar); end; const   CIntArr: TIntArray = [1,2,3]; //  CVarArr: TVarArray = [1,'2', 3];  // "Constant expression expected" var   Test: TTest;   VVarArr : TVarArray;   VIntArr : TIntArray; begin   Test := TTest.Create;   try     try       Test.Test;     ...
#XE7 has a cool new Feature: "BDE Removed" ;-)

#XE7 the new unit System.Threading has 3650 lines and is pretty selfcontaining.

#XE7 the new unit System.Threading has 3650 lines and is pretty selfcontaining. The threadpool measures CPU load in a separate thread every 250ms to grow and shrink the pool. It spawns new threads if load is below 80% and removes threads when load is over 95%.

Regarding #XE7 and #HighDPI: This is how the IDE looks at 144 dpi (150%) screen by default. It's blurry and isn't fun to look at for hours (trust me I tried). You can disable Window's own scaling in the compatibility settings (right click on bds.exe). Than you get an IDE which scales itself but leaves a lot unscaled and/or cropped. But the editor is more es less useable.

Image
Regarding #XE7 and #HighDPI: This is how the IDE looks at 144 dpi (150%) screen by default. It's blurry and isn't fun to look at for hours (trust me I tried). You can disable Window's own scaling in the compatibility settings (right click on bds.exe). Than you get an IDE which scales itself but leaves a lot unscaled and/or cropped. But the editor is more es less useable.
Porting Project from XE6 to #XE7: After working around a new Internal Error URW1163 (regarding generic interfaces, had no problem in XE6) and adding those damn {$IFDEF VER280} in every third party component 2,714,111 lines compiled and the executable seems to work.
I've posted a few photos on my The TIndex  Google+ page from the recent #XE7 preview events held in Australia last week. There's about 20 photos split over 5 posts. Lachlan Gemmell

Simple Parallel Framework in XE7?

Simple Parallel Framework in XE7? I notice in the Appmethods road map ( http://goo.gl/H5UhWK ) they say there will be a, "complete and simplified parallel computing library, to take advantage of modern multi-core CPUs more easily" coming in 2014 . This is earlier than previously stated in the April 2014 road map for Delphi ( http://goo.gl/zMmi6P ). Let's hope it's included in XE7!! #xe7   #parallel   #multicore