-
Content Count
3699 -
Joined
-
Last visited
-
Days Won
185
Everything posted by David Heffernan
-
Best to remove process monitor and get on with something else!
-
FYI - Several Embarcadero services are currently unavailable
David Heffernan replied to Keesver's topic in General Help
Maybe if they just built the web servers with Delphi and use the Delphi philosophy, they'd work -
Delphi - Data is not encoded in given format
David Heffernan replied to Hrushikesh Shet's topic in RTL and Delphi Object Pascal
FYI cross posted here (unicode - Delphi - Data is not encoded in given format - Stack Overflow) and with no code there either. As a rule, I think cross-posting is fine on this site, but you should always note that you've done so to avoid people spending time giving you help when you already received it elsewhere. It's just a good courtesy to the people that you are asking for help. But in any case, you should improve the post (in both places) by giving details of your code so that we have something concrete. -
Same GUID used in interfaces, is there any purpose for this?
David Heffernan replied to HaSo4's topic in RTL and Delphi Object Pascal
^^^^^^^^^ -
Same GUID used in interfaces, is there any purpose for this?
David Heffernan replied to HaSo4's topic in RTL and Delphi Object Pascal
I think the asker knows what GUIDs are used for. However the question is whether the use of the same GUID for two distinct interfaces is a bug or not. -
Thread Destroy with no corresponding Thread Create?
David Heffernan replied to alogrep's topic in VCL
Defect in your code, but in the code you didn't show. -
Overview of the generated files after build/compile
David Heffernan replied to Attila Kovacs's topic in Delphi IDE and APIs
I mean, you were the one with the headaches. -
Overview of the generated files after build/compile
David Heffernan replied to Attila Kovacs's topic in Delphi IDE and APIs
I'm struggling to imagine what headaches would be solved by this feature. I don't know how you can't get a list of generated files by simply checking out the project and then compiling it. All the files created after you compiled are the ones made by that compile. -
FYI this appears to be cross-posted here: playsound - How can I play quick sounds in Delphi? - Stack Overflow
-
function SHA1ofStr or Base64Encode fault output
David Heffernan replied to xauxag's topic in ICS - Internet Component Suite
There's plenty of reasons not to use AnsiString, unless the library is not developed any more. -
function SHA1ofStr or Base64Encode fault output
David Heffernan replied to xauxag's topic in ICS - Internet Component Suite
I mean, byte arrays exist in Delphi 7 -
function SHA1ofStr or Base64Encode fault output
David Heffernan replied to xauxag's topic in ICS - Internet Component Suite
On modern delphi you can't get away with this as has been discussed many times. Anyway just because people got things wrong 20 years ago is no reason to continue getting things wrong. -
function SHA1ofStr or Base64Encode fault output
David Heffernan replied to xauxag's topic in ICS - Internet Component Suite
I was referring to base64. That takes binary input (so bytes) and outputs text (so string). For sha1 the yes the input and output should be binary, that is bytes. The you'd have helper functions to take hash output and write in friendly hex format. At no point should there be AnsiString. I mean I hope you aren't proposing AnsiString as a place to hold bytes. -
function SHA1ofStr or Base64Encode fault output
David Heffernan replied to xauxag's topic in ICS - Internet Component Suite
It makes no sense to me that a base64 function could ever accept string input. Input base to be bytes. This is also kinda weird. Shouldn't it be the native type for text, string. -
Debugger gives wrong value for long double
David Heffernan replied to Gord P's topic in General Help
Massive performance hit compared to double on 64 bit -
Debugger gives wrong value for long double
David Heffernan replied to Gord P's topic in General Help
Floating-point arithmetic - Wikipedia -
Debugger gives wrong value for long double
David Heffernan replied to Gord P's topic in General Help
Those libraries will be appallingly slow. In terms of the calculation side of it, it doesn't sound like you have a problem. Use double. As far as the IDE goes its not surprising that a program written using the Delphi rtl doesn't convert floats to decimal text correctly because the rtl doesn't. Or vice versa. Never has done and in spite of Emba being told more than a decade ago they haven't shown any inclination to address it. In my code I use dtoa and dragon4 to do these things so I can get correct values. -
İs possible same pointer size for Win32/Win64?
David Heffernan replied to kosovali's topic in Algorithms, Data Structures and Class Design
I'm not talking about generalities. I'm talking about this specific topic. The OP already said that the pointer values that are streamed are ignored. The problem at hand is that the code does naive blitting of internal records, and these records have different layouts for different targets. -
İs possible same pointer size for Win32/Win64?
David Heffernan replied to kosovali's topic in Algorithms, Data Structures and Class Design
What would offsets be helpful for given that the data streamed in those fields is never used -
Debugger gives wrong value for long double
David Heffernan replied to Gord P's topic in General Help
Not in IEEE 754 floating point data types that you are using. Anyway I'm not actually sure what your actual problem is. Do you feel that there is an issue with the debugger? As for 80 bit floats I don't see any future for them. That idea died and everyone uses 64 bit double now. Is double insufficient for your needs? -
İs possible same pointer size for Win32/Win64?
David Heffernan replied to kosovali's topic in Algorithms, Data Structures and Class Design
Streaming offsets doesn't seem helpful. The user isn't interested in streaming addresses. The addresses are initialised at runtime. They are only streamed because the code is, er, sloppy, and blits raw records rather than serialising. -
Are you running your IDE elevated?
-
function SHA1ofStr or Base64Encode fault output
David Heffernan replied to xauxag's topic in ICS - Internet Component Suite
I'm just curious but why are you using AnsiString casts which produce behaviour dependent on the executing process locale? Did you mean to encode as UTF8? -
İs possible same pointer size for Win32/Win64?
David Heffernan replied to kosovali's topic in Algorithms, Data Structures and Class Design
But what is the problem? You can't solve something until you know what the problem is. As Lars says, streaming pointers seems, er, pointless. -
Data structure for Integer ranges
David Heffernan replied to Tommi Prami's topic in Algorithms, Data Structures and Class Design
Surely this could be done using regular expressions