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

Rad Studio IDE bricked on splash screen in Windows Insider Build 16184, 16188

$
0
0

Windows Insider build starting from 16184 are not compatible with Delphi IDE, staying locked on splash screen forever.

 

Yes, Windows Insider Build are Beta version(s), however Delphi is the one and only software I am aware of that bricked under those builds.

I suspect a Delphi issue, probably the protection and online activation module that is again at fault trying to protect itself.

As it is reasonable to think Microsoft is not the culprit here, and as being in Windows Insider program is sometine not an option for software vendors, Embarcadero/idera should at least investigate the issue and report - ideally provide a quick fix. 

 

If one's answer is "don't use Windows Beta", then just don't waste the time to write it.


RAD Studio 10.1, 10.2 and Installers for both lock up on start with latest Win 10 Insider Build.

$
0
0

Windows 10 trouble shooter flags 10.1 and 10.2 are not compatible.

ER/Studio Data Architect: Can not upload Diagram to Repository

$
0
0

Hi Experts,

I apologize if this may be a simple or dumb question, I am new to Data Architect.
I have created a new Diagram, based on one of our DBs, and want to upload the Diagram to our Repository.
When I attempt to do this, I receive:

The Navigational Id, 28, could not be found in the SRTF Section, DDENTITYSECTION, in the request container.

I have not added any Data Dictionary items, beyond what is automatically created when we first create a Diagram.
If I create an new blank Diagram for testing, I do not receive this error.

Any ideas what I am missing?

Thanks!
-Kevin

Update: I found a workaround. I was able to upload a blank Diagram. Check that out and merge with our DB schema. Then check that back in without any issue. If anyone does know what causes the issue above, and possibly how to fix it, that would be great!

ADO and RAD Studio

$
0
0

Hi all,

I'm brand new to RAD Studio (Delphi for win32, free), since I'm coming from "old" Borland Turbo Delphi - I'm a hobby developer, not sure a pro one - and just few days ago I've installe RAD Studio 12.2 for the first time.

I've tried to import a project I wrote years ago With Turbo Delphi, a recipes manager based on ADO databases, but I get (obviously) a component error because RAD Studio can't load TADOTable, TADODb, and so on.

So my question is: is there a way to load ADO components in Rad Studio, and - if yes - where can I find the component suite? And, if not, must I rewrite the whole code using TDB components in place of TADO components.

 

Thanks and cheers,

Melantho

Retrieving real gps status

$
0
0

Hi, how can i retrieve the real status of a gps sensor on android or ios?

TSensorManager returns a LocationSensor

With a timer i'm printing the TSensorState flag, but it returns every time a Ready State even if i disable the Gps and/or the Wifi option on the device.

Thank you

Memory Access Error Delphi Studio 10, 32 bit

$
0
0

In moving code from Studio 5 to Studio 10 I am repeatedly getting many stupid memory access errors.when I try to read or write data to a data structure. Yes, the program does list the form to be created so the structure should be there. I am calling the element with a full path name of unit, structure and element and the compiler is happy. One element was an Int32 which kept dying until I changed it to an Integer (on a 32 bit compiler - duh). Now I am dying on a defined set that works fine under Studio 5. Is there an update to fix these compiler errors? Have I exceeded a memory size? Can't believe that. The stack is set for 16 meg. All unit are included in the program list and all forms are set to auto create.

 

How to enable Windows Authentication for HTTP Requests from Delphi

$
0
0

Hi,

We are making web http requests from our Delphi client. This works fine for Anonymous authentication. But we now want to go with windows authentication for our new requirement. For some reason, this do not work for us and the client windows credentials is not coming to the server as we would expect.

Anyone have any idea what could be going wrong when http request is made from the Delph client with Windows Authentation set as enabled in IIS please? We would expect the client windows credentials to reach the server side for us to do the authentication. 

This works fine when we tried the same URL and same http requests in Fiddler and Postman. So there is something which Delphi is missing?

How Delphi client application provides/handles windows credentials?

 

Thanks

Tomy

tomy.chacko@allscripts.com

 

 

 

 

  

Demo Samples no working on 10.2 -- Map, Gyroscope

$
0
0

The Gyroscope demo runs and I can check that the timer code is running but nothing is displayed.

On the Map_Object demo I now get ---------------------------

Error

---------------------------

Unable to install C:\Users\Public\Documents\Embarcadero\Studio\19.0\Samples\Object Pascal\Multi-Device Samples\Device Sensors and Services\Map Type Selector\Android\Debug\Map_ObjectPascal\bin\Map_ObjectPascal.apk.

Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED].

---------------------------

OK   

---------------------------

 

Will try on another PC later today.  Do these samples work for anyone else using 10.2 ?

Clark

 

 


Compile problem

$
0
0

Hi

I have earlier make programs i Delphi6 and Lazarus.

J like Delphi and to try Delphi again I have downloaded and installed the free  Delphi DX 10.2 but when I try to compile a simple VCL form I get de errors below.

 Can some tell what happens?

Thanks.

Eigil Mathiesen

Checking project dependencies...
Compiling SplitView.dproj (Debug, Win32)
MSBuildToolsPath is not specified for the ToolsVersion "14.0" defined at "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\14.0", or the value specified evaluates to the empty string.
[Fatal Error] MSBuildToolsPath is not specified for the ToolsVersion "14.0" defined at "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\14.0", or the value specified evaluates to the empty string.

eror after installing

$
0
0

Hi, After installing C++Builder 10.1 Berlin Starter gives the following error Access violation at address 04C8529B in module 'CommunityToolbar240.blp'. Read of address 00000000.  

Embarcadero Cool Apps Contest

$
0
0

Hi, Two days ago I've published and app in Embarcadero Cool Apps Contest, but Idon't get any answer. Are there any problem? Best, Xavi Pallicera

Compiling HiRedis, the official C Client of the Windows port of Redis with C++ Builder

$
0
0

Hi all,

I'm in the process of building Hiredis, the official C client library for Redis (Windows port of course) using C++ Builder.

Windows port of Redis is a fork maintained by Microsoft Open Tech community and is of course tight to MS compiler and libraries. In fact, there is no luck in trying to compile the source just "out of the box" as Visual Studio does, even if the source is straight standard C (well, at last the original Redis code).

The source can be found here: Windows port of Redis 

I know there is a Delphi client available, but it really sounds sad (and frustrating) to me having to import the Delphi code because the "native C source" cannot be used. No way. That's why I decided to give it a try. 

To compare sources an libraries involved, I'm using C++ Builder 10.1.2 (Berlin Update 2) on one side and Visual Studio Community 2017 on the other side. The basic steps using C++ Builder are:

(Edit: I edited the post and removed all code formatting features because I had problems with it. Also, for the same reason all #include in the post has standard parenthesis instead of "minor and major" chars. Sorry for that.)

  1. Download of source version redis-win-3.2.100
  2. Create a new Static Library project called Hiredis and add some files contained in the "redis-win-3.2.100\deps\hiredis" subfolder: from the deps\hiredis folder:
    • async.c 
    • hiredis.c
    • net.c
    • sds.c

      (from src\Win32_Interop folder):
    • Win32_ANSI.c
    • Win32_Common.cpp
    • Win32_Error.c
    • Win32_EventLog.cpp
    • Win32_FDAPI.cpp
    • Win32_fdapi_crt.cpp
    • Win32_RedisLog.c 
    • Win32_rfdmap.cpp 
    • Win32_Time.c
    • Win32_VariadicFunctor.cpp
  3. Setup the project to use Clang based compiler (not really needed as this should be standard C code, but see later)
  4. Add project conditional defines:
    • _STDC__=1 (required to cut off (re)definition of “off_t” inside stdio.h)  
    • __SSIZE_T_DEFINED=1 (required to cut off (re)definition of type ssize_t inside _stddef.h)  
    • _OFF_T_DEFINED (required to cut off (re)definition of type off_t inside sys\types.h; needs C Standard Header modification, see below.)
  5. Build

The project fails to compile as I said, here is a step by step description of the issues and fixes I used. After each fix I usually compile the single unit or directly build the whole project. Each fix provided must not break the original source which still compiles using MSVC, this will be eventually a requirement when talking about pushing the code to the MSOpen Tech community.

  • [bcc32c Error] Win32_Error.h(37): unknown type name 'size_t'
    Fix: added a conditional block and the relative include to the header that contains that type. 

    #ifdef __BORLANDC__
    #include (stdlib.h)
    #endif

    This error is due to the fact that inside Win32_Error.h there is another include and this header in MS C Runtime Library version contains another include to a Visual C header. (Kudos to Embarcadero C Runtime Library version)

  • [bcc32c Error] stdio.h(56): typedef redefinition with different types ('long' vs 'long long')
    This error is due to the re-definition of the type off_t inside the file win32_types.h provided in the hiredis source.

    Now, according to the info in "win32_types.h" they need to re-define both off_t and _off_t types to match Posix version of Redis.
    But, in order to use this definition without conflicts you need to include this header before any other inclusion of the original header "sys\types.h", which contains the original types definitions under a conditional define (_OFF_T_DEFINED). 

    Win32_types.h will also define _OFF_T_DEFINED to avoid subsequent types re-definitions. (anyway MSVC has an additional conditional define _OFF_T_DEFINED at project level.)

    Now, on MS Visual Studio C Runtime Library, "stdio.h" does not contain "off_t" type definition, that's why it everything works. Moreover, Embarcadero C Runtime Library has no conditional defs to skip off_t and _off_t definitions inside "sys\types.h" as MS does.

    First Fix: I'd rather not modify C Runtime Library headers at all, but at the moment I have no other options here than modifying Embarcadero C Runtime Library header file "sys\types.h" and wrap the off_t type definition with the above mentioned _OFF_T_DEFINED, just as in MS Visual Studion C Runtime headers:

    #ifndef _OFF_T_DEFINED
    #define _OFF_T_DEFINED
    typedef long off_t;
    #endif

  • [bcc32c Error] Win32_variadicFunctor.cpp(61) expected '(' after 'for'
    Fix: replace MS style “for each” with standard C++11 “for ( range_declaration : range_expression )” 

  • [bcc32c Error] Win32_fdapi_crt.cpp(35): use of undeclared identifier '_pipe'
    Fix 1: add #include
    Fix 2: replace functions _setmode(), _isatty() with setmode() and isatty()

  • Win32_time.c/.h errors
    Fix 1: move struct timezone definition from .c to .h
    Fix 2: include time.h in Win32_time.h

  • [CLANG Error] sds.h(53): expected identifier
    The file contains an helper macro to pack structs. The macro uses __pragma() compiler extension to allow the usage of pragma "in-a-macro". According to the compiler documentation, also thanks to this answer on StackOverflow from Remy Lebeau, old BCC32 does not support this statements. But Clang based compilers do. This is the first fix that is tight to Clang compiler, even if we could build a different solution by using #pragma as stated in stakoverflow post by Remy to have BCC32 working.
    Anyway, I was not able to make __pragma() work that way, so I created another macro using _Pragma() instead and that worked fine.

    #if defined(__BORLANDC__) && defined(__clang__)
    #define PACK( __Declaration__ ) _Pragma( "pack(push, 1)" ) _Declaration__ _Pragma( "pack(pop)" )
    #else
    #define PACK( __Declaration__ ) __pragma( pack(push, 1) ) __Declaration__ __pragma( pack(pop) )
    #endif
     
  • [CLANG Error] hiredis.c(1041): conflicting types for 'redisConnectWithTimeout'
    hiredis.h(184): previous declaration is here
    (unresolved)
    As sometime happens the compiler message is not really helpful. In fact the problem is not 'redisConnectWithTimeout' function prototype but rather one of the parameter types used in it, timeval which is defined in "winsock2.h".
    For some strange reason, on MSVC this type definition is known in hiredis.h at function declaration, even if winsock2.h is not included by any of the include entries, nor in any sub-includes. Unfortunately, any inclusion of winsock2.h leads to an incredible amount of other errors which make me think about searching for another solution.

  • [bcc32c Error] types.h(65): expected unqualified-id (unresolved)
  • [bcc32c Error] types.h(69): no member named 'off_t' in namespace 'std' (unresolved)
    At last the second error comes from the conditional define to wrap off_t. 

Here is where I lay by now, welcome contributions from anyone can help.

Thanks.

Alex B.



FireDac + MS SQL + Instead of Triggers

$
0
0

Hello,

I need some help getting the value of identity after a insert using instead of trigger.

The id field of dataset is cofigured like TFDAutoIncField.

Without instead of insert Trigger

Articulos.Insert;

Articulos.Post;

result := Articulos.FieldByName('ID').AsInteger; ----> Value correct

 

With Instead of insert trigger

result := Articulos.FieldByName('ID').AsInteger; ----> Always 0 after post.

If i use the output clause on the trigger without into clause it works but then i can't have After trigger.  And if i use output with into then need table and it does not work.

IS there any posible configuration that allows the field to have the correct value after post using instead of triggers?

How do I get our Delphi app to run on Mac OS X

$
0
0

Please excuse this very basic question.

We have an app that was written a while back in Delphi and run on Windows.

Is it possible either ;

a) compile on Windows to run on Mac OS X

or

b) simply take the source code across to a Mac with a Mac Version of Delphi (does it exist ?) and compile for that platform ?

thanks

Mark

 

C++ Builder 6 project

$
0
0

Hi!

I've been assigned the task to make an old C++ Builder 6 project build again. Some questions:

1. Is it even possible to obtain the C++ Builder version 6?

2. Even if I can obtain a version 6, is it even possible to run it in Windows 10?

3. It doesn't look like version 10 support this older .bpr project format, so I guess I can't import it that way?

 

Regards,

                 Johan.


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(

How do I 'plug in' video codecs?

$
0
0

Hello. I am creating an app in RAD Studio XE5, using Delphi. I want to select and play a video, but cannot do so for the latest formats. I'm guessing that I need to plug the latest codecs into my code, but this is beyond me. Can anybody help? Thanks.

Application Deployment

$
0
0

Hi, I need supply export library of my dll to other teem working on VC.

Witch tool can convert the library from OMF to COFF format?

Thank You.

Android option missing in 10.2

$
0
0

Hello there.

After having upgraded to Delphi 10.2 a couple of months ago, I now have to continue work on an Android project which is a few years old. I have recently worked on that project using Delphi 10.1 about 6 months ago.

This time around I have no way to select the Android platform. Can anyone help?

I cannot select the Android platform for my old project.
When I try a new multiplatform application (blank), I get the same: no way to add the Android platform.

I only get Windows 32 and Windows 64.
My setup:
Windows 10 pro 64bit
Embarcadero® Delphi 10.2 Version 25.0.26309.314
+mobile developer license visible in the license manager

In the platform manager I have installed
+Delphi Android Professional
+Android SDK 24.3.3 - NDK r9c
+Java development kit 1.8

 

Screenshots attached below:

 

 

 

Delphi Android: Downloaded App from App Store run (Google Play) shows only launch image

$
0
0

Dear Embarcadero Team,

Delphi Android:  Downloaded App from App Store run (Google Play) shows only launch image 
I have a big problem. The App Stammkunde: doesn't work as deployed, released App in the App Store. 
When I load the App in Debug Mode on my device it works fine.
https://play.google.com/store/apps/details?id=at.thomalla.Stammkunde
Please help - it is a nightmare!

Kind regards
Valentin Thomalla
CEO / Developer

thomalla.at Informatik GmbH
Mozartplatz 1
5640 Bad Gastein
Austria

 

Viewing all 2504 articles
Browse latest View live


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