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

ACCESS VIOLATION - by: Design

$
0
0
<span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;">Bom Dia. </span></span></span><span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;">Use Delphi 10.2.2 tokyo.</span></span></span></span>

<span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;">.</span></span></span></span>

<span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;">Explicando o meu caso, não meu projeto eu tenho formulários onde minhas funções são, como cálculos de impostos, pesquisa de novos números de lote e assim por diante. </span></span></span><span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;">Então, em todos os programas onde eu preciso de algumas funcionalidades, procuro nesse formulário e antes de acessar o código de uso seguinte.</span></span></span></span>

<span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;">Ex. </span></span></span><span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;">Se FrmMy_Form = Nil então</span></span></span></span>

<span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;">Application.CreateForm (TFrmMy_Form, FrmMy_Form);</span></span></span></span>

<span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;">.</span></span></span></span>

<span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;">No final, eu fecharia com "FrmMy_Form: = nil", então eu comecei a ter problemas quando repetidamente liguei para o mesmo formulário no mesmo programa, por exemplo, sem programa de entrada de notas, quando várias notas foram importadas mais tarde.</span></span></span></span>

<span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;">.</span></span></span></span>

<span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;">Passando "se FrmMy_Form = Nil then" mostrou o formulário como aberto, mas ao que viaja um IBQuery por exemplo do formulário, surgeu a violação de acesso.</span></span></span></span>

<span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;">Então eu criei um programa para listar todos os formulários abertos, para rastrear, e muitas vezes 7, 8 instâncias de FrmMy_Form foram criadas.</span></span></span></span>

<span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;">.</span></span></span></span>

<span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;">Depois de pesquisar na internet, encontrei o comando FreeAndNil (FrmMy_Form) oq baixado da memória, mas abrir e fechar o mesmo, também existe o erro de acesso.</span></span></span></span>

<span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;">.</span></span></span></span>

<span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;">Então, sem final do processo de inserção de várias anotações, verifico dos formulários abertos e tenho dúzias de instâncias abertas do FrmMy_Form, que também acaba de dar um problema.</span></span></span></span>

<span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;">.</span></span></span></span>

<span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;">Estive com esse problema há muito tempo, como usar meu FrmMy_Form sem estes erros de violação de acesso indesejados.</span></span></span></span>

<span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;">.</span></span></span></span>

<span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;"><span style="vertical-align: inherit;">Obrigado.</span></span></span></span>

ACCESS VIOLATION - by: Design

$
0
0
Good Morning. Use Delphi 10.2.2 tokyo.

.

Explaining my case, in my project I have forms where my functions are, such as tax calculations, search for new lot numbers and so on. So in all programs where I need some functionality I search in that form and before accessing use following code.

Ex. If FrmMy_Form = Nil then

Application.CreateForm (TFrmMy_Form, FrmMy_Form);

.

At the end I would close with "FrmMy_Form: = nil", so I started having problems when I repeatedly called this same form in the same program, for example in the program of entry of notes, when several notes were imported later.

.

Passing "if FrmMy_Form = Nil then" showed the form as open, but when accessing an IBQuery for example of that form, the access violation occurred.

So I created a program to list all open forms, to track, and often 7, 8 instances of FrmMy_Form were created.

Forms, Client DataSet, LiveBinding and Android... - by: Andrey

$
0
0
Hello everybody,

It's been several hours that I'm stuck with this.

Here is the situation :

I am developping an Android App.

On my main form I have all my client Datasets that I want to use in my other forms. I've binded them all to my ListView in other forms.

Every thing seems ok because when I activate my Client DataSet manually, data is displayed in the other forms in the designer.

When I run it on windows (32), It works too. But when I launch it on my android device no data is shown.

What is done in my code :

- MainForm : OnCreate : Activating my datasets

OnButtonClick : FOtherForm := TFOtherForm.Create(Application)

FOtherForm.Show

And that's all...



I'm really hoping for some help because I really don't get it this time.



Thanks

Invalid cursor position - by: Sivasubramanian

$
0
0
Hi All,

I'm getting ODBC: "Invalid cursor position" at fetching BLOB's field from Sybase DB using SQLQuery(Inherited from TCustomSQLDataSet).

This issue only appearing in Delphi 10.2. Same code is not getting this error in Delphi 2007.



I would appreciate your valuable suggestion.



Thanks & Regards

Siva

Intraweb - Server Destroy error when config - by: Luis

$
0
0
I have an Intraweb App. developed in XE7 and Intraweb 14.2.7.

The SaveConfig procedure uses FideDac connectors to a database. In the ControllerBaseDestroy I clean some data objets, but before that I try to update the database parameters. But When I try to access the FDConnection (or any Firedac component), an access error arise. It looks like the FireDac Components were destroyed before.

Where is better to execute the config update before the Server Destroys?

Limite de autorização - by: Felipe

$
0
0
Bom Dia, o limite de registro é de 3 computadores, instalei o Delphi Starter em 3 computadores, um deles era uma maquina virtual, e esta maquina foi apaga, como faço pra desautorizar um computador pra poder instalar em outro?

How to convert 32bit project into 64bit one - by: Fatih

$
0
0
hi,

I opened a 32bit project in Delphi 64bit and tried to recompile it by adding win64 as target platform but I think because the project first created in 32bit delphi, add platform button is disabled (gray)

Is there any way I can recompile this project as 64bit application like changin dproj file manually?

Reduced Color Mode and High DPI Scaling Override - by: Stephen

$
0
0
Hi there,

We have a Windows application that we recently recompiled with C++ Builder 10.2.2 Starter Edition (from a previous version) and we are facing two issues with the GUI in Windows 10. (the program has existed for several years and is in full distribution to end users)

First issue reported by our users is when using the program with high DPI settings, the Maximize, Minimize and Close buttons (normally in the top right-hand corner of the screen) are off-screen and can’t be used. This is a display compatibility issue and can be corrected by right-clicking on the .exe icon on the desktop or in Windows Explorer, left clicking ‘Properties’ in the submenu, then selecting the Compatibility tab, ticking the ‘Disable display scaling on high DPI settings’ box, then clicking the ‘OK’ button. That fixes the problem.

The second issue is that any tooltip popups lose their background color in Windows 10 and the text becomes obscured by the graphics and text displaying in the main window behind the tooltip. The fix here is to set Reduced Color Mode to 8-bit (256) color in the Compatibility tab - this restores the solid background color behind the text in the tooltip.

Is there any way we can avoid having our users set these compatibility flags? It gives the impression to users that our program is 'old' or not keeping up with the latest version of Windows.

We've installed RADStudio on Windows 10 - compiled the application and run it on the same machine and are still experiencing these issues.

My thoughts are that there is a Windows 10 compatibility issue with the VCL library, but I'm unable to find any existing information on this issue.

Thanks for any assistance or information anyone can provide on this.

Stephen.

Konopka, can't find it in GetIt Package Manager - by: roberto

$
0
0
In GetIt Package Manager i search for konopka but nothing is found.


I need it quiet urgently. Where i can find it ?


thanks


Roberto

Master Informatica

Duplicate items in the Component Toolbar - by: Matthew

$
0
0
Will someone please tell me how to remove duplicate items (icons) from the component toolbar? I've been putting up with this since I installed C++ Builder 10.2 v 25.0.27659.1188 last year. It doesn't seem to interfere with the compiler - but it does interfere with me just because it bugs me.

View->Component Toolbar - does not work when I click on it.

Shift+Alt+P - does not work when I type it.

Tools->Options->Environment Options->Component Toolbar - does bring up the list of tabbed groups and their respective component labels (icons) - but there is no way that I can tell to remove duplicates. I'm afraid to click on Reset to default order since there seems to be an issue here. When I select an item the delete button stays greyed out.

I have already read on the forum that they can't be removed anyway. Why on earth not?

Please see attached photo to see what I am talking about.



Thanks for any help.

Matthew - valued customer.

Memory Management of an array of objects - by: Toby

$
0
0
Hi,

If I have an array of objects such as:

<pre>myArr: TArray<TMyObject></pre>
...and I create objects to store inside:

<pre>newObject := TMyObject.Create;</pre>
<pre>myArr := newObject;</pre>
...what happens to the object if I reduce the size of the array?

<pre>SetLength(myArr,0);</pre>

Seattle with manifest for dpiAware kills hints - by: Ralf

$
0
0
Hi, all program hints are not working if i use a manifest file to handle windows 7,8 and 10 dpi scaling.



<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
<asmv3:application>
<asmv3:windowsSettings xmlns=" schemas.microsoft.com/SMI/2005/WindowsSettings ">
<ms_windowsSettings:dpiAware xmlns:ms_windowsSettings=" schemas.microsoft.com/SMI/2005/WindowsSettings ">false</ms_windowsSettings:dpiAware>
</asmv3:windowsSettings>
</asmv3:application>
</assembly>



Must i add something that i dont know now to the manifest?

A question for SQL Server Experts: Delphi database access - by: Mark

$
0
0
Greetings

I have been a Delphi developer for many years, and have used many databases. I 'm about to tackle my first SQL Server project.

I use Rad Studio 10.2 Tokyo on a Windows 10 server. I use FireDac for the database components.

I would appreciate someone helping me understand the design ramifications between the following two approaches:

Database access using FDtables, and calling table.findkey, table.edit, table.post, or table.delete methods as opposed to coding sql select, insert, modify, and delete statements.

My understanding (which may be incorrect) is that the edit, insert, and delete methods are simply wrappers around the corresponding sql statements mentioned above.

I've done it both ways, and I don't see a big difference in response time, so I'm hoping for guidance. I want to approach this project with the proper mindset.

Thanks so much

Mark Anderson

XE8 - install General update or subscription update? - by: Janice

$
0
0
I installed XE8 when I had an active subscription. Since that I had to let the subscription expire, and it looks like 1 update came out since. There is a general update and a subscription update, and it says Delphi will have to be reinstalled if we use the wrong update. It's not clear which update is correct for me, since my subscription expired after initial install of XE8. Can someone clear it up for me?

Much obliged!
Janice

TXMLBroker - by: Greg

$
0
0
One of my older projects is using TXMLBroker Class is there an installation for XE6 and/or 10.1
,

Toast Notification for Microsoft Store App (Delphi) - by: R Greg

$
0
0
I have a Microsoft Store app and I want to add Toast notifications. It works fine until I package the application into an Appx package for the store (or sideloading). Toast notifications do not work and my app is not listed in the Windows Settings as a notification sender. I figured there must be some manifest extension I need to define, but I am not able to figure out how to make this work. I did find an explanation of what might be happening
here . Anyone know how to make a toast notification work in a Desktop Bridge App. I'm using Delphi 10.2.2.

Importing cpp files into a project (RAD Studio CPPBuilder 10.2)... - by: John

$
0
0
Does anybody know why some files show up in the project tree with their header file and some do not? What determines this? It would be nice if all of them did. I attached a image of the tree from a recent project I just started trying to convert to RAD Studio. Maybe this is a simple setting, but I have not not been able to find it.

Thanks.

Indy10 FTP Client - Acknowledgement delay.... - by: Dinesh

$
0
0
We are using Delphi XE4 Pro Version 18.0.4854.59655 .

In our application we have used Indy10 FTP Client component for file transfer. File size is around 39KB.

We have seen that after receipt of TCP data packet, PC is sending TCP ack delayed by around 200msec. Hence next packet from FTP server is getting delayed. Hence total file transfertime is very long.

Is there any method top reduce this TCP ack time ? For your ready ref, please see file attached for timings.

If any solution, please sent to my email This email address is being protected from spambots. You need JavaScript enabled to view it..

Delphi Connect App Isn't Working - by: Arjun

$
0
0
Previously as my Note 8 was running on Android 7.0 the Delphi Connect app was functioning normally however upon upgrading to Android 8.0 whenever now I am opening the app it is simply loading a white blank screen on the start up and automatically crashing itself after a while. Any solution?

FTP file transfer - TCP acknowledgement is delayed by 200msec.. - by: Dinesh

$
0
0
We are using Delphi XE4 Pro Version 18.0.4854.59655.

In our application we have used Indy10 FTP Client component active mode for file transfer purpose. We want to transfer file of size 39KB. We have observed that while file transfer, after TCP packets has been received by delphi app, TCP acknowledgement is sent after a delay of around 200msec. As there are multiple packets to be sent, because of this delay, total file transfer time is very long.

For ready reference, I have attached Wireshark capture file Testwith1000.pcapng.

Is there any method to reduce TCP ack delay ?
Viewing all 3677 articles
Browse latest View live


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