Jump to content

mikak

Members
  • Content Count

    11
  • Joined

  • Last visited

Community Reputation

1 Neutral

Technical Information

  • Delphi-Version
    Delphi 10.3 Rio
  1. Hi, Is it possible to capture actual data of TRestRequest sent by TrestClient before sending. I have been using fiddler while developing (if needed) but during pilot installation i'd like to capture all request sent by our application only to that specific endpoint (so not every request sent by our app ) and store them safely.
  2. mikak

    Compile speed ide vs MsBuild

    yes. I did and at start of compilation it says Compiler Speed Pack 6.4.2 - Compiler patches applied so it's 6.4.2 not 6.4.4 as I wrote but change log between isn't so huge.
  3. mikak

    Compile speed ide vs MsBuild

    okey.. of cource that might do it .. have you been using paraller compilation?
  4. mikak

    Compile speed ide vs MsBuild

    I have thought that, but they use common units - I would think that if other is trying to access dcu while other one is generating that, it would be a problem
  5. My Delphi 10.3.1 compiles my quite large application from ide in about 20-25 sec. If I check use MSbuild to compile it takes over 2 minutues. I have Installed fastdcc 6.4.4 and IDE Fix Pack 6.4.4 I there anything I could do - we have over 10 applications so building them from command line takes of course a long time...
  6. UnChecking Use MSBUild helped for me also. this occurs only in two exe on my 7 exe which are same project family. Don't know if it's exe size of what, or some library which causes problems.
  7. mikak

    DunitX / delphi-leakcheck and Rtti

    Thanks for reply. I'm quite ashamed of how badly I concentrated to read readme ... there it was, Right before my eyes. But opening Spring.TestRunners.pas was quite eye opener! Thanks. Got rid of some unidac singleton and some LazyLoadAttributes.MakeClosure* leaks. thanks again...
  8. Hi, I'm testing classes that use RTTI and I get some strange leaks. My isolated test case is [ TestFixture ] tSomeTEst = class (TObject) private a: integer; b: string; c: double; published [ test] procedure sometest; end; /// ... and the test itself .. procedure tSomeTEst.sometest; var ctx: TRttiContext; ti: TRttiType; f: TRttiField; begin ctx := TRttiContext.Create; ti := ctx.GetType( typeinfo(Tsometest) ); for f in ti.GetFields do codesite.send(f.Name); ctx.free; end; When I run my test I get testkassaapi.tSomeTEst.sometest Message: 432 bytes were leaked in the test method Total allocation count: 26532 (1906454 B) Leak detected 06320CB0 size 76 B for class: TStringList Leak detected 06519080 size 18 B B0 04 02 00 01 00 00 00 02 00 00 00 0D 00 0A 00 00 00 | ?????????????????? Leak detected 065192F0 size 40 B 01 00 00 00 04 00 00 00 6C 95 51 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ????????l?Q?????????????? ??????? 00 00 00 00 00 00 00 00 | ???????? Leak detected 06519560 size 16 B for UnicodeString {RefCount: 1} = a Leak detected 064A57E0 size 28 B for class: TRttiInstanceFieldEx Leak detected 064A5A50 size 28 B for class: TRttiInstanceFieldEx Leak detected 064A5CC0 size 28 B for class: TRttiInstanceFieldEx Leak detected 064A5F30 size 32 B for UnicodeString {RefCount: 1} = 3676=3676 Leak detected 064A61A0 size 40 B 01 00 00 00 04 00 00 00 3C 5F 4A 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ????????<_J?????????????? ??????? 00 00 00 00 00 00 00 00 | ???????? Leak detected 06320F50 size 86 B for UnicodeString {RefCount: 2} = 2EC5265F-E40C-42B0-B71D-D8C0F8E30803 Leak detected 064A6680 size 40 B 01 00 00 00 04 00 00 0 If I just use standard ReportmemoryleakOnShutdown, it reports no leaks. what's going on here? I use Delphi 10.3.1. and latest leak-check from https://bitbucket.org/shadow_cs/delphi-leakcheck/src/master/
  9. mikak

    Adding applications

    I'll have to look at them. 🙂
  10. mikak

    Adding applications

    Hi Andrea, Thanks for Reply. I'll study that path. About TMARSFireDAC... How much do I lose if I use UniDAC because FD with ODBC doesn't support trasnsaction savepoints (or nested transactions -can't remember correct term). Thanks mika
  11. Hi, Started (again 😄 ) to examine how to convert our server from datasnap to mars. Our goal is to have api like /databasename/products or /databasename/orders/10 so one server should handle multiple databases which have same structure To introduce every database Mars I write. for s in fdatabasenames do FEngine.AddApplication(s+'-app', s, [ 'Server.Resources.*','customers.resources.*','orders.resources.*',..... {about 30 different resources}]); Is there approach ok? or does this waste server resources? one server should be able to handle 10-40 databases.
×