Profile cover photo
Profile photo
André Mussche
279 followers
279 followers
About
André's posts

Post has attachment
I get memleaks and AV's when using FastMM with FMX. It seems the weakref instance map is released AFTER fastmm is unloaded!? I this a known structural problem with weak links? (seems a bad architecture to me...)

System.pas:
finalization
{$IFDEF WEAKREF}
InstHashMap.Finalize;
{$ENDIF}

https://quality.embarcadero.com/browse/RSP-16537

Post has attachment
Bummer, a big showstopper with Berlin 10.1.2: an object with an indexed property getter crashes the debugger! Please +Marco Cantù we need a fix for this!

For example the code below and add "t.test.typedstring" to the watchlist gives "Function to be called, TBaseDataRecord.GetStringField, was eliminated by linker" and after continueing:
---------------------------
Error
---------------------------
Assertion failure: "!e32->evalArgs.evalFCallPending"
in ..\win32src\proc32.cpp at line 1830
---------------------------
OK Details >>
---------------------------

...

TTestDataRecord = class(TBaseDataRecord)
public
property Test: TTypedStringField index 0 read GetStringField;
end;

...

var
t: TTestDataRecord;
s: string;
begin
t := TTestDataRecord.Create;
s := t.Test.TypedString;

https://quality.embarcadero.com/browse/RSP-16522

Post has attachment
Special for +Lars Fosdal: I have added the option to profile only when the UI is busy (see nr 4 below).

Note: when you double click on a procedure (at number 9) it will show you all stack traces of this procedure (in tab at number 10)
Note 2: results (nr 8) are only a flat list of procedures (no caller/callee). Every procedure which is found in a call stack is counted, the ones with the highest counts are encountered the most and should be inspected by double clicking (#9) and scrolling through the stacks (#10) to see why it is busy at those moments

https://github.com/andremussche/asmprofiler/blob/master/Source/Sampling/AsmProfiler_Sampling.exe?raw=true

Photo

Post has attachment
Blocking issue with Delphi Seattle: internal errors with class helpers!
It worked fine in XE3 and XE6 :( so we can't use our (expensive) upgrade +Marco Cantu!

https://quality.embarcadero.com/browse/RSP-12919

Post has attachment
Cool, the semantic merge mechaniscm is available for Delphi files too now! So instead of merging and diff'ing line by line, it understands procedures, functions, uses statements etc.

I can really recommend this great version control system, merging and branching (and the GUI) is a lot better than for example Git.

Note: it already can sync with git (push and pull from github, bitbucket etc) and they are working on git server support too (so the plastic server itself "speaks" git with git clients :) )

http://codicesoftware.blogspot.com/2015/09/custom-languages-in-semantic-version.html

#scm #delphi #plasticscm 

Post has attachment
Cool, the semantic merge mechaniscm is available for Delphi files too now! So instead of merging and diff'ing line by line, it understand procedures, functions, uses statements etc.

http://codicesoftware.blogspot.com/2015/09/custom-languages-in-semantic-version.html

#scm   #delphi   #plasticscm  

Post has attachment
Funny, using Winapi.MMSystem.timeBeginPeriod(1) the TWAIN scanning speed doubled! (scanner = fi-5650C, with feeder)
Without it, it pauses randomly between pages, probably it uses sleep(1) internally for waiting for next data block? And sleep(1) takes 15ms normally, but with timeBeginPeriod it becomes really 1ms :)

http://msdn.microsoft.com/en-us/library/windows/desktop/dd757624%28v=vs.85%29.aspx

Post has shared content
Does anyone know how to do this kind of stuff in Delphi?
So http but also tcp tunneling/proxy/forwarding? (transparent!)
How to Tunnel HTTP-Protocol with a Simple Java Proxy Server through a Firewall?
A small Java example (with less than 400 Lines of Code) which demonstrates: How to tunnel HTTP protocol through a firewall? A client side proxy server called HttpProxyAdapterClient and a server component called HttpProxyAdapterServer.

Post has attachment
Very very annoying, XE7 is unusable! 
Out of memory, exceptions, very slow, etc.

please vote for this QC!
https://quality.embarcadero.com/browse/RSP-9568

+Marco Cantu: I thought you said there were many bugs solved? And XE7 is the best IDE? Well, I have to tell some customers to downgrade to XE6 now... :(
(and no, SP1 did not fix this)
Wait while more posts are being loaded