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

Delphi XE7 crash at shutdown - access violation rtl210.bpl - by: Mattia

$
0
0
Goodmorning,

some days ago I have installed Delphi Tokyo 10.2.3. It works fine, without problems.
On the same machine, I had installed Delphi XE7 also.
The strange thing (it is a bug?) is that now, when I close the Delphi XE7 IDE, I get an access violation at the package rtl210.bpl.



Had somebody else faced to the same issue?
I read around that it is an old issue about the FMX Standard Component... but it is not that case.

Thank you,

Regards

boost::any_cast to an object from a DLL - by: Markus

$
0
0
In a DLL I have a class foo:

class __declspec(dllexport) foo {
// ...
};

In a project I use this class:

class __declspec(dllimport) foo {
// ...
};

All works fine unless I use it with boost::any:

foo x;
boost::any a = x;
foo y = boost::any_cast<foo>(a);

The call of any_cast always runs into a stack overflow error.
Any ideas for this behavior? (RTTI problem?)

Markus

Stuck after "upgrade" from 10.2.2 to 10.2.3 - by: Henrik

$
0
0
OMG I hate the dreadful Delphi installation

Using the web install and after the uninstallation of the previous version, I got as far as this during the web installation. Now I'mk stuck with a "not" installed version which doesn't appear installed in add/remove programs, but where the web installer halts and cannot continue :/
So I have tried to figure out what makes it think Delphi is still installed - but no luck so far finding the "trigger".
Followed this article
community.embarcadero.com/article/articl...elphi-c-builder-10-2
Still no luck

Any good advice will be appreciated.

SetActiveTabWithTransition inside of closure of one thread Rad 10.2.3 Android - by: Andres

$
0
0
Hi guys, I have a little problem using SetActiveTabWithTransition inside of a method called from a thread using synchronize. it cause some times that app not response, but not throw exceptions or chashes. to reproduce the error I've create a small project.

code explain:

typedef void __fastcall(__closure *MyClosure)(); // closure to use on thread as callback

class MyThread: public TThread {
private:
MyClosure closure; // member that hold the closure
public:
MyThread(MyClosure func) : TThread(false) {
FreeOnTerminate = true;
closure = func;
}
void __fastcall Execute() {
Synchronize([this]{
closure(); //just call a closure inside a thread
});
}
};


void __fastcall TForm3::ClosureChangeTab() { // method that will be called from thread
TabControl1->SetActiveTabWithTransition(TabItem2, TTabTransition::Slide);
}
//
void __fastcall TForm3::Button1Click(TObject *Sender)
{
MyThread *th = new MyThread(this->ClosureChangeTab);
}
//


just open and run on Android device.

If any one have a solution or some work around to acomplish this code please let me know.
note : to reply the error you need try many times ~ > 8 times.

Regards.

SetActiveTabWithTransition inside of closure of one thread Rad 10.2.3 Android - by: Andres

$
0
0
Hi guys, I have a little problem using SetActiveTabWithTransition inside of a method called from a thread using synchronize. it cause some times that app not response, but not throw Exceptions or chash. to reproduce the error I've create a small project.

code explain:

typedef void __fastcall(__closure *MyClosure)(); // closure to use on thread as callback

class MyThread: public TThread {
private:
MyClosure closure; // member that hold the closure
public:
MyThread(MyClosure func) : TThread(false) {
FreeOnTerminate = true;
closure = func;
}
void __fastcall Execute() {
Synchronize([this]{
closure(); //just call a closure inside a thread
});
}
};


void __fastcall TForm3::ClosureChangeTab() { // method that will be called from thread
TabControl1->SetActiveTabWithTransition(TabItem2, TTabTransition::Slide);
}
//
void __fastcall TForm3::Button1Click(TObject *Sender)
{
MyThread *th = new MyThread(this->ClosureChangeTab);
}
//


just open and run on Android device.

If any one have a solution or some work around to acomplish this code please let me know.
note : to reply the error you need try many times ~ > 8 times.

Regards.

TIWURLWindow - by: Claudiney

$
0
0
Hello,
How to get the contents of the TIWURLWindow Delphi page?

Authentication for installation of Delphi Berlin 1 - by: Alisson

$
0
0
<pre id="tw-target-text" class="tw-data-text tw-ta tw-text-small" dir="ltr" style="text-align: left; height: 144px;" data-placeholder="Tradução" data-fulltext=""><span lang="en">I'm trying to install Delphi Berlin on a computer where I work, but it
asks for this authentication. I already installed it on my notebook and
did not ask for this authentication. What could be causing this problem?
</span><span lang="en"> </span></pre>

accessing network files from Android - by: Etienne

$
0
0
Delphi XE10 Tokyo

Hi,

I would like to access a file located on the network from my android apps. What path should I use?

Here is the path used for a win32 target Path:='\\192.168.0.10\Test\Data';

Thanks.

Etienen.

Delphi XE10 Tokyo - by: Etienne

$
0
0
Hi,
I would like to access a file located on the network from an android app. What is the path to be used?

Let say that the file is l \\192.168.0.10\Test\Test.txt

Thanks.
Etienne.

Upgrading Delphi from v10.2.2 to v10.2.3 broke TBannerAd - by: Inmatrix

$
0
0
Today I upgraded from Delphi v10.2.3 (from v10.2.2), everything seemed fine until I tried running my Android app that includes the TBannerAd component. Now when calling TBannerAd's "LoadAd" method, I get an exception:
----
Project XYZ.apk raised exception class EJNIException with message 'java.lang.IllegalStateException: The meta-data tag in your app's AndroidManifest.xml does not have the right value. Expected 4323000 but found 7095000. You must have the following declaration within the <application> element: <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />'.
----
I looked at the AndroidManifest.xml file and indeed the "7095000" value is in there, but I'm not sure where this number is generated. Rebuilding my code regenerates AndroidManifest.xml and inserts the "7095000" value, so I can't directly edit the XML file.

Is there a solution to this? Some setting I missed that got reset during installing?

64 bit debugging - by: Ed

$
0
0
I'm am mainly using Seattle, but I tested 10.2.3 for debugging a 64 bit application and found that the IDE made some mistakes. (For example, the value of a variable seemed way off so I added a CodeSite message just before the break and CodeSite gave me the value I anticipated and the IDE continued to be wrong).

Are there known issues with debugging 64 bit applications in the IDE?
--
Aside, what happened to the old forums that have been around forever? Are they really gone?

Thank you,

Ed Dressel

64 bit debugging - by: Ed

$
0
0
Argh, this web page updated right in the middle of my post (2nd try on this post).
--
I tried using 10.2.3 for debugging a 64 bit app and found it buggy. Specifically, I was trying to evaluate a variable and the IDE reported a value I didn't think it could possibly be. When I sent it to CodeSite, the value was what I expected.

Was this an anomoly or are others seeing this as well? Is debugging in Win64 solid?
--
Aside, it has been a few years since I posted in the forums and I sure miss the old format (something I used since way back in the CompuServe days--anyone remember that?). Is it really gone? I much preferred the community format.

Thank you,

Ed Dressel

Datasnap REST XE4 and Heavyweight Callbacks - by: Júlio César

$
0
0
Hi people,

I am implementing a REST server with default datasnap.

I've been looking at the callback feature using the HTTP long polling technique and am curious about the features of this in Delphi.

Today, I've already been able to send a message by BroadcastMessage method and retrieve it in a basic JavaScript Client. My doubts are:

1. Does the server know which clients are "connected"?
2. Can I retrieve a list of these "connected" clients?
3. Can you tell if a client has "disconnected"?
4. Where do I get relatively good material to study about this on the web?

Thank you very much to all who can help.
Any questions about how to implement the basics of callback in REST, I'm here to give a help too.

Thank you so much!

Datasnap callback session timeout? - by: Amit

$
0
0
I followed the following guide:
edn.embarcadero.com/article/41374

Basically it seems to do the work it promise.
Yet, after leaving the client idle for a couple of hours, the client looses the Sever Datasnap Callback notification to it.
Do callbacks got session timeout? What am I missing there?

Issues with *.DRC files (differences after build and running in Debug mode) - by: Lukasz

$
0
0
Dear All,

I've been experiencing issues with nit correctly build executables in a project I'm working on already for some time now.
I'm using Delphi 2007.
One day after making a build executable started to behave strangely giving access violation errors.
What I found is that I can go around the problem by putting a breakpoint in a first line of code in a method when called causing that error, then after simply going though that line in debugger everything is behaving correctly again (executable can be run outside the IDE and all behaves correctly).
What I found is that *.DRC file directly after the build and after stopping with breakpoint are different (even so I use Debug configuration for Build itself also).

I understand that during every build made DRC file is produced and differences can happen (order of resources, different values for them depending on the build process etc.)
I see some values are the same, some are different and the biggest difference I see in the paths (relatives and absolutes).

example lines from DRC files below:

NOK:
#define IdResourceStringsCore_RSConnectTimeout 63776
#define IdResourceStringsCore_RSAlreadyConnected 63777

/* C:\MedisoftWin2007\Expair129\Db\DataMod.DFM */
OK:
#define SOAPConst_SNoErrorDispatch 63776
#define SOAPConst_SEmptyStream 63777

/* Db\DataMod.DFM */
To be honest not sure if those which looks like comments are even taken into account, but after spending already some time I make no more assumptions.

I really run out of any ideas what can be wrong over here.
I don't think that the code itself cause that, it was not changed and was performing correctly, I know that theoretically it could be working by coincidence until now, but it wouldn't explain why after debugging executable is fixed by some miracle.

If you need any further details how my project or IDE is configured please let me know and I can check what's required.

Thank you very much for all your help and ideas what can cause such behavior.

Kind regards,
Lukasz

FireDAC, MySQL - by: Jim

$
0
0
Can someone please straighten out the following query
so it will execute without erroring out? I think you can
tell what I'm trying to do.
{code}
if listProviders.Text = 'All Providers' then
begin
iQuery := TFDQuery.Create( AConnection );
with iQuery do
begin
Connection := AConnection;
SQL.Add( 'Select Invoice.Invno, Invoice.Clinno, Invoice.Date, ' );
SQL.Add( 'SUM( Earned.CommAmt ) to nCommish ' );
SQL.Add( 'from Invoice left join ' );
SQL.Add( 'Earned on Earned.Invno = Invoice.Invno ' );
SQL.Add( 'where Invoice.CommSelect = true Group by Invoice.Invno' );
Open;
numCommission.Value := FieldValues;
Free;
end;
end;
{code}
Thanks,
Jim Sawyer

Delphi Tokyo 10.2.3 Code Insight a new old issue AGAIN !!! - by: ALEXANDRE TAKASHI

$
0
0
Hello EMBARCADERO, I have just installed the new version above and after opened a Delphi 7 project on it, I noticed that Code Insight does not working properly.
Well, looking for a resolution, I found a post that could be an array declaration, so stranger thing...
Finally... I've discovered that changing the uses units from implementation to interface and it solved, but remains the MILLENIUM ULTIMATE QUESTION... why?!?
In another test with a brand new form in the same project, after inserting an existing custom unit, the Code Insight stopped working again, even in the both sections... and, again, remains the UNIVERSAL BLOWING MIND DOUBT... why...?!?
What's firing the BUG ?!? A class... a declaration... a plus mouse click... ?
That's an UNSOLVING BUG, that's it ?!?

Sorry... no more patience...

Returned Bluetooth Gatt Status - by: james

$
0
0
When you do a BLE characteristic read, the handler of OnCharacteristicRead receives the following parameters:

Sender is the remote device that provides the characteristic.
ACharacteristic is the characteristic that has been read.
AGattStatus is the exit status of the read operation.

The docwiki says the value of AGattStatus can be
TBluetoothGattStatus = (Success = 0, ReadNotPermitted = 2, WriteNotPermitted = 3, InsufficientAutentication = 5, RequestNotSupported = 6, InvalidOffset = 7, InvalidAttributeLength = 13, InsufficientEncryption = 15, Failure = 257);

However I am consistently getting 17. Does anyone know why this is.

Thanks

RAD Server developer license - by: Scott

$
0
0
Is there an actual developer license that needs to be installed when setting up the development RAD Server environment?

I'm using RAD Studio (Delphi) 10.2 Tokyo on Windows 8.1.

I was following the docwiki on "Configuring Your EMS Server on Windows" and ran into 2 differences from the docwiki.

1. I Never got the "Database Creation" page. The only field that I changed from the defaults was the DB File Directory. I even restarted the wizard and took all defaults and still didn't get this page.

2. I went ahead and clicked the Finish button and I got the following message: "You are configuring EMS to be used with in instance of Interbase that does not have an EMS license. Unlicensed installation have limited access to EMS features. Continue installation without a license?" I'm suspicious that this error is caused by #1. Even if it is, I don't know what I need to do to resolve it.

Can someone please let me know if this is to be expected or what I need to do to resolve this?

Thanks in advance.

Install Interbase on Linux for RAD Server - by: Chee Yang

$
0
0
I have a RAD server single site license for RAD Studio 10.2.2 architect version with this announcement .

I have some question on where and how to deploy the license. I have only one chance to install with license. So I want to make it right to not waste the license.

I know the RAD Server use Interbase server as system database. I will only use Interbase server for RAD server only. My application run on RAD server will not use Interbase server.

1. Which Interbase Sever can I use for the "<strong style="color: #666666; font-family: Helvetica, Arial; font-size: 11px;">RAD Server Single Site[/b]" license? Interbase XE7 or Interbase 2017 or both?

2. Can I use Linux version of Interbase Server for the RAD server system database with my license?

3. Can I deploy in this setup with my License?

Machine A on Linux: Interbase as system database (XE7 or 2017?)

Machine A on Linux: Apache Server + RAD Server



4. Is the "RAD Server Single Site" license register to Interbase server? I can't find any license registration for the EMS RAD server.

Thank you.
Viewing all 3677 articles
Browse latest View live


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