Quantcast
Channel: Embarcadero Community - Embarcadero Community
Viewing all 1963 articles
Browse latest View live

Problems compiling ToolsAPI.PAS

$
0
0

Hi, I need to compile the unit ToolsAPI.pas because a 3rd party component needs it, but i have problems as i cannot find the file PersonalityConst.pas !   I am Using Embarcadero Delphi 10.1 Berlin Upd2.   Thanks Daniele


REST Request - Error to get PDF Attached - Berlin 10.1

$
0
0

Hi!

Iam trying to download a PDF file using a REST Client.

When it's execute, the request reach the server and get the content. But when try to convert the content to a string this throw the exception "class EEncodingError with message 'No mapping for the Unicode character exists in the target multi-byte code page'."

I've debuged the code, and the error occurs when try to get the count of chars in GetString function of System.SysUtils unit.

//Line 31441

Len := GetCharCount(Bytes, ByteIndex, ByteCount);  //ByteCount = 364510

This function call the MultiByteToWideChar function and this return 0. //CodePage = 65001

When I change the value of "Len" using the debugger, the stream can be readed.

This is the example of configuration used at the components:

object RESTClient1: TRESTClient
  Accept = 'application/json, text/plain; q=0.9, text/html;q=0.8, application/octet-stream,'
  AcceptCharset = 'UTF-8, *;q=0.5'
  AcceptEncoding = 'deflate, gzip, *;q=0'
  BaseURL = '...'
  Params = <>
  HandleRedirects = True
end
 
object RESTRequest1: TRESTRequest
  Accept = 'application/json, text/plain; q=0.9, text/html;q=0.8, application/octet-stream,'
  AcceptCharset = 'UTF-8, *;q=0.5'
  AcceptEncoding = 'deflate, gzip, *;q=0'
  Client = RESTClient1
  Params = <
    item
      Kind = pkHTTPHEADER
      name = 'Param1'
      Value = '...'
    end
    item
      Kind = pkHTTPHEADER
      name = 'Authorization'
      Options = [poDoNotEncode]
      Value = '...'
    end>
  Resource = 'Documents/CODE/RepGrph/Binary'
  Response = RESTResponse1
  SynchronizedEvents = False
end
 
object RESTResponse1: TRESTResponse
end

Thanks for your help.

delphi seattle, iOS simulator run, can't load devToolsFoundation

$
0
0

Hi.

I'm trying to set up compiling an app for iOS using the iPhone 5 simulator. I am running Delphi 10 Seatle on a Windows 10 machine, and the X-code on a Mac with macOS Sierra 10.12.5. X-code is up to date, version 8.3.2.

I have PA server 8.0.1.52 tested running and connected. I have created an SDK. I have X-Tools running with the simulator.

When I click the run with debug command in the IDE I get the error "Can't load devToolsFoundation"

If I click the run without debug command in the IDE I get the error "Unable to launch process on [ip] using the parameters from the iOS profile. Can't load devToolsFoundation"

The app will compile as windows 32 and 64 bit, and also for Android.

I have no idea where to go from here.

Thanks in advance

Intraweb

$
0
0

Hi I have intraweb problem when I can't connect to my helloword aplication when I run on server. All ports are opened.

 

 

Arabic on Android

$
0
0

for the May 2017 Roadmap,   Does Z-Order support make FireMonkey rendering of text in RTL  languages such as Arabic on Android display correctly? thanks

How can I compile a Project (".DPROJ" file) bypassing the linker (without generate the ".EXE" file)

$
0
0

Hi, I have dozens of Delphi Projects (".DPROJ" file), where one project can depend on others, and I'm using a dependency manager to compile in order.

But, I don't want generate the executable for the majority.

I'm compiling using the MSBUILD (the Dependency Manager calls the MSBUILD). How can I compile bypassing the linker?

 

Regards

build project by Microsoft MSbuild

$
0
0

Hello,

I'm build a Delphi project by MSbuild (after successfully build by Rad Studio IDE) and it keeps giving error about don't found the unit of namespace such as "F2613 Unit 'Windows' not found." If I manually add "Winapi." namespace into 'Windows' unit and rebuild it, it's will be ok.  My question is there is anyway in Delphi (such as directive) that I don't have to spell out the whole namespace for the unit when building it.

Authenticate users via fingerprint scan

$
0
0

Hi,

Is it possible to develop a custom application that can authenticate users via fingerprint scan?

Best regards.

Manoel Pedro

 


TFDConnection on DataSnap server

$
0
0

I have a TFDConnection on a TDSServerModule. In designtime it connects just fine. I start the server, and then a client, and via the client I ask the server to connect to the database, and then I get an this message:

Project QDAS.exe raised exception class $C0000005 with message 'access violation at 0x00000000: read of address 0x00000000'.

A hint, someone?

/Anders

Here is the call stack:

System.Classes.TStringStream.Create(???)
FireDAC.Stan.Def.TFDConnectionDef.ReadOptions($6C51878,$3E09D90,$6C379B0,$6C572B0)
FireDAC.Phys.TFDPhysConnection.Create(???,???)
FireDAC.Phys.ODBCBase.TFDPhysODBCConnectionBase.Create(???,$3DF5CB0)
FireDAC.Phys.MSSQL.TFDPhysMSSQLDriver.InternalCreateConnection(???)
FireDAC.Phys.TFDPhysDriver.CreateConnection(???,nil)
FireDAC.Phys.TFDPhysManager.CreateConnection(TFDConnectionDef($6C515AC) as IFDStanConnectionDef,nil,True)
FireDAC.Comp.Client.TFDCustomConnection.AcquireConnectionIntf(nil)
FireDAC.Comp.Client.TFDCustomConnection.DoConnect
Data.DB.TCustomConnection.SetConnected(???)
FireDAC.Comp.Client.TFDCustomConnection.SetConnected(???)
Data.DB.TCustomConnection.Open

incorrect method declaration in class

$
0
0

Hi,

I'm using xe7 c++ and jedi v3.49 (open source jedi project)

I have problem with JvdbUltimGrid compoonent event "onRestoreGridPosition".

can not create methot for this event.

 

void __fastcall JvDBUltimGrid1RestoreGridPosition(TJvDBUltimGrid *Sender, TArray SavedBookmark,SavedRowPos);

 

thanks all.

Incorrect method declaration in class

$
0
0

Hi, I'm using xe7 c++ and jedi v3.49 (open source jedi project) I have problem with JvdbUltimGrid compoonent event "onRestoreGridPosition". I can not create methot for this event. thanks all.

Retrieve calendar events on a mobile device

$
0
0

Has DX 10.1 Berlin or 10.2 Tokyo, FMX, a component to query, retrieve,  calendar (agenda) events on a mobile device both for Android and iOS, somewhat similar to the FMX.AddressBook (TAddressBook, ..) classes provided in DX 10 that can access the contacts on a mobile device?

Is it planned in the Firemonkey roadmap? If so, is it possible to have an estimated time of release?

If not, are there any commercial solutions? Or is the solution in going with the native API on each platform and using JNI and the likes?

Thanks

Wim

Ghost breakpoints in the TDS file

$
0
0

Hi there,

After upgrading our (rather large C++) project from "C++ builder XE2" to the newest "RAD Studio 10.2" I having a tough time with persistent "ghost" breakpoints i.e. breakpoints that are not visible either in the debug window nor defined by me. The ghosts always appears in the same locations.

All this happens in the debug build only.

What I found out is that if I deletes the .tds file then the "ghosts" dissapears but then I am not able to set any new breakspoints at all.

Is there a known workaround ? or ?

 

Thx

Jens F-N     

SubVersion client from the IDE

$
0
0

Hi there,

Trying to get the Subversion client to Work from inside the IDE (following the guidelines from the README file (c:\Program Files (x86)\Embarcadero\Studio\19.0\bin\subversion\) and the online guidelines from embarcadero .

I am using:

TortoiseSVN 1.9.5, Build 27581 - 64 Bit , 2016/11/26 09:18:58
Subversion 1.9.5, -release

as client and have updated the above "subversion" folder content  according to the guidelines from embarcadero told to do.

Still SubVersion is very unstable - it throws exceptions or just crashes all the time.

There is nothing wrong with the Subversion installation - it works fine outside the IDE (in the explorer, total commander,...etc )

Pls is there any workaround, hints to follow ??

 

 

 

 

 

démarrage de delphi starter tokyo

$
0
0

impossible de démarrer delphi tokyo starter : une erreur dans repository.xml le document xml doit contenir un élément de niveau supérieur ligne 0. que faire pour régler ce problème ?


XCode 8.3?

$
0
0

Hi,

As always, starts aligned like each previous releases... RAD Studio is out, and a few days later, the new XCode is there too.
Did anybody try XCode 8.3 with RadStudio 10.2?
Is anything broken?
Thanks for any clue.

Inspecting variable values in Delphi Tokyo 10.2 Starter

$
0
0

My question is concerned with debugging. I used to use Delphi 7, I'm quite a beginner, learning on my own and from tutorials. Now I'm using Tokyo 10.2. Starter. In Delphi 7, if I set a breakpoint somewhere in the code, and the program stops at that line, the values of the variables are displayed as hints if I move the mouse on them in the code.In Delphi 10, this does not seem to work. It seems that I can inspect the variable values only by addig them to the Watch List one by one. My question is whether I can configure Delphi 10 so that it displays the values as hints, just like Delphi 7 did, when moving the mouse on the variable name?  

Tooltip Help Insight is checked under Tools / Options / Editor Options / Code Insights, and it still does not work.

I have no local and global variables of the same name.

 

Thanks

Legal using two Delphi Starter instances

$
0
0

Hello to all!

I am trying to learn to programming and since this I am there with one question.

Recently I have downloaded a new Delphi Tokyo 10.2 Starter edition (which is free). This is a cool IDE (early I have been using Lazarus a little a bit). I have install Delphi Starter on my main home machine, but sometimes I do a lot of stuff outside my home (not related with programming), so my home computer is not available for me. But when I am outside of home, all free time which I have could be spent to improve my programming skills. Having my personal laptop I am wondering, if I can legally install Delphi Starter Tokyo 10.2 on my laptop and work with it when I am not at home. But in the same time I want to be able also to have Delphi Starter Tokyo 10.2 to be installed on my home machine, so when I get at home I could use my home machine to programming.

Programming is just my hobby and I don't want to break the law with illegal installing Delphi on my personal laptop.

The clear question is: can I legally install Delphi Starter Tokyo 10.2 on two my personal machines?

FAQ for Delphi Starte Tokyo 10.2 says next:

"If a single user starts two instances of a Starter edition product, does that count as two toward the maximum of five?

Yes, if they are on separate machines or separate virtual machines."

(https://www.embarcadero.com/products/delphi/starter-faq)

But I would like to have more info about this question.

 

Thanks in advance for your help!

P.S.

Sorry for my poor English(

E2035 Not enough actual parameters

$
0
0

I have an issue with the following code :

Type

TTagNotificationList = array of TNotifyEvent;

 

protected

function IndexOf(List:TTagNotificationList; aHandler:TNotifyEvent):Integer;

 

Implementation

 

function TTag.IndexOf(List: TTagNotificationList; aHandler: TNotifyEvent): Integer;

var

  c: Integer;

begin

  if (aHandler <> nil) then  // Here's the error : [dcc32 Error] tag.pas(261): E2035 Not enough actual parameters

    for c:=0 to High(List) do begin

      if (TMethod(List[c]).Code = TMethod(aHandler).Code) and (TMethod(List[c]).Data=TMethod(aHandler).Data) then begin

        Result := c;

        exit;

      end;

    end;

  Result := -1;

end;

Any suggestions ?

Geir

play sound in android

$
0
0

hello .... why this code is not working in Tokyo 10.2 .... but working in seattle 10.0

procedure TForm1.Sound;

{$ifdef android}

var

AudioObj: JObject;

Audio: JAudioManager;

{$endif}

begin

{$ifdef android}

  AudioObj:= TAndroidHelper.Activity.getSystemService(

      TJActivity.JavaClass.AUDIO_SERVICE);

  Audio := TJAudioManager.Wrap((AudioObj as ILocalObject).GetObjectID);

  Audio.loadSoundEffects;

  Audio.playSoundEffect(0);

  //0 - http://developer.android.com/intl/ru/reference/android/view/SoundEffectConstants.html

  {$endif}

end;

 

Viewing all 1963 articles
Browse latest View live


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