delphi

How to debug a delphi 2006 clientDataSet if at all possible

Hi, Over the last few days we have seen random access violations being raised on Delphi 2006 using the ClientDataSet when loading an XML block but the errors disappear when using CodeGear 2007 rad Studio. I have a strange feeling that this is going to come back and haunt us in the future. So, how can I debug the xml load procedure for...

Is there, or is there ever going to be, a conditional operator in Delphi?

I kept my hands off Delphi for too long, I guess; busied myself with Java and PHP a lot over the last couple of years. Now, when I got back to doing a little Delphi job, I realised I really miss the conditional operator which is supported by both Java and PHP. On how many places would you find lines like these in your Delphi programs? ...

How to disable automatic appending of wildcard pattern in Vista file open dialog

Hello, I'm using a file open dialog to chose image files for further editing. The filter list contains an "All supported formats" entry which represents a long list of file formats. Since Vista automatically appends the wildcard patterns in the filter combobox, the expanded combobox is too wide to fit completely on the screen. Besides t...

Delphi form Owner Skips ShowMessage/Dialog call in component's FormClose

Hello, My Delphi 2010 application has a number of non-modal forms that are created and owned by the mainform. One of these forms has a formclose procedure that pops up a dialog asking the user if they want to save changes. If the user closes the mainform, the "owned" form's FormClose procedure is called, however the dialog is not shown...

One active IB transaction the whole lifetime of a single user application

Are there any negative impacts when a single user application uses only one IB transaction, which is active as long the program runs? By using only CommitRetaining and RollbackRetaining. Background: I want to use IBQuery(s) and connect them to a DB Grid(s) (DevExpress), which loads all records into memory at once. So I want to avoid re-...

eBooks available covering Delphi, Sql, Asp, C#, Html, Css ?

I am considering buying an ebook reader (from Sony if you want to know). Do you know of any sites where you can (legally preferable) download/buy ebooks covering Delphi, Sql, Asp, C#, Html, Css , ... ? It would be nice to have reference books available on my ebook reader when I am developing software and web sites. ...

Biggest Delphi nitpicks

What sort of minor annoyances do you run into using Delphi? I'm not looking for major issues such as "I want a 64-bit compiler." Just little things that can be easily worked around but still should have been implemented better so you don't have to work around them? Marking this CW. I'm more interested in the answers than the points. ...

FillChar, but for integer/cardinal

The word has it FillChar is about the fastest way to fill a patch of memory with bytes of the same value (not zero, for that there's ZeroMemory), but is there an equivalent to fill memory with a sequence of the same (four byte) integer or cardinal value? Something like FillInt or FillLongWord? ...

How to use OmniXML to save settings of an application on a xml file

I'm considering saving my application settings as a xml instead of using the registry but I'm having a hard time understanding and using OmniXML. I know some of you here use and recomend OnmiXML so I hope someone can give me some pointers. I'm used to use TRegistry to create a new key if it doesn't exist, but I can't seem to find any s...

Export a VirtualStringTree to excel, csv ?

Is it possible to export a VirtualStringTree to Excel or CSV? I am using Delphi 2007 and trying to save my VirtualStringTree data records as Excel or CSV format. ...

Someway to override Delphi default procedures at Design Time ?

Someway to override Delphi default procedures at Design Time ? I need to override the InstanceSize at design time, I did it runtime using FastCode method: FastcodeAddressPatch(FastcodeGetAddress(@SInstanceSize), @TWinControl.RfInstanceSize); But, is there some way to do it at Design time ? Tks in advice ...

Delphi - Help calling threaded dll function from another thread

I'm using Delphi 2006 and have a bit of a problem with an application I'm developing. I have a form that creates a thread which calls a function that performs a lengthy operation, lets call it LengthyProcess. Inside the LengthyProcess function we also call several Dll functions which also create threads of their own. The problem that I...

from delphi to C# Image1.Canvas.Pixels

Hello. In delphi written code: result = (Image1.Canvas.Pixels[i, j] and $000000ff); what it is mean? And if possible, please, say how can i do same operation in C#? Edited: I don't know where problem: I use same algorithm, but result is not equivalent or same .i think i don't understand delphi code true! Delphi code: procedure TFo...

Howto set event handlers with arbitrary type with RTTI in Delphi 2010 ?

Hi, after reading the post How to set event handlers via new RTTI?, I wonder if it is possible to solve this more dynamically. For example I want to set ALL event handlers of any component to nil. Using TValue.From <TNotifyEvent> (SomeMethod) does not work for two reasons: 1. The type is unknown (could be TNotifyEvent, TMouseEvent etc....

Delphi 2009/2010 HTTP Proxy Server Component

Hi! Can you advice me an HTTP/HTTPS proxy server component for Delphi 2009 or 2010 (i.e. it must support Unicode). I know about Indy, but maybe there are alternatives? ...

Virtual StringTree's hint windows are left out on the screen

Hi, See this screenshot, in the middle it's the small hint windows that are generated by a TVirtualStringTree control and were left out on the screen, these hint windows will remain there until the application exits. the problem happens when the treeview's hint is shown and the mouse leaves quickly to the window next to it. Any idea ab...

Directsound with streaming buffer - Lock does not wrap! Using ported DirectX headers for Delphi

Right-o, I'm working on implementing DirectSound in our Delphi voip app (the app allows for radios to be used by multiple users over a network connection) Data comes in via UDP broadcasts. As it is now, we go down on a raw data level and do the audio mixing from multiple sources ourselves and have a centralized component that is used to ...

Rave Reports DataText Left

I'm using Delphi 7 and Rave Reports. How can I set the DataText.Left property (from Rave Reports) dinamicaly according to the size of another DataText that comes before. I tried using the width from the previous DataText, the Length of the field that the first DataText is displaying... None of them worked. I would really appreciate it ...

Delphi - Declaring in class or not?

Just recently, probably because I've been maintaining some old code, I've started to look at how / why I do things. As you do. Most of my Delphi programming has been picked up in house, or from examples scattered across the web or manuals. And in some things are done just because "that's how I do it" What I'm currently wondering abou...

How to mount network disks within Delphi Service?

Dear Sirs, I am newbie in Delphi, but I need to fix Delphi code in order to make network disks to be mounted when "Service start" is executed. By default when my application is started via Windows Service network disks are not accessible for application, so the solution is to insert UNC mapping script in my service. Can you help me with...