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

email multipart/alternative how can I get data from this part? - by: Romy

$
0
0
I receive emails with two attachments (PDF). The content type of the two parts is 'text/plain' and 'multipart/alternative'.
I have no plan and found no example how I can get data from this email part.
For an email with just one attachment following code works:
if (Message01.MessageParts.Items[a]) is TIDAttachment then
begin
TIDAttachment(Message01.MessageParts.Items[a]).savetofile
(inttostr(i)+TIDAttachment(Message01.messageParts.Items[a]).filename);
attachment:=TRUE;
end

The content type of the part is 'application/pdf',

Can somebody show me a code expample for working with "multipart/alternative"?

Thanks,
Romy (Samashy)

Add a field at Run Time - by: Doug

$
0
0
I am using ADS (Sybase - the old Advantage Database) tables with FireDac. I want to add fields at run time. In the past with the ADS components I used a TAdsQuery QueryTemp component

QueryTemp->SQL->Text = "Alter table Events add NewField integer";
QueryTemp->ExecSQL();

The code above works with fine with TAdsQuery. But my new application uses FireDac with ADS tables and the above code fails and throws an exception.

I also tried adding the field directly from the TFDTable component

TFDTable TableEvents component exists on the Datamodule form

TableEvents->FieldDefs->Add("NewField", ftInteger, 0, false); // Field is not created, no exception is thrown

Please let me know what I am doing wrong. Thank you!

Looking for Delphi Training - by: Srikanth

$
0
0
Hi. I am looking for a certified delphi training. Does any one in this forum know of a website or some one who is approved to train. Online/In Class both work.

Community Edition - no MongoDB driver - by: Emailx45

$
0
0
its easy install some components from another edition.
just copy all files (sources, dcu, bpl, dcp, any others) from one edition like Archtectic and install it in CE edition. using INSTALL PACKAGE option.

confirmed by me.

why it works?
because it is registered, then, if the new IDE dont take care about this, its ok for install the BPLs. but IS ILEGAL

if the components have sources, then you dont will have problems (or almost)

in case, I have tested REST and FIREDAC all components suite installed in Delphi CE 10.2.3 using Arch files... (only for test ok... not in production.. I dont need it - CE)

How to get "Raize Components" (Konopka Signature VCL Controls) - by: Paul

$
0
0
Hi All,

I am installing the latest version of Delphi (10.2.3) but it doesn't have these controls included in the install. I have a subscription with Embarcadero, which I understand gives me access to these components.

Can anyone tell me where to get the components?

Thanks,
Paul

Is DataSnap free of charge or is it a limit before payment is required? - by: Kai Inge

$
0
0
I use Firebird and Dewart components, but if DataSnap do the same job and for free I will consider using time to learn how to use it.
But if it's free only to some limit, I will stick with Firebird.

Thanks in advance for any answers.

I have Delphi Tokyo 10.2.3

:)
Kai Inge

FireDAC and MS SQL Server - by: Keith

$
0
0
I'm running Windows 7 SP1 64 bit. I just installed D10.2 Tokyo. I'm also using MS SQL 2012 for the bulk of my clients. I added a FireDAC connection object but there's no MS SQL option in the connection wizard. So I looked here: http://docwiki.embarcadero.com/RADStudio/Tokyo/en/Connect_to_Microsoft_SQL_Server_(FireDAC)



I downloaded and ran msodbcsql.msi (yes, the 64 bit one, it won't let you even run the 32 bit one if you are on a 64 bit machine) from here: https://www.microsoft.com/en-us/download/details.aspx?id=36434 which I thought I already had and discovered I did. I ran the "repair" option during installation and I still don't have an MS SQL option in my FireDAC connection object.



Any ideas on what I need to do to make this work?



Thanks,



Keith

Android Firemonkey application crashing when user closes virtual keyboard - by: Nathan

$
0
0
Hi,

We have a Delphi firemonkey application that works fine in windows. However in android if the user closes the keyboard the application crashes with a segmentation fault (11).

Test phone is running 7.0.
Call stack:

Fmx.Utils.TNonReentrantHelper.EnterSection(0x8f8b5610,@0x120: <error reading variable>)
Fmx.Utils.TNonReentrantHelper.Execute(0x8f8b5610,@0x120: <error reading variable>,0x8bc88c94)
Fmx.Forms.TCommonCustomForm.SetFocused(nil,nil)
Fmx.Platform.Android.TWindowManager.KeyUp(unsigned short&, char16_t&, System.Set<System.Classes.System_Classes__1, (System.Classes.System_Classes__1)0, (System.Classes.System_Classes__1)10>, bool).HideVKB(void*)(@0xbeae290c: {})
Fmx.Platform.Android.TWindowManager.KeyUp(0x8d0b08c0,0x8cbb0000,false)
Fmx.Platform.Android.TAndroidTextInputManager.HandleAndroidKeyEvent(0x8cbb03a0,0x8bdd9030)
Fmx.Platform.Android.TPlatformAndroid.HandleAndroidInputEvent(0x8d0a1ca0,0x9d2fed40,0x8bdd9030)
Androidapi.Appglue.TAndroidApplicationGlue.InputEventHandler(45,1,nil)
:AD3FBF6C ??
:AD3FBF6C ??

Does not matter if user types in box or not.
Has anyone else experienced this?

Thanks

Delphi Android compilation never success - 80 errors - by: dsafsdv

$
0
0
Dear community,

please can someone help me with Delphi Berlin? I can not build/run any Android project (even new empty project). All SDK/NDK paths are correct. SDK 24 ended with 100 errors. SDK 25 with 80 errors.

Please send me answers to PM. I not know how this weird forum work. Thanks.

Errors:

Checking project dependencies...
Building Project1.dproj (Debug, Android)
brcc32 command line for "Project1.vrc"
c:\program files (x86)\embarcadero\studio\18.0\bin\cgrc.exe -c65001 Project1.vrc -foProject1.res
dccaarm command line for "Project1.dpr"
c:\program files (x86)\embarcadero\studio\18.0\bin\dccaarm.exe -$O- --no-config -B -Q -TX.so -AGenerics.Collections=System.Generics.Collections;
Generics.Defaults=System.Generics.Defaults;WinTypes=Winapi.Windows;WinProcs=Winapi.Windows;DbiTypes=BDE;DbiProcs=BDE;DbiErrs=BDE -DDEBUG
-E.\Android\Debug -I"c:\program files (x86)\embarcadero\studio\18.0\lib\Android\debug";
C:\Users\Alex\Documents\Webrtc_Delphi_Trial\Packages\D101\Android;C:\Users\Alex\Documents\Webrtc_Delphi_Trial\Sources
-LEC:\Users\Public\Documents\Embarcadero\Studio\18.0\Bpl\Android -LNC:\Users\Public\Documents\Embarcadero\Studio\18.0\Dcp\Android -NU.\Android\Debug
-NSSystem;Xml;Data;Datasnap;Web;Soap; -OC:\Users\Alex\Documents\Webrtc_Delphi_Trial\Packages\D101\Android;
C:\Users\Alex\Documents\Webrtc_Delphi_Trial\Sources -RC:\Users\Alex\Documents\Webrtc_Delphi_Trial\Packages\D101\Android;
C:\Users\Alex\Documents\Webrtc_Delphi_Trial\Sources -U"c:\program files (x86)\embarcadero\studio\18.0\lib\Android\debug";
C:\Users\Alex\Documents\Webrtc_Delphi_Trial\Packages\D101\Android;C:\Users\Alex\Documents\Webrtc_Delphi_Trial\Sources
--libpath:C:\Users\Public\Documents\Embarcadero\Studio\18.0\PlatformSDKs\android-ndk-r9c\sources\cxx-stl\gnu-libstdc++\4.8\libs\armeabi-v7a;
C:\Users\Public\Documents\Embarcadero\Studio\18.0\PlatformSDKs\android-ndk-r9c\platforms\android-14\arch-arm\usr\lib
--linker:C:\Users\Public\Documents\Embarcadero\Studio\18.0\PlatformSDKs\android-ndk-r9c\toolchains\arm-linux-androideabi-4.8\prebuilt\windows\bin\arm-linux-androideabi-ld.exe
-V -VN -NO.\Android\Debug Project1.dpr
[DCC Error] E2597 C:\Users\Public\Documents\Embarcadero\Studio\18.0\PlatformSDKs\android-ndk-r9c\toolchains\arm-linux-androideabi-4.8\prebuilt\windows\bin\arm-linux-androideabi-ld.exe: error: cannot find -lrtlhelper
C:\Users\Public\Documents\Embarcadero\Studio\18.0\PlatformSDKs\android-ndk-r9c\toolchains\arm-linux-androideabi-4.8\prebuilt\windows\bin\arm-linux-androideabi-ld.exe: error: cannot find -lpcre
C:\Users\Public\Documents\Embarcadero\Studio\18.0\PlatformSDKs\android-ndk-r9c\toolchains\arm-linux-androideabi-4.8\prebuilt\windows\bin\arm-linux-androideabi-ld.exe: error: cannot find -lcompiler_rt
c:\program files (x86)\embarcadero\studio\18.0\lib\Android\debug\SysInit.o(.ARM.exidx.text._ZN7Sysinit8__mallocEj+0x0): error: undefined reference to '__aeabi_unwind_cpp_pr0'
C:\Builds\tp\runtime\rtl\sys/SysInit.pas:1144: error: undefined reference to '_Unwind_Resume'
c:\program files (x86)\embarcadero\studio\18.0\lib\Android\debug\SysInit.o(.ARM.exidx.text._ZN7Sysinit8_InitExeEPv+0x0): error: undefined reference to '__aeabi_unwind_cpp_pr0'
c:\program files (x86)\embarcadero\studio\18.0\lib\Android\debug\System.o(.ARM.exidx.text._ZN6System7TMethod14_op_InequalityERKS0_S2_+0x0): error: undefined reference to '__aeabi_unwind_cpp_pr1'
c:\program files (x86)\embarcadero\studio\18.0\lib\Android\debug\System.o(.ARM.exidx.text._ZN6System7TMethod15_op_GreaterThanERKS0_S2_+0x0): error: undefined reference to '__aeabi_unwind_cpp_pr0'
c:\program files (x86)\embarcadero\studio\18.0\lib\Android\debug\System.o(.ARM.exidx.text._ZN6System7TMethod22_op_GreaterThanOrEqualERKS0_S2_+0x0): error: undefined reference to '__aeabi_unwind_cpp_pr1'
c:\program files (x86)\embarcadero\studio\18.0\lib\Android\debug\System.o(.ARM.exidx.text._ZN6System7TMethod12_op_LessThanERKS0_S2_+0x0): error: undefined reference to '__aeabi_unwind_cpp_pr0'
c:\program files (x86)\embarcadero\studio\18.0\lib\Android\debug\System.o(.ARM.exidx.text._ZN6System7TMethod19_op_LessThanOrEqualERKS0_S2_+0x0): error: undefined reference to '__aeabi_unwind_cpp_pr1'
C:\Builds\tp\runtime\rtl\sys/System.pas:17331: error: undefined reference to '_Unwind_Resume'
C:\Builds\tp\runtime\rtl\sys/System.pas:16517: error: undefined reference to '_Unwind_Resume'
C:\Builds\tp\runtime\rtl\sys/System.pas:16554: error: undefined reference to '_Unwind_Resume'
c:\program files (x86)\embarcadero\studio\18.0\lib\Android\debug\System.o(.ARM.exidx.text._ZN6System2__ENS_15DelphiInterfaceINS_10IInterfaceEEE5_GUIDPv15+0x0): error: undefined reference to '__aeabi_unwind_cpp_pr1'
C:\Builds\tp\runtime\rtl\sys/System.pas:7240: error: undefined reference to '__aeabi_ul2d'
C:\Builds\tp\runtime\rtl\sys/System.pas:7242: error: undefined reference to '__aeabi_ul2d'
C:\Builds\tp\runtime\rtl\sys/System.pas:7435: error: undefined reference to '__aeabi_ul2d'
C:\Builds\tp\runtime\rtl\sys/System.pas:7437: error: undefined reference to '__aeabi_ul2d'
c:\program files (x86)\embarcadero\studio\18.0\lib\Android\debug\System.o:System:function System::fegetexceptflag(unsigned short*, unsigned int): error: undefined reference to 'math_fegetexceptflag'
c:\program files (x86)\embarcadero\studio\18.0\lib\Android\debug\System.o:System:function System::fesetexceptflag(unsigned short*, unsigned int): error: undefined reference to 'math_fesetexceptflag'
c:\program files (x86)\embarcadero\studio\18.0\lib\Android\debug\System.o:System:function System::fegetround(): error: undefined reference to 'math_fegetround'
c:\program files (x86)\embarcadero\studio\18.0\lib\Android\debug\System.o:System:function System::fesetround(unsigned int): error: undefined reference to 'math_fesetround'
c:\program files (x86)\embarcadero\studio\18.0\lib\Android\debug\System.o:System:function System::fegetenv(void*): error: undefined reference to 'math_fegetenv'
c:\program files (x86)\embarcadero\studio\18.0\lib\Android\debug\System.o:System:function System::fesetenv(void*): error: undefined reference to 'math_fesetenv'
C:\Builds\tp\runtime\rtl\sys/System.pas:7887: error: undefined reference to '__aeabi_l2d'
C:\Builds\tp\runtime\rtl\sys/System.pas:10280: error: undefined reference to '__aeabi_ldivmod'
C:\Builds\tp\runtime\rtl\sys/System.pas:10281: error: undefined reference to '__moddi3'
C:\Builds\tp\runtime\rtl\sys/System.pas:18173: error: undefined reference to '__aeabi_ldivmod'
C:\Builds\tp\runtime\rtl\sys/System.pas:18177: error: undefined reference to '__aeabi_ldivmod'
C:\Builds\tp\runtime\rtl\sys/System.pas:18201: error: undefined reference to '__aeabi_ldivmod'
c:\program files (x86)\embarcadero\studio\18.0\lib\Android\debug\System.o:System:function System::_Unwind_RaiseException(_Unwind_Exception&): error: undefined reference to '_Unwind_RaiseException'
c:\program files (x86)\embarcadero\studio\18.0\lib\Android\debug\System.o:System:function System::__aeabi_unwind_cpp_pr2(int, _Unwind_Exception&, _Unwind_Context&): error: undefined reference to '__aeabi_unwind_cpp_pr2'
c:\program files (x86)\embarcadero\studio\18.0\lib\Android\debug\System.o:System:function System::_RestoreCoreRegs(System::TReg&): error: undefined reference to '_RestoreCoreRegs'
C:\Builds\tp\runtime\rtl\sys/System.pas:20879: error: undefined reference to 'get_cxx_class_name'
C:\Builds\tp\runtime\rtl\sys/System.pas:33808: error: undefined reference to '__umoddi3'
C:\Builds\tp\runtime\rtl\sys/System.pas:33810: error: undefined reference to '__aeabi_uldivmod'
C:\Builds\tp\runtime\rtl\sys/System.pas:34266: error: undefined reference to '__aeabi_idiv'
C:\Builds\tp\runtime\rtl\sys/System.pas:34748: error: undefined reference to '__aeabi_idiv'
C:\Builds\tp\runtime\rtl\sys/System.Types.pas:2374: error: undefined reference to '__aeabi_l2d'
C:\Builds\tp\runtime\rtl\sys/System.Types.pas:2375: error: undefined reference to '__aeabi_l2d'
C:\Builds\tp\runtime\rtl\sys/System.Types.pas:2591: error: undefined reference to '__aeabi_l2d'
C:\Builds\tp\runtime\rtl\sys/System.Types.pas:1942: error: undefined reference to '__aeabi_l2f'
C:\Builds\tp\runtime\rtl\sys/System.Types.pas:1942: error: undefined reference to '__aeabi_l2f'
C:\Builds\tp\runtime\rtl\sys/System.SysUtils.pas:30417: error: undefined reference to '__aeabi_l2f'
C:\Builds\tp\runtime\rtl\sys/System.SysUtils.pas:30477: error: undefined reference to '__aeabi_ul2f'
C:\Builds\tp\runtime\rtl\sys/System.SysUtils.pas:5196: error: undefined reference to '__aeabi_idiv'
C:\Builds\tp\runtime\rtl\sys/System.SysUtils.pas:5197: error: undefined reference to '__modsi3'
C:\Builds\tp\runtime\rtl\sys/System.SysUtils.pas:8023: error: undefined reference to '__aeabi_uldivmod'
C:\Builds\tp\runtime\rtl\sys/System.SysUtils.pas:16821: error: undefined reference to '__moddi3'
C:\Builds\tp\runtime\rtl\sys/System.SysUtils.pas:17818: error: undefined reference to '__aeabi_uldivmod'
C:\Builds\tp\runtime\rtl\sys/System.SysUtils.pas:18482: error: undefined reference to '__moddi3'
C:\Builds\tp\runtime\rtl\sys/System.SysUtils.pas:18602: error: undefined reference to '__moddi3'
C:\Builds\tp\runtime\rtl\sys/System.VarUtils.pas:810: error: undefined reference to '__aeabi_l2f'
C:\Builds\tp\runtime\rtl\sys/System.VarUtils.pas:1169: error: undefined reference to '__aeabi_ul2f'
C:\Builds\tp\runtime\rtl\sys/System.Variants.pas:2628: error: undefined reference to '__aeabi_ul2f'
C:\Builds\tp\runtime\rtl\common/System.Generics.Collections.pas:4717: error: undefined reference to '__modsi3'
C:\Builds\tp\runtime\rtl\common/System.Generics.Collections.pas:4838: error: undefined reference to '__modsi3'
C:\Builds\tp\runtime\rtl\common/System.Generics.Collections.pas:5281: error: undefined reference to '__modsi3'
C:\Builds\tp\runtime\rtl\common/System.Hash.pas:1459: error: undefined reference to '__aeabi_uidiv'
C:\Builds\tp\runtime\rtl\common/System.Rtti.pas:3072: error: undefined reference to '__aeabi_idiv'
C:\Builds\tp\runtime\rtl\common/System.Rtti.pas:3619: error: undefined reference to '__aeabi_ul2f'
C:\Builds\tp\runtime\rtl\common/System.Rtti.pas:7575: error: undefined reference to 'rtti_raw_invoke'
C:\Builds\tp\runtime\rtl\common/System.Rtti.pas:10628: error: undefined reference to 'rtti_raw_intercept'
c:\program files (x86)\embarcadero\studio\18.0\lib\Android\debug\System.Rtti.o:System.Rtti:function System::Rtti::AllocFirstStageIntercept(void*, void*, int): error: undefined reference to 'allocate_first_stage_intercept'
c:\program files (x86)\embarcadero\studio\18.0\lib\Android\debug\System.Rtti.o:System.Rtti:function System::Rtti::FreeIntercept(System::Rtti::TMethodImplementation::TFirstStageIntercept*): error: undefined reference to 'free_first_stage_intercept'
C:\Builds\tp\runtime\rtl\common/System.Classes.pas:14885: error: undefined reference to '__aeabi_uldivmod'
C:\Builds\tp\runtime\rtl\android/Androidapi.JNIBridge.pas:378: error: undefined reference to 'DispatchToImport'
c:\program files (x86)\embarcadero\studio\18.0\lib\Android\debug\System.RegularExpressionsAPI.o:System.RegularExpressionsAPI:function System::Regularexpressionsapi::pcre_compile(char const*, int, char**, int*, char const*): error: undefined reference to 'pcre_compile'
c:\program files (x86)\embarcadero\studio\18.0\lib\Android\debug\System.RegularExpressionsAPI.o:System.RegularExpressionsAPI:function System::Regularexpressionsapi::pcre_exec(System::Regularexpressionsapi::real_pcre*, System::Regularexpressionsapi::real_pcre_extra*, char const*, int, int, int, int*, int): error: undefined reference to 'pcre_exec'
c:\program files (x86)\embarcadero\studio\18.0\lib\Android\debug\System.RegularExpressionsAPI.o:System.RegularExpressionsAPI:function System::Regularexpressionsapi::pcre_get_stringnumber(System::Regularexpressionsapi::real_pcre*, char const*): error: undefined reference to 'pcre_get_stringnumber'
c:\program files (x86)\embarcadero\studio\18.0\lib\Android\debug\System.RegularExpressionsAPI.o:System.RegularExpressionsAPI:function System::Regularexpressionsapi::pcre_maketables(): error: undefined reference to 'pcre_maketables'
c:\program files (x86)\embarcadero\studio\18.0\lib\Android\debug\System.RegularExpressionsAPI.o:System.RegularExpressionsAPI:function System::Regularexpressionsapi::pcre_study(System::Regularexpressionsapi::real_pcre*, int, char**): error: undefined reference to 'pcre_study'
c:\program files (x86)\embarcadero\studio\18.0\lib\Android\debug\System.RegularExpressionsAPI.o:System.RegularExpressionsAPI:function System::Regularexpressionsapi::set_pcre_malloc(void*): error: undefined reference to 'set_pcre_malloc'
c:\program files (x86)\embarcadero\studio\18.0\lib\Android\debug\System.RegularExpressionsAPI.o:System.RegularExpressionsAPI:function System::Regularexpressionsapi::set_pcre_free(void*): error: undefined reference to 'set_pcre_free'
c:\program files (x86)\embarcadero\studio\18.0\lib\Android\debug\System.RegularExpressionsAPI.o:System.RegularExpressionsAPI:function System::Regularexpressionsapi::set_pcre_stack_malloc(void*): error: undefined reference to 'set_pcre_stack_malloc'
c:\program files (x86)\embarcadero\studio\18.0\lib\Android\debug\System.RegularExpressionsAPI.o:System.RegularExpressionsAPI:function System::Regularexpressionsapi::set_pcre_stack_free(void*): error: undefined reference to 'set_pcre_stack_free'
c:\program files (x86)\embarcadero\studio\18.0\lib\Android\debug\System.RegularExpressionsAPI.o:System.RegularExpressionsAPI:function System::Regularexpressionsapi::set_pcre_callout(void*): error: undefined reference to 'set_pcre_callout'
c:\program files (x86)\embarcadero\studio\18.0\lib\Android\debug\System.RegularExpressionsAPI.o:System.RegularExpressionsAPI:function System::Regularexpressionsapi::set_pcre_stack_guard(void*): error: undefined reference to 'set_pcre_stack_guard'
[DCC Fatal Error] F2588 Linker error code: 1 ($00000001)
Failed
Elapsed time: 00:02:44.9

How to use TActivityIndicator? - by: Jacek

$
0
0
How to use TActivityIndicator? I do not know how to use this component. I do not see the effect during simple use while running a function in an OnClick event. Does it require some preparation?

About error 0xc000007b when running app - by: Israel

$
0
0
Hello Friends......

I've important information related to apps developed with Rad Studio C++ Builder 10.2.2 and possibly applied to other versions of RAD Studio......this error, is produced when Microsoft C++ Redistributable package is not installed on the destination machine......

I develop an application on Windows 7 that having this packages installed and runs fine:

- Microsoft C++ Redistributable 2005 x86 and x64 bits
- Microsoft C++ Redistributable 2008 x86 and x64 bits
- Microsoft C++ Redistributable 2010 x86 and x64 bits
- Microsoft C++ Redistributable 2012 x86 and x64 bits
- Microsoft C++ Redistributable 2013 x86 and x64 bits
- Microsoft C++ Redistributable 2017 x86 and x64 bits

with all this packages, in windows 7 64 bits app runs fine

then i check in a Windows 10 Installation and when run it, pop up the error 0xc000007b.....

hope this help
Thanks and good bugs

Best Desktop and Web Solution - by: Davide

$
0
0
Hello everybody, I'm starting developing migration from D2007 to Tokio, With D2007 i was used to build and ISAPI.dll Intraweb application for web solution for sharing part of DeskTop app and of course DB access.
With Tokio what is the best way developing for the same result? Consider that .dll ISAPI is fine because I don't need to release source to my customer for web server.

Thanks in advance

About error: Project raised exception class Segmentation fault (11). - by: Emailx45

$
0
0
Scenary:
1 - Windows 10 Pro build 1803 ...(285)
2 - RAD Studio XE10.2.3 Arch (3231)
3 - Smartphone Motorola Moto G4 / Android 7.0 Nougat (last updated 2018)
4 - USB cable / driver by Google (last)

1 - Project Firemonkey
---- 1.1 - just ONE FORM + EMSProvider + PushEvents components!
---- 1.2 - just run it in Debug Mode (F9)
---- 1.3 - in smartphone just click button (back) to close the app and the error occurs!
---- 1.4 - in RAD, use the key F8 to (debug it step-by-step) later many tries I have the call to "unit FMX.PushNotification.Android;" below!

This error is caused by many other factors, however, what I have found in my test is that when running the app in debug mode, at the end of the program the debug makes the appropriate calls to free the memory of the objects created by Delphi, so even though it is a Firemonkey application, Delphi still links the unit "FMX.PushNotification.Android", but in the "Finalization" session, the FMX application calls the procedure "FreeAndNil ()" twice.

And, using F8, it may be noted that the Segmentation (11) error occurs at this point, that is, when the procedure "FreeAndNil ()" is executed.

Probably, the error occurs because the object "being released" no longer exists, because it has already been released by another procedure.

So I believe it's more of a language bug than a programmer bug!

The components is DISABLED / DISACTIVATED, then, it dont call any Google service!

my project test using EMSProvider + PushEvents components [ Click to hide ]






Another thing:
Being a unit to Firemonkey, should not the procedure be called "DisposeOf" instead?







Contrary to unit's claims, even in Android projects, the "Finalization" session continues to run! What really makes sense, therefore, the two sessions "Initialization and Finalization" were created for this purpose!

However, in the source code of RAD Studio says the opposite! Just watch the note!
in fact, it is not called in RELEASE MODE! Well, I think that not! Because in this mode, none error is showed when terminate my app in my phone and going back to RAD!


finalization
   // Note. Finalization not called on Android

I'm not a robot - by: Frank

$
0
0
I lost the post I was working on with this robot test stuff. Can we get rid of this? Please supply an email address of who I can contact about this site.

EMS/RAD Server Console app - How to add, delete or update users and groups? - by: jerry

$
0
0
D10.2

Docwiki indicates there should be buttons on the Console app.

Not seeing any.

Operation Error - install fails. - by: Dennis

$
0
0
I am trying to install delphi 10.2.3 using the web installer. This is on a new PC running windows 10 64-bit.

Originally I started directly from the latest release 3 download radstudio10_2_3_93231.exe and I got an operation error, and no further info. So I uninstalled and started from 10.2.1, installed that, then 10.2.2 plus welcome page patch. All OK. Then tried to run that latest release 3 installer and it fell over almost straight away with Operation Error - possibly when it was dealing with DirectX (that was the last progress message displayed.

This is really frustrating. Any suggestions appreciated.

How install Delphi/C++Builder Community Edition without errors! Its easy - by: Emailx45

$
0
0
How install RAD Studio Community Edition minimizing your problems!

My tip about how minimizing yours problems with RAD Studio Community Edition installation:

1 - Make sure your computer meets the requirements for the desired edition. In this case, for the RAD Studio Community Edition 10.2.3 edition:
www.embarcadero.com/products/rad-studio/tech-spec

2 - Compare editions of RAD Studio to see if it meets your needs:
www.embarcadero.com/products/rad-studio/product-editions
www.embarcadero.com/features/feature-matrix

3 - Know the resources available for the chosen edition:
www.embarcadero.com/resources

4 - For an installation using the MS Windows 10 PRO operating system, and to avoid errors during the installation of the Community Editon edition or any other:

5 - Install the following software on your operating system prior to installing RAD Studio:

a) - Install the .NET 3.5 Framework (use MS Windows Update)
b) - Install DirectX 11 to be able to use Firemonkey (if you want you can install versions 9, 10 or 12) (use MS Windows Update)
c) - Install JAVA SDK / JRE v1.80 (required to develop Android applications) - RAD Studio 10.2.3 does not use versions before or after this
www.oracle.com/technetwork/java/javase/d...wnloads-2133151.html

- Having installed these software, now it's time for you to install RAD Studio Community Edition 10.2.3

Abnormal Program Termination BDS - by: Kevin

$
0
0
I'm using CE 10.2.3. I was building for OSX without issues yesterday (I thought). Now every time I try to do a build for OSX (SDK for OSX 10.14), I get an Abnormal Program termination and the BDS is blown away. Occasionally I get a List Index Out of Bounds (48) error - If I do not make the 10.14 SDK Active:

[50151E0F]{rtl250.bpl } System.Classes.TList.Get (Line 4671, "System.Classes.pas" + 3) + $3
[50C2E98F]{vcl250.bpl } Vcl.Forms.TScreen.GetCustomForms (Line 8387, "Vcl.Forms.pas" + 1) + $5
[50C32A2E]{vcl250.bpl } Vcl.Forms.TApplication.DoActionIdle (Line 11172, "Vcl.Forms.pas" + 2) + $7
[50C32BB4]{vcl250.bpl } Vcl.Forms.TApplication.Idle (Line 11222, "Vcl.Forms.pas" + 10) + $3
[50C31E6F]{vcl250.bpl } Vcl.Forms.TApplication.HandleMessage (Line 10671, "Vcl.Forms.pas" + 1) + $11
[50C32195]{vcl250.bpl } Vcl.Forms.TApplication.Run (Line 10809, "Vcl.Forms.pas" + 26) + $3
[0050BAB2]{bds.exe } bds.bds (Line 214, "" + 7) + $7

Of course if I do make it active the BDS is blown away with Abnormal Program Termination

This is now 100% repeatable. I thought the install might be corrupt, but there is no repair option that I see, just a complete uninstall and reinstall, want to avoid that if I can.

I see in the 10.2.3 release there was an issue that was supposedly fixed:

RSP-19828:
Compiling for OSX results in "Abnormal Program Termination" (bds.exe)
Compiler, Compiler\Delphi, FireMonkey

I've wound the VM back a week or so JUST to make sure, but still getting the error. The code is trivial, a screen with a button, it was working fine two days ago, I still have the version that built and deployed sitting on the macOS VM.

So the fix not in my case, or it has somehow disappeared. Any ideas how I might get over this?

Thank you,
Kevin

Delphi Berlin Android development - unfortunately application has stopped - by: dsafsdv

$
0
0
Dear community,

after complete new (re)instalation of Delphi Berlin I finally build just a simple project for Android platform. But just after launch on emulator, application return message "unfortunately application has stopped " and close itselfs. I tryed different SDKs, tryed multiple emulators but allways end same. Looks like Embarcadero have serious problem with Android support at all and "multiplatform development" is a big lie. If someone had same problem and know how to fix this, just let me know.

Thanks!

Problems with special characters in FireDac JSON streaming - by: Davide

$
0
0
Hello,

I am using the following code for a EMS package and its Delphi client counterpart.
Server:
var
MS: TMemoryStream;
begin
MS := TMemoryStream.Create;
try
SpCustomers.ParamByName('@IdUtente').AsInteger := 20165;
SpCustomers.Open();
SpCustomers.SaveToStream(MS, TFDStorageFormat.sfJSON);
AResponse.Body.SetStream(MS, 'application/json', True);
except
MS.Free;
end;

Client:
var
S: TStringStream;
begin
CustomersBackendEndpoint.Params.Clear;
CustomersBackendEndpoint.Execute;
S := TStringStream.Create(CustomersBackendEndpoint.Response.Content);
try
MTblCusts.LoadFromStream(S, TFDStorageFormat.sfJSON);
MTblCusts.SaveToFile('C:\Temp\Customers.xml', sfXML);
finally
S.Free;
end;

Executing the code I get the following exception:
First chance exception at $7759DDC2. Exception class EFDException with message '[FireDAC][Stan]-719. Invalid JSON storage format. Position [7152]'.

It seems related to the presence of a special char " ° " that exists in the JSON stream as is and not with the correct escape format.
Is there a way to manage this kind of charcters to import the JSON streamed data in the TFDMemTable?

Thank you,
Davide
Viewing all 3677 articles
Browse latest View live


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