delphi-2009

How to track down tricky memory leak with fastMM?

≯℡__Kan透↙ 提交于 2019-11-29 06:58:33
After upgrading a project from Delphi 2007 to Delphi 2009 I'm getting an Unknown memory leak, so far I've been tryin to track it down using fastMM, here is what fastMM stack trace reports: A memory block has been leaked. The size is: 20 This block was allocated by thread 0x111C, and the stack trace (return addresses) at the time was: 40339E [System.pas][System][@GetMem][3412] 534873 [crtl][_malloc] 56D1C4 [canex.cpp][MidasLib][DllGetDataSnapClassObject][3918] 56D316 [canex.cpp][MidasLib][DllGetDataSnapClassObject][3961] 56D5EE [canex.cpp][MidasLib][DllGetDataSnapClassObject][4085] 562D48

good version control software for Delphi 2009 [closed]

我与影子孤独终老i 提交于 2019-11-29 06:44:52
does anyone have a good idea for what I might use ? Its not specific to Delphi but SVN is the way to go for version control. server - subversion ( http://subversion.tigris.org/ ) windows client - TortoiseSVN ( http://tortoisesvn.tigris.org/ ) I use Team Coherence , from QSC. This integrates nicely into Delphi (I think the standalone desktop client app itself is written in Delphi too) and it can be used over a network/the web etc. I'm a 'lone developer' who uses it to get to my source code wherever I am. It does all the obvious source control stuff pretty well (versioning, history, comparisons)

Delphi dbExpress and Interbase: UTF8 migration steps and risks?

ⅰ亾dé卋堺 提交于 2019-11-29 05:06:45
Currently, our database uses Win1252 as the only character encoding. We will have to support Unicode in the database tables soon, which means we have to perform this migration for four databases and around 80 Delphi applications which run in-house in a 24/7 environment. Are there recommendations for database migrations to UTF-8 (or UNICODE_FSS) for Delphi applications? Some questions listed below. Many thanks in advance for your answers! are there tools which help with the migration of the existing databases (sizes between 250 MB and 2 GB, no Blob fields), by dumping the data, recreating the

Best Lightweight HTML Parser for Delphi

懵懂的女人 提交于 2019-11-29 04:23:55
I need to parse out the values from some data from select boxes. Example: <option value="1">Apple</option><option value="2">Chicken</option> Usage: If option = apple then get value. Any suggestions? DIHtmlParser ? I'm not sure how "lightweight" it is, but Ralf's components always seemed to be well put together. He's also normally active and response on Embarcadero's Forums. If it's a one-off and not too complex, you could probably split on symbols manually. Another option would be the standard XML Parsers...that is if your document meets the XHTML standards. 来源: https://stackoverflow.com

Why are my units “compiled with a different version” of my own files?

走远了吗. 提交于 2019-11-29 03:54:25
I'm building a program that uses plugins. Unfortunately, the plugin framework's dynamic linking forces the RTL and VCL out of my project EXE and into the BPL versions, and they don't have debug info enabled. So I built a testing framework that links to my plugins statically so I can actually see what I'm doing while tracing through the code. But now, every time I try to recompile, I get an error: "unit turbu_skills was compiled with a different version of turbu_database.GDatabase" I've seen this error before, but only when I've been changing things I probably shouldn't have been, like the RTL

How to specify MSbuild output folder?

六眼飞鱼酱① 提交于 2019-11-29 02:31:26
问题 When I execute delphi 2009 project using MSBuild command line, output always goes to C: drive C:\MyProjects>MSbuild "C:\MyTestProject\Test.dproj" /t:Build /p:OutDir="C:\Output\bin\" Why is this happening? 回答1: I know the docs say otherwise, but try OutputPath instead of OutDir. 回答2: For Delphi projects you need to use DCC_ExeOutput to specify where the EXE should go. C:\MyProjects>MSbuild "C:\MyTestProject\Test.dproj" /t:Build /p:DCC_ExeOutput="C:\Output\bin\" Take a look inside Test.dproj

Why is DoubleBuffered disabled by default?

霸气de小男生 提交于 2019-11-29 01:06:46
After creating a new form, I usually perform this ritual: Change the name into something meaningful; Type a Caption ; Change the position property (DefaultPosOnly is hardly ever what users expect); Set ShowHint to true ; Set DoubleBuffered to true ; I've been wondering for a while why the default value is 'False'. To me it just looks low-tech and crappy, and on my new machine I don't notice any difference in performance. Is doublebuffering problematic on older machines, VNC, Remote Desktop or in Virtual Machines maybe? Do you leave it on or off? Any recommendations? As you probably know, a

Access Violation in function CreateProcess in Delphi 2009

China☆狼群 提交于 2019-11-28 21:38:44
In my program I've the following code: //Code if not CreateProcess(nil, NonConstCmd, nil, nil, True, NORMAL_PRIORITY_CLASS or CREATE_NEW_PROCESS_GROUP, nil, PCh, SI, P) then //Code And I keep getting Access violation error. By the way, in Delphi7 the same code works perfectly. I've read MSDN and found that CreateProcess function in Delphi can modify the second argument. Inititally It was const, that's why I create a new variable with the same value. But it takes no effect. The question is: why doesn't this code work? The problem is in the lpCommandLine parameter. I suspect you are doing

What is TMonitor in Delphi System unit good for?

爷,独闯天下 提交于 2019-11-28 18:51:32
问题 After reading the articles "Simmering Unicode, bring DPL to a boil" and "Simmering Unicode, bring DPL to a boil (Part 2)" of "The Oracle at Delphi" (Allen Bauer), Oracle is all I understand :) The article mentions Delphi Parallel Library (DPL), lock free data structures, mutual exclusion locks and condition variables (this Wikipedia article forwards to 'Monitor (synchronization)', and then introduces the new TMonitor record type for thread synchronization and describes some of its methods.

Getting Allen Bauer's TMulticastEvent<T> working

空扰寡人 提交于 2019-11-28 17:05:44
I've been mucking around with Allen Bauer's code for a generic multicast event dispatcher (see his blog posts about it here ). He gives just enough code to make me want to use it, and unfortunately he hasn't posted the full source. I had a bash at getting it to work, but my assembler skills are non-existent. My problem is the InternalSetDispatcher method. The naive approach is to use the same assembler as for the other InternalXXX methods: procedure InternalSetDispatcher; begin XCHG EAX,[ESP] POP EAX POP EBP JMP SetEventDispatcher end; But this is used for procedures with one const parameter,