Form 800x600 being resized to 800x580 when the form is opened in the IDE. What to do?
Problem with form height in IDE
Failed to find standard type 'TObject'
Hi. I'm getting this error when trying to create a class in delphi. Someone know how to solve? It's apparently a no-reason error because if I just try a new unit and try to create a class it returns me this error.
Rest Server using text/html is removing carriage returns
In the delphi rest server project wizard evidently there is a bug that causes it to always return json.
I found a post on board that said to add this code to override it as in code below. As shown i have set it to text/htm; charset=utf8 and that does cause it to return document with html wrapper. After setting this i take the string and convert it to a stream using stringtostream also shown below. The problem is even though the string and the resultant stream contain line seperators with 0D0A, the data that comes back in the browser is lacking the carriage return (has 0A only). Makes for hard reading in some editors.
Any ideas of why it would remove the cr?
================================================
procedure TWebModule1.WebModuleAfterDispatch(Sender: TObject;
Request: TWebRequest; Response: TWebResponse; var Handled: Boolean);
begin
if ContentTypeHeaderToUse<>'' then begin
Response.ContentType := 'text/html; charset=utf-8';//ContentTypeHeaderToUse;
ContentTypeHeaderToUse := ''; // Reset global variable
end;
end;
=====================
function TServerMethods1.StringToStream(s: String) : tStream;
var
st : tStringStream;
begin
st:=tStringStream.Create(s);
result:=st;
end;
C++ Builder Win64 Access Violation in xlocale
I've create a project which is working fine under OSX.
I now wish to port this project to Win64.
This project was developed using RAD Studio C++ Builder Berlin Anniversary Edition 10.1 Update 2 Enterprise. Target Win64.
When running the application, an access violation occurs during the main form creation.
Running in Debug, the error occurs in 'xlocale' at line # 2171 which reads as follows:
*(size_t *)&table_size = 1 << CHAR_BIT;// force space reservation
I should also mention that this line is bounded by "#ifdef __BORLANDC__" and "#endif".
Also, during application startup, I am not using streams in the constructor; therefore, I truly don't understand how the compiler is setting up the application for launch.
Doing some googling, I have found this issue appears to persist through multiple versions of C++ Builder. The results tend to be work-arounds that may or may not work.
For kicks and giggles, I tried one of them which appeared the least invasive to my project and the overall installation of RAD Studio. The suggestion was to declare a stream within the module that initializes the application, creates any pre-created forms, and launches the main form. Curiously, this duplicated the error; however, the call stack now referenced the "main" module instead of the "main" form. The error location was exactly the same!
So, is there a problem with the STL files for C++ Builder?
Could some kindly provide a work-around to this situation?
Any help or suggestions will be greatly appreciated.
Using Delphi 10.2 and can't turn off "Enable runtime themes"
I'm using Delphi 10.2 and can't turn off enable runtime themes. I uncheck the option in the Project Options -> Application page, then click the OK button, then re-open Project Options, and the box is checked again! What am I missing? How do I uncheck this option?`
10.2 Debugger not showing values of variables
By hovering over a variable in a breakpoint the debugger shows me the same as in design-time.
What I'd like to see is the value of the variable as in preceding versions. Is this a bug or a setting I have to configure?
(by explicitly asking for it with Ctrl F7 I get the value)
10.1 Debugger not showing structure or value of variables
Hi,
I have a program that was written in the 7.0 debugger, however when I open that program in the 10.1 debugger, I can't view the structure of the program. I tried creating a new project and importing the files but the result was the same. The other error is that the program refuses to show the values of variables while debugging (with breakpoints). I can't really write everything from scratch again as a) the program is not mine, I have to edit it. (b) it is a very huge program and writing it again as well as designing the forums will set me quite a bit. Is this a bug or is the debugger just not compatible with the older versions? (Which is very infuriating) if this is the case, can someone please link me to the 7.0 debugger as I can't find it anymore.
Problems compiling ToolsAPI.PAS
Hi, I need to compile the unit ToolsAPI.pas because a 3rd party component needs it, but i have problems as i cannot find the file PersonalityConst.pas ! I am Using Embarcadero Delphi 10.1 Berlin Upd2. Thanks Daniele
REST Request - Error to get PDF Attached - Berlin 10.1
Hi!
Iam trying to download a PDF file using a REST Client.
When it's execute, the request reach the server and get the content. But when try to convert the content to a string this throw the exception "class EEncodingError with message 'No mapping for the Unicode character exists in the target multi-byte code page'."
I've debuged the code, and the error occurs when try to get the count of chars in GetString function of System.SysUtils unit.
//Line 31441
Len := GetCharCount(Bytes, ByteIndex, ByteCount); //ByteCount = 364510
This function call the MultiByteToWideChar function and this return 0. //CodePage = 65001
When I change the value of "Len" using the debugger, the stream can be readed.
This is the example of configuration used at the components:
object RESTClient1: TRESTClient Accept = 'application/json, text/plain; q=0.9, text/html;q=0.8, application/octet-stream,' AcceptCharset = 'UTF-8, *;q=0.5' AcceptEncoding = 'deflate, gzip, *;q=0' BaseURL = '...' Params = <> HandleRedirects = True end object RESTRequest1: TRESTRequest Accept = 'application/json, text/plain; q=0.9, text/html;q=0.8, application/octet-stream,' AcceptCharset = 'UTF-8, *;q=0.5' AcceptEncoding = 'deflate, gzip, *;q=0' Client = RESTClient1 Params = < item Kind = pkHTTPHEADER name = 'Param1' Value = '...' end item Kind = pkHTTPHEADER name = 'Authorization' Options = [poDoNotEncode] Value = '...' end> Resource = 'Documents/CODE/RepGrph/Binary' Response = RESTResponse1 SynchronizedEvents = False end object RESTResponse1: TRESTResponse end
Thanks for your help.
delphi seattle, iOS simulator run, can't load devToolsFoundation
Hi.
I'm trying to set up compiling an app for iOS using the iPhone 5 simulator. I am running Delphi 10 Seatle on a Windows 10 machine, and the X-code on a Mac with macOS Sierra 10.12.5. X-code is up to date, version 8.3.2.
I have PA server 8.0.1.52 tested running and connected. I have created an SDK. I have X-Tools running with the simulator.
When I click the run with debug command in the IDE I get the error "Can't load devToolsFoundation"
If I click the run without debug command in the IDE I get the error "Unable to launch process on [ip] using the parameters from the iOS profile. Can't load devToolsFoundation"
The app will compile as windows 32 and 64 bit, and also for Android.
I have no idea where to go from here.
Thanks in advance
Intraweb
Hi I have intraweb problem when I can't connect to my helloword aplication when I run on server. All ports are opened.
Arabic on Android
for the May 2017 Roadmap, Does Z-Order support make FireMonkey rendering of text in RTL languages such as Arabic on Android display correctly? thanks
How can I compile a Project (".DPROJ" file) bypassing the linker (without generate the ".EXE" file)
Hi, I have dozens of Delphi Projects (".DPROJ" file), where one project can depend on others, and I'm using a dependency manager to compile in order.
But, I don't want generate the executable for the majority.
I'm compiling using the MSBUILD (the Dependency Manager calls the MSBUILD). How can I compile bypassing the linker?
Regards
build project by Microsoft MSbuild
Hello,
I'm build a Delphi project by MSbuild (after successfully build by Rad Studio IDE) and it keeps giving error about don't found the unit of namespace such as "F2613 Unit 'Windows' not found." If I manually add "Winapi." namespace into 'Windows' unit and rebuild it, it's will be ok. My question is there is anyway in Delphi (such as directive) that I don't have to spell out the whole namespace for the unit when building it.
Authenticate users via fingerprint scan
Hi,
Is it possible to develop a custom application that can authenticate users via fingerprint scan?
Best regards.
Manoel Pedro
TFDConnection on DataSnap server
I have a TFDConnection on a TDSServerModule. In designtime it connects just fine. I start the server, and then a client, and via the client I ask the server to connect to the database, and then I get an this message:
Project QDAS.exe raised exception class $C0000005 with message 'access violation at 0x00000000: read of address 0x00000000'.
A hint, someone?
/Anders
Here is the call stack:
System.Classes.TStringStream.Create(???)
FireDAC.Stan.Def.TFDConnectionDef.ReadOptions($6C51878,$3E09D90,$6C379B0,$6C572B0)
FireDAC.Phys.TFDPhysConnection.Create(???,???)
FireDAC.Phys.ODBCBase.TFDPhysODBCConnectionBase.Create(???,$3DF5CB0)
FireDAC.Phys.MSSQL.TFDPhysMSSQLDriver.InternalCreateConnection(???)
FireDAC.Phys.TFDPhysDriver.CreateConnection(???,nil)
FireDAC.Phys.TFDPhysManager.CreateConnection(TFDConnectionDef($6C515AC) as IFDStanConnectionDef,nil,True)
FireDAC.Comp.Client.TFDCustomConnection.AcquireConnectionIntf(nil)
FireDAC.Comp.Client.TFDCustomConnection.DoConnect
Data.DB.TCustomConnection.SetConnected(???)
FireDAC.Comp.Client.TFDCustomConnection.SetConnected(???)
Data.DB.TCustomConnection.Open
incorrect method declaration in class
Hi,
I'm using xe7 c++ and jedi v3.49 (open source jedi project)
I have problem with JvdbUltimGrid compoonent event "onRestoreGridPosition".
can not create methot for this event.
void __fastcall JvDBUltimGrid1RestoreGridPosition(TJvDBUltimGrid *Sender, TArray
thanks all.
Incorrect method declaration in class
Hi, I'm using xe7 c++ and jedi v3.49 (open source jedi project) I have problem with JvdbUltimGrid compoonent event "onRestoreGridPosition". I can not create methot for this event. thanks all.
Retrieve calendar events on a mobile device
Has DX 10.1 Berlin or 10.2 Tokyo, FMX, a component to query, retrieve, calendar (agenda) events on a mobile device both for Android and iOS, somewhat similar to the FMX.AddressBook (TAddressBook, ..) classes provided in DX 10 that can access the contacts on a mobile device?
Is it planned in the Firemonkey roadmap? If so, is it possible to have an estimated time of release?
If not, are there any commercial solutions? Or is the solution in going with the native API on each platform and using JNI and the likes?
Thanks
Wim
Ghost breakpoints in the TDS file
Hi there,
After upgrading our (rather large C++) project from "C++ builder XE2" to the newest "RAD Studio 10.2" I having a tough time with persistent "ghost" breakpoints i.e. breakpoints that are not visible either in the debug window nor defined by me. The ghosts always appears in the same locations.
All this happens in the debug build only.
What I found out is that if I deletes the
Is there a known workaround ? or ?
Thx
Jens F-N