delphi-2007

Exception opening TAdoDataset: Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another

I've been trying to debug the following problem for several weeks now - this method is called from several places within the same datamodule, but this exception (from the subject line of this post) only occurs when integers for a certain purpose (pickup orders vs. orders that we ship through a carrier) are used - and don't ask me how the...

Record file error

Hello. I am using Delphi 2007 and I am trying to make record type file. In Delphi 7 there were no problems for me. Type Kompiuteris = record ... end; Failas = file of Kompiuteris; But in Delphi 2007 I get problem. Error says that: Type "Kompiuteris" needs finalization. So, what is wrong? ...

How do I control the "long strings" compiler option?

Hello. How do I control the "long strings" compiler option? I use Delphi 2007 ...

Strange rare out-of-order data received using Indy

We're having a bizarre problem with Indy10 where two large strings (a few hundred characters each) that we send out one after the other using TCP are appearing at the other end intertwined oddly. This happens extremely infrequently. Each string is a complete XML message terminated with a LF and in general the READ process reads an enti...

Incompatibilities between Indy 9 and Windows Server 2003?

I'm having a problem with a Delphi application on some Windows 2003 servers. It uses a webservice call to connect with another server and transmit data back and forth. As soon as the app gets to the Authenticate method, the app dies. The app has worked for years on previous boxes with Win Server 2003, but it doesn't on freshly built m...

Delphi constants and references

I want to pass constant references to functions in delphi, so I am sure that the referenced object won't change and to save time and memory. So I want to declare a function like function foo(var const Value : Bar) : Boolean; however this is not allowed. I thought constant values would be automatically sent as references. However I fou...

Delphi VCL "TaskDialog" problem in Windows 7

I'm developing an windows app on Delphi 2007 and I'm using "Ttaskdialog" component in it. Using windows XP it runs normally, but in Windows 7 I'm getting the following message: TtaskDialog requires themes to be enabled Any clues how to fix it? ...

Get connection ID from ServerSocket

Hello. I need to get connection ID from ServerSocket. By client I send text and I need to know which client sended text. Any ideas?? ...

How to get information about the computer? [32bit or 64bit]

Hello. How I can get information about Windows OS type? Is it 32bit or 64bit? How I can get this information programatically? ...

Why "menus" unit is finalized too early?

I tested my application with FastMM and FullDebugMode turned on, since I had some shutdown problems. After solving bunch of my own problems FastMM started to complain about calling virtual method on a freed object in TPopupList. I tried to move the menus unit as early as possible in uses so that it would be finalized last, but it didn'...

Inherited TShape.Paint does not work after overriding Shape property

I'm to code a TExpandedShape class inherited from TShape. TExpandedShape must act like TShape and be able to draw extra shapes: Polygon and Star. Here is my code unit ExpandedShape; interface uses SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls, Forms, Dialogs, ExtCtrls, Windows; type TExpandedShapeT...

StandardColorMap in MainMenu

Hey guys. I have a problem with StandardColorMap and MainMenu. I need to create ColorMap in one submenu. How to do it? P.S. I am programming with delphi 2007 ...

Weird call stack when application has frozen

I apparently have an dead lock problem in one of my applications and started investigating EurekaLog stack traces. Here's one recent: Call Stack Information: -------------------------------------------------------------------------------------------------------------------------------------- |Address |Module |Unit ...

How do I install both D2007 and D2010?

From what I have gathered, one can have both editions of Delphi installed. My concern is that default paths, etc, may get confused especially when installing 3rd party components. The reason why I want to do this is I have some 3rd party components which have not been updated. Although I have the source files, I'm not knowledgeable enou...

Delphi Search Edit Component

Hi, I need a delphi component for Delphi 2007 win32 that have features like Google search text box. ** While User writing search key it should fill/refresh the list with values, and user can select one of them. **User can go up and down list and can select one of them. **List should contain codes and text pair, so user can select t...

How to convert classname as string to a class ?

I have classnames in a stringlist. For example it could be 'TPlanEvent', 'TParcel', 'TCountry' etc. Now I want to find out the sizes by looping the list. It works to have: Size := TCountry.InstanceSize; But I want it like this: for i := 0 to ClassList.Count - 1 do Size := StringToClass(ClassList[i]).InstanceSize; Obviously my ...

Why 2 GB memory limit when running in 64 bit Windows ?

I'm a member in a team that develop a Delphi application. The memory requirements are huge. 500 MB is normal but in some cases it got out of memory exception. The memory allocated in that cases is typically between 1000 - 1700 MB. We of course want 64-bits compiler but that won't happen now (and if it happens we also must convert to uni...

SQL/Schema comparison and upgrade

I have a simple situation. A large organisation is using several different versions of some (desktop) application and each version has it's own database structure. There are about 200 offices and each office will have it's own version, which can be one of 7 different ones. The company wants to upgrade all applications to the latest versi...

Problems with File Format UTF8

I don't know what happened. When I try to change the encoding of a file in Delphi IDE 2007, It shows me just two options "Binary Form" and "Text Form", some one already faced this problem ? or know how to save it ? tks for advice ...

Delphi hook to redirect to different ip

What is the best way to redirect ANY browser to a different ip for specific sites? For example if the user will type www.facebook.com in any browser he will be redirected to 127.0.0.1. Also the same should happen if he will type 66.220.146.11. What I have until now is this: using the winpkfilter I am able to intercept all the traffic on...