|
Hello,
Thank you for the answer, but it was actually an error in my client program that handled a datachange event wrong. so that the received arrays went out of bounds or the values that I got back were handled worng.
I eventually solved it
greetings dadio25
|
|
|
|
|
I have an application which connects to a MS Access DB through ADO.
One of the fields in a table is a Memo field. I have this field editable in my application through a TDBMemo, and a grid.
The field has been removed and replaced a couple of times during development, but now whenever I view it in my app, it appears to think it is Unicaode, as I get lots of '?????' as the data.
If I edit the field in the application, in the database any entries become 2 byte characters eg entering 'Test' becomes 'T e s t '.
I have set the BlobType to ftMemo instead of the default ftWideMemo.
Any ideas where to go next? I am not entirely familiar with using ADO in Delphi.
|
|
|
|
|
I have an application that is sending commands that are being added to a queue to a connected device. There are times when I need to send a command right away, so I need a way to add an object to the front of the queue so that the command gets sent right away instead of having it added to the end of the queue. Does anyone know how to do this? I am using a TQueue object.
|
|
|
|
|
hi,
i can some english. so i hope you understand me.
how to add reference delphi dll file in visual studio 2005?(dll created with delphi).
regards,
Tayfun
ISTANBUL/TURKEY
|
|
|
|
|
In the Solution Explorer, right click on "References" -> "Add Reference" -> "Browse" tab -> Find it! -> Include the namespace
He who makes a beast out of himself gets rid of the pain of being a man
|
|
|
|
|
Hello!
I have some code which leaks memory (it's pretty much copied straight from Rudy's Delphi Corner). I have found the line that which causes the problem, but I don't understand why it's leaking which makes me concerned. I am reluctant to just fix it without knowing what's actually wrong.
The purpose of the code is to create a separate copy of a TVarRec variable. Here goes:
function TfrmMain.CopyVarRec(const Item: TVarRec): TVarRec;
begin
// Copy entire TVarRec first.
Result := Item;
// Now handle special cases.
case Item.VType of
vtExtended:
begin
New(Result.VExtended);
Result.VExtended^ := Item.VExtended^;
end;
vtPChar:
begin
Result.VPChar := StrNew(Item.VPChar);
end;
// A little trickier: casting to string will ensure
// reference counting is done properly.
vtAnsiString:
begin
// Nil out first, so no attempt to decrement
// reference count.
Result.VAnsiString := nil;
string(Result.VAnsiString) := string(Item.VAnsiString);
end;
end;
end;
The following function is then used to free the copied TVarRec:
// TVarRecs created by CopyVarRec must be finalized with this function.
// You should not use it on other TVarRecs.
procedure TfrmMain.FinalizeVarRec(var Item: TVarRec);
begin
case Item.VType of
vtExtended: Dispose(Item.VExtended);
vtString: Dispose(Item.VString);
// vtAnsiString uses reference counting.
end;
Item.VInteger := 0;
end;
The above code leaks memory when the TVarRec contains an AnsiString, that is in the vtAnsiString case of the CopyVarRec function. The weird thing is, the memory leak goes away if I remove the line Result.VAnsiString := nil; before assigning the Item's string to teh string of the the Result. If I remove it, the memory leak goes away and (it appears) the program works fine, but I really don't feel comfortable doing so without understanding why that line causes the problem to begin with.
Any ideas?
Regards,
Daniel
modified on Monday, April 27, 2009 11:37 AM
|
|
|
|
|
Alright, I think I figured it out.
The line which nils the Result's pointer to the string is needed, because otherwise the code which copies the string will cause the strings reference counter to decrease to 0, freeing the string. This is why the application "stopped" leaking memory when the nil-ing row was removed.
Instead, FinalizeVarRec needed to actually set the AnsiString to the empty string too, to make sure the string was freed. I believed taht would be handled by the reference counting, but it doesn't work that way for pointers.
|
|
|
|
|
Hi,
I'm considering going back to school, in order to learn to program. The potential teacher wants to see a quick demonstration of the software that I have written in the past. Unfortunately, those require Interbase 6.
Does anyone have an installation-package for me?
Many thanks in advance!
I are troll
|
|
|
|
|
Try here[^].
I have 5.0 on CD if all else fails!
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
|
I would highly recommend using FireBird 1.5.x instead of Interbase 6.0.
It is 100% compatible but is better in every aspect.
(not to mention that FireBird is still in development, while Internase 6.0 was canceled long time ago)
|
|
|
|
|
Thanks, I will definitely take a look
I are troll
|
|
|
|
|
I've had headaches with IB2009, particularly the console, so unstable, unpolished, unusable
Currently trialing SQL Manager IB edition, which is much better.
He who makes a beast out of himself gets rid of the pain of being a man
|
|
|
|
|
Akirilov, здравей,
I'm trying to recover a damaged Interbase 6.0 server running on Linux.
Can I replace the Interbase 6.0 server with the latest 1.5 version of Firebird without worrying that the application using the DB would run smoothly.
Thanks!
|
|
|
|
|
Firebird will fine but if doing this i do suggest firebird 2.5
problems:
0) be aware you can't go back,
1) watch out for UDF changes
2) test on a VM like "Oracle VM VirtualBox" first
3) read about the Meta_data tag in the Documentation for restoring the database.
i do suggest using classic server as well as its better suited to multi processor boxes.
|
|
|
|
|
Hi
I have a project written with Delphi 7. It needs some components in order to compile but I can't find some of them and I don't have the necessary knowledge about Delphi.
I need someone who can compile this project.
You can download the project from here:
http://rapidshare.com/files/220457280/bildri.rar[^]
NOTE: If putting links does not fit the rules. I can delete it.
|
|
|
|
|
Your project is using these external components - TXiProgressBar, TFreeButton, TAdvStringGrid, TdxCheckbox, TZipForge, which are not found in the RAR file you've posted. You definitely need these components to build the project. I could get TFreeButton on the Internet, and could build the component. For TZipForge, I could get the installer on the net. However, I could not get the remaining three components. If possible, you should perhaps contact the original developer, who should certainly have these components with him/her. Alternatively, you could modify the project to use equivalent components available with standard Delphi 7 and use them.
|
|
|
|
|
Rather than linking to an unknown (read potentially unsafe) source, you could give details of those components which you are missing.
However, from the reply from Amarnath S, finding those missing components was not difficult.
TXiProgressBar[^]
TZipForge[^]
TdxCheckbox[^]
TFreeButton via the link here[^]
TAdvStringGrid[^]
Torry.net keep their web site bookmarked as you can find most Delphi/C++Builder components via them.
modified 1-Aug-19 21:02pm.
|
|
|
|
|
I have tried to contact to the programmer but he/she is almost unreachable. He shared this source code in a forum but his membership is deleted now.
Thank you for the links you have provided. I downloaded all components it needs, but I think I can't succesfully install the components. I don't have experience and knowledge about Delphi so I can't solve the problem. That's why I need someone to compile and send it to me.
|
|
|
|
|
SimpleData wrote: I downloaded all components it needs, but I think I can't succesfully install the components.
Did you download the correct version of the components for your version of Delphi? If the installation of these components failed, what were the error messages telling you? If you are trying to supporting an existing program, have you tried to contact the original developers of that program for source code and documentation? Has you present customer given you any hints as to the next stage if you are unable to support this existing program?
Delphi, it is in an unfortunate position. When Borland lost its way it lost countless customers and countless developers and its credibility fell through the floor. This in turn has the capacity to becomes a nightmare in terms of maintaining existing customers' software.
You have a choice to muddle on the best you can or suggest to the customer that the only solution is to replace these problematic programs with current development techniques and current development products.
As source code for many Delphi and C++Builder components were never released, and original developers of these components are no longer available for one reason or another, leaves you with effectively one conclusion - namely - to start afresh with new. But if starting anew is not an option, you could try utility programs such as Resource Hacker/[^] and the hacker's (read Cracking) "w32dsm89" programs to give you hints of what the program and its supporting DLLs do, but that is potentially a very hard and very time consuming thing to do and thus far too expensive to perform. Please note, using cracking programs such as "w32dsm89" I personally do not recommend, it could get you into trouble!
modified 1-Aug-19 21:02pm.
|
|
|
|
|
I am pretty sure that I have the correct version of components. But when I am trying to install some of these components, I can't because I don't have .pas files of this components. (I am a newbie in Delphi, maybe there is an other way )
Only thing I am trying to do is compiling this project. I have deleted references to XiProgressBar and the commands which needs XiProgressBar because it was not that important.
|
|
|
|
|
Were you able to compile the project. I'll be gald to help you but i realize i'm late in the game!
|
|
|
|
|
I couldn't compile it yet. If you can, I would be very glad.
|
|
|
|
|
Can you Send you All Components Code and All Project source Code to Me?
This is My Email : fanronghua@126.com.
I'll help you , and I'll send your source code after build all project for success.
|
|
|
|
|
Hi
Thank you for your interest to help. But I have successfully compiled the code with the help of chambers120@suddenlink .
|
|
|
|