Quantcast
Channel: Recent Topics - Forum - Embarcadero Community - Embarcadero Community
Viewing all 3677 articles
Browse latest View live

Azure DeleteBlob fails authentication MAC signature - by: Roland

$
0
0
This C++ call fails with the following message (seen in Fiddler)

ret = Service->DeleteBlob(ctnr,bname,false,L"",CloudResponseInfo);

<?xml version="1.0" encoding="utf-8"?><Error><Code>AuthenticationFailed</Code><Message>Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.
RequestId:b7427700-501e-0025-786f-df52d0000000
Time:2018-04-29T04:07:44.3475782Z</Message><AuthenticationErrorDetail>The MAC signature found in the HTTP request 'eclC9KZqc6MGAOOq+CuBaUejrBpyp1tvnePncCfm5EA=' is not the same as any computed signature. Server used following string to sign: 'DELETE

Service is a TAzureBlobService*
It used to work, then it worked for some storage accounts but not others, now I can't get it to work anywhere.

Any ideas?

INDY Question - by: Frank

$
0
0
We are transitioning from XE7 to Tokyo and in XE7 I made a little change to IdMessageClient. I've checked the version bundled with Tokyo and saw that the same few lines are still needed to walk around a few stupid email senders who send multipart messages with a quoted-printable ContentTransferEncoding. After transfering the changes I built the application and got 'IdMessage not found'. When I add the directories with the INDY sources I get way more interesting exceptions, like an Undeclared structure which is declared roughly 20 lines above that in the same file. I also get the message that the newly compiled dcus are with a different version than the ones that are already there.

How can I make Tokyo/INDY behave?

@Remy: Basically what I do is make sure that LUnknownContentTransferEncoding remains False in TIdMessageClient.ReceiveBody. So I added

if IsHeaderMediaType(AMsg.ContentType, 'multipart') then {do not localize}
if PosInStrArray(AMsg.ContentTransferEncoding, , False) <> -1 then begin {do not localize}
AMsg.ContentTransferEncoding := '';
end;

as the first lines in the function.

C++BUILDER PRO 10.2.3 - Space Rock AudioManager.cpp compile error ? - by: GAI

$
0
0
Embarcadero® C++Builder 10.2 Version 25.0.29899.2631
OSX 10.13.4
iPod iOS 9.3.5
iPhone6 iOS 11.3.1

1. Cannot compile "stdarg.h" not found if using iPhoneOS 11.3

2. Using iPhoneOS 9.3, iPhoneOS 11.2 and iPhoneOS 11.3 failed with AudioManager error:

[ld Error] Error: "_AudioServicesAddSystemSoundCompletion", referenced from: __ZN13TAudioManager8AddSoundEN6System13UnicodeStringE in .\\iOSDevice64\\Release\\AudioManager.o; __ZN13TAudioManager9PlaySoundEi in .\\iOSDevice64\\Release\\AudioManager.o;
[ld Error] Error: "_AudioServicesCreateSystemSoundID", referenced from: __ZN13TAudioManager8AddSoundEN6System13UnicodeStringE in .\\iOSDevice64\\Release\\AudioManager.o;
[ld Error] Error: "_AudioServicesPlaySystemSound", referenced from: __ZN13TAudioManager9PlaySoundEi in .\\iOSDevice64\\Release\\AudioManager.o;
[ld Error] ld: symbol(s) not found for architecture arm64

Please advise.

Time of writing to a file - by: Jens

$
0
0
I have a test application that generates a lot of data that are written to data files. There is a data file for each test position and there can be up to several hundreds of them. To ensure data are not getting lost in case of fatalities, whenever there is a new reading to a file, the file is being opened, data written and the file closed again. Not super fast, but it typically takes just below one millisecond.

So far so good. However, occasionally this operation takes much longer up to a few hundred milliseconds. On even rarer occasions it can take several minutes with the worst case reported being 20 minutes! Obviously not good and other tasks times out and the customers get upset.

I get the impression that the OS (Windows), file system and HW just does that with their various caches and HW limitations, but then again minutes sounds like an awful long time.

Is there anyway around this besides doing buffering in code to get fewer file operation? Maybe even put it in a thread to avoid blocking the main thread? Will it help to keep the files open and just close them occasionally to secure the data? Any other tricks for real-time streaming of data to multiple files?

Thanks,

Need Borland Delphi 2006 Enterprise - by: Pascual

$
0
0
Hi everyone,

I am migrating the development enviroment but i lost the Borland Delphi 2006 Enterprise installer, i have a license. Can you help me please, i don't find it to anyplace.

Thanks so much.

JSON, D10, MySQL - by: Jim

$
0
0
I very much need an example of using JSON C# in a Delphi VCL application. I've been trying to integrate an API for texting off and on for several months and am still floundering. Can someone come to my rescue? I'm desperate!

Thanks,
Jim Sawyer

JSON, C# into Delphi 10.2 - by: Jim

$
0
0
Here is a sample of C# code. How would I put
it int a Delphi VCL program?

{code}
ServicePointManager.Expect100Continue = true;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3;
using System;
using System.Net;
using System.IO;
using System.Text;
using Newtonsoft.Json.Linq;

namespace RESTex2J
{
class Program
{
static void Main(string[] args)
{
bool isSuccesResponse = true;
string ret = string.Empty;
WebRequest w = WebRequest.Create(" app.eztexting.com/keywords/new?format=js...ie&Password=the-pooh ");
try
{
using (HttpWebResponse r = (HttpWebResponse)w.GetResponse())
{
ret = GetResponseString(r);
}
}
catch (System.Net.WebException ex)
{
isSuccesResponse = false;
if (ex.Status == WebExceptionStatus.ProtocolError)
{
ret = GetResponseString(ex.Response);
}
}
// use free Json.NET library ( json.codeplex.com/ ) for JSON handling
JObject response = JObject.Parse(ret);
System.Console.Out.WriteLine("Status: " + response.SelectToken("Response.Status"));
System.Console.Out.WriteLine("Code: " + response.SelectToken("Response.Code"));
if (isSuccesResponse)
{
System.Console.Out.WriteLine("Keyword: " + response.SelectToken("Response.Entry.Keyword"));
System.Console.Out.WriteLine("Availability: " + response.SelectToken("Response.Entry.Available"));
}
else
{
System.Console.Out.WriteLine("Errors: " + response.SelectToken("Response.Errors"));
}
}

static string GetResponseString(WebResponse response)
{
using (Stream responseStream = response.GetResponseStream())
{
using (StreamReader readStream = new StreamReader(responseStream, Encoding.UTF8))
{
return readStream.ReadToEnd();
}
}
}
}
}
{code}

Thanks,
Jim Sawyer

old borland builder 5 issue - by: Andrew

$
0
0
Hi,
I have an old application that was build for XP. I needed to port it to Windows 7 and keep getting the following errors:
[C++ Error] richedit.h(178): E2015 Ambiguity between 'TEXTRANGEA' and 'Richedit::TEXTRANGEA'
[C++ Error] richedit.h(191): E2015 Ambiguity between 'FINDTEXTA' and 'Richedit::FINDTEXTA'
I imported the OWL used in Borland 4 into 5. And keep getting these ambiguity errors.
Anyone have a solution?
thanks,
Andy

Problems installing new SDK 11.2 - by: Lucas

$
0
0
I just updated my xCode to the Version 9.3. But when i tried to install the new SDK for iOS it returns me this message:
Directory does not exist: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/7.0.0/".

What should I do?

Problem with RAD Studio 10.1 Berlin installation - by: suchy

$
0
0
I have a problem with instaliation of RAD Studio 10.1 Update 2. Installation show error during installing core common files starter. I tried many times and always the same problem. Do you know what I should do to solve this problem?

System: Win 8.1 x64

Forums unusable - by: Mats

$
0
0
Borlands forums used to be a great place for getting help and information on specific topics.

Now, the forum technology is back to a stone age level and more or less completely useless.

Whats going on???

-tk

Konopka VCL Components - by: Jim

$
0
0
About 2 years ago I bought Delphi Seattle and Konopka controls from Embarcadero. Had to replace the computer and have lost the serial number for my Konopka controls. Embarcadero does not answer my questions. How can I find the serial number?

Links to old forum topics, all over the web, now BROKEN. - by: Robert

$
0
0
I did a search for something Delphi related today, and tried to get more info by clicking a link to a Delphi forum post. Sadly, I got a 404 "Page not found" error, from any other place I tound that had such a link.

These old forum posts had a LOT of information that was still very useful, but they appear to be NUKED.

Are these gone forever? Breaking links all over the web? If so, WHY ???

Turn off Template Completion? - by: Ray

$
0
0
In my Editor Options (10.2.3) under Code Insight, I have turned off Block completion and Code template completion (and unchecked everything beneath it). Still, when I type things like "if " and "try " it still puts in the "begin/'end' or "finally/free" stuff and drives me nuts. How do you get it to stop doing that?

Delphi code converted to C++ does not work the same - by: Ray

$
0
0
I have a TListBox that has a list of numbers I want sorted. The old Dephi code below sorted correctly, but not when converted to C++. Example.. numbers added in this order in Delphi code 1, 2 ,7,5, 22 are sorted as 1,2,5,7,22. The C++ code sorts them 1,2,22,5,7




.

Time separator - by: Jukka

$
0
0
How i can get what time separator is right?
Win7 time separator is ':'
Win10 time separator is '.' but if Win7 update Win10
then Win10 time separator is ':'
Android time separator is '.'

Delphi MySQL Commands out of sync; you can't run this command now - by: Robert

$
0
0
I've decieded I play with mySQL a bit . Installed the latest version (8.x) and I downloaded from the Internet (6.1.11) . I am using 32 bit right now .

Anyways I am connected to the Database , all is working fine . I have one FireDac Connection on the MainForm . If I open a query it works , I can even open close the query no problem .

But if I try to execute a stored procedure , it inserts what I wanted , but after that . I receive the error : Commands out of sync; you can't run this command now

Here is how I open a Query :



This works multiple times, if I change the tabs it either Opens with Active 1 or 0 , and I never get the Out of Sync Error.

Then I try to insert a new user like this :


It is inserted imediatelly , but after this , I can no longer do anything, If I try to Open the Query the error comes. Even if I close this Form completely it still comes as long as I do not close the Application and Restart it.

Obviously I am doing something wrong , but what ?

The Stored Procedure returns two values, maybe I am not handling this correctly . I used before this MsSQL ... and ADOStoredProcedure , I never had this problem before .

If I Close the FDConnection every time , it works , but it is ugly . Because all my Queries depend on it . I also
tried using a Second FDConnection and close that it works, for the user it is invisible , but It is still ugly.
I guess I set some parameter incorrectly, or I am not doing something aftert I execute the Stored Procedure.

Please help me.

Thank you

Who or what is my JIRA administrators? - by: Phillip

$
0
0
Embarcadero Technical Support have suggested I should add a watch to the public report quality.embarcadero.com/browse/RSP-20303 . In my attempts to do that I have been asked to Login. However it does not accept my Developer Network ID and password so I need to "contact your JIRA adminstrators". How do I determine who or what is my JIRA administrators and how do I contact them.

FIreDAC MySQL - by: Robert

$
0
0
Hello Everyone ,

I have following stored procedure which works fine from MySQL dashboard : ( I removed some extra Lines, but you can see that I have multiple selects . )



If I try to execute this from my Programm :

I get FireDAC Phys MySQL Command out of Sync; you can't run this command now .

Can someone pretty please tell me what am i doing wrong?

Thank you

Wrong Execution of inline Functions in Delphi 10.2.3 Tokio - by: Stephan

$
0
0
I have a self programmed stack and a inline method to pop an Int32 from it.
Inside this method I decrement the stackpointer and then take the the Value at the new Address.

The problem is now: when i call this method twice, first the stackpointer is two times decrementet and then I get two times the same value.

An implementation with an array instead of a memory pointer has the same issue.
It is also unafected by the compiler optimization.

A small Example is this:

Full Project:

File Attachment:

File Name: MiniStackTest_2018-05-07.zip
File Size: 56 KB


The example should calc the summ 10 + 1 = 11.
But the first add-method will always return the value 20.

The Issue was noticed by the migration of older code to the new Delphi, because we need a 64Bit compiler.
And it is not possible to replace every call of inline functions with an assignemnt to a local var, as in add2, and remove all inline declarations is also no option.

Can anyone help?
Viewing all 3677 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>