delphi-xe5

What is the difference between “Limited Debugging Information” and “Debug Information” in Delphi XE5 compiling setting

可紊 提交于 2019-12-05 12:17:13
问题 Delphi XE5 compiler for Win32 has new setting for Debug Information: Limited Debugging Information . What is the difference between Limited Debugging Information and Debug Information ? 回答1: Some compilers provide variants of the debug flag that provide different levels of debugging information and optimization. Depending on the options you use when compiling and linking your program, the debugging information available in the program's executable file may range from full to nonexistent.

Links to games created by Windows when delphi projects create exes with specific names

和自甴很熟 提交于 2019-12-05 01:46:32
I have a Delphi project called VR that produces an executable named VR.exe. To my dismay I discovered Windows (I am running Window 7 64 bit Ultimate) has added links to the start menu and under games: Search & Rescue: Vietnam MED+EVAC. The icons for the links are the default delphi app icon. Did a bit of research and I found this post: http://social.technet.microsoft.com/Forums/windows/en-US/a5919fc1-db3d-4f13-b241-d059df2bf11f/renaming-a-file-into-vrexe How can I prevent windows from doing this? Update: I have another project MM, which produces mm.exe. This one created a link to the Steam

How to animate a spinner while performing a workload via threading

家住魔仙堡 提交于 2019-12-04 20:18:24
I am having troubles using multiple threads in my Delphi xe5 application for an iOS device. My goal is to perform 'some work' (SQL query), while having a TAniIndicator is spinning. I have tried using Applicaiton.ProcessMessages(), but that doesn't keep the spinner loading smoothly, if spinning at all sometimes. Here is my current code for a btn.OnClick begin if btnLogin.Text = 'Login' then begin aThread := TMyThread.Create(True); aThread.FreeOnTerminate := true; aThread.Start; while Mode1 = 0 do begin Form_Login.LoadSpinnerFrame.visible := True; Form_Login.LoadSpinner.Visible := True; Form

Code behaves differently in Android and Windows

廉价感情. 提交于 2019-12-04 18:38:23
I try to draw on a bitmap. This works fine in Windows but creates a segmentation fault in Android (anyhow, that's what Delphi says, I just see no reaction on Android). I have a mobile project, form containing only a TToolbar, TSpeedButton, two TLabels and a TImage. There's just one eventhandler for the TSpeedButton click. When I comment out everything below the comment the code works fine in Android. When I try to follow with the debugger the code works fine to the end of the procedure. without seeing a drawing or a segmantation fault. When I let it run on the fault occurs. What am I doing

Firemonkey Android Access Calendar and Events

谁说我不能喝 提交于 2019-12-04 17:11:36
How do I access the Calendar and Events on Android using Delphi XE5. RRUZ To access the calendar you can use the Calendar class which is represented by the JCalendar class in Delphi. You can find a set of samples here And this is a Delphi sample uses Androidapi.JNI.GraphicsContentViewText, FMX.Helpers.Android, Androidapi.JNI.JavaTypes; procedure TForm1.Button1Click(Sender: TObject); var Intent: JIntent; Calendar: JCalendar; begin Calendar := TJCalendar.JavaClass.getInstance; Intent := TJIntent.Create; Intent.setType(StringToJString('vnd.android.cursor.item/event')); intent.putExtra

How to detect the termination of a program in Android?

六眼飞鱼酱① 提交于 2019-12-04 13:18:03
When a Windows program terminates it calls event handlers like OnClose, OnDestroy and the destructor Destroy. When I want to save some INI settings these are the places to be. I wrote event handlers for all these events but they are not processed when I terminate the program. Does anyone know where I should place the code to be executed when an Android program terminates? I strongly suspect that this applies to iOS as well. Update Johan's answer works for Android as well, although reality is slightly more complicated than his examples. The nice thing was that it forced me into

Firemonkey TWebBrowser input alternative?

北战南征 提交于 2019-12-04 07:15:54
As Embarcadero said : " WebBrowser Does Not Accept Keyboard Input on Android On Android devices, the on-screen keyboard is not available in a TWebBrowser control. This means that a user cannot complete a web form, for example. The TWebBrowser control should be used for displaying information or documents. User interaction should be performed with FireMonkey controls. " Link This is very annoying if we have to use Clouds identification pages like Dropbox or Google Drive. Using Delphi XE5 with REST components, I'm able to open the login pages, but the keyboard is not functional on Android. So

Getting HTML from response stream using Indy's IDTCPClient [closed]

拟墨画扇 提交于 2019-12-04 07:15:35
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 6 years ago . I have a component that a previous employee has created. It uses Indy (IDTCPClient) and the following method to perform requests (Where "aReadHeader" is a predefined Uri built before being passed in). function TMyConnector.GET(aRawHeader: String): String; begin if Not Connected then Connected :=

FireMonkey TListview Search Reload Issue

时光怂恿深爱的人放手 提交于 2019-12-04 07:09:57
TListview is not reloading properly when you do a search, clear the search and then reload the listview. Using XE5. Steps are: After project is running enter text into search. Clear search either clicking on "Clear" button or deleting the search text or clicking on the search "X" button. Press the "Reload" button. Nothing appears. You can step through the reload procedure and see that each item is added. However, the resulting list count is "0"!!! However, if you add the search text back the items reappear. This is crazy. And you clear the search again and all items appear. Hit the reload

Wildcard for arbitrary generic List

谁都会走 提交于 2019-12-04 06:37:18
问题 I have a class MyClass, which is not generic and contains and does something with an arbitrary TList. I wish to replace the TList with the generic TList, but MyClass has to stay non-generic. Since Delphi is invariant something like this doesn't work: list1: TList<TObject> list2: TList<MyType> //MyType extends TObject [...] list1 := list2 Furthermore there seems to be no non-generic Superclass of TList, just IEnumerable. Is there a way to declare a placeholder/wildcard for TList with an