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

vclshmem.cpp getbormemptrs error - by: bob S11089

$
0
0
Getting this error after updating a 2009 project to Seattle.
The only reference I can find about this error is in regards to the BDS\bin being in the wrong order in the includes, that was in a posting about C++ builder 6 vs Rad Studio 2006.
I think that I have the 17.0\bin before any other ones in the listing order, is there anything else that would cause this error?
I currently have C++ builder 6, Rad Studio 2009 and Seattle installed on this machine.

Cannot override attachment value on Transformation - by: George @MetadataJunkie M5440

$
0
0
I want to be able to Import Visual Data Lineage via a macro, and it works OK, except for one thing. It won't apply an override value to an attachment bound to a Transformation. I can do it for attributes, but not Transformations. Is this a bug, or do I need a different command?
Here's the outline of what I'm doing
Set theAttachmentType = theDictionary.AttachmentTypes(attachmentType)
Set theAttachment = theAttachmentType.Attachments(attachmentName)
Set theBoundAttachment = currTran.BoundAttachments(theAttachment.ID)
theBoundAttachment.ValueOverride = importValue

VertScrollBox dont show scroll bars - by: peiman F11179

$
0
0
when i add buttons to VertScrollBox layout it will some part of my buttons and dont show scroll bars i have delphi xe10 on windows 8.1 1) i have a blank vertscrollbox at design time the vertscrollbox have client align into the expander3

2)at run time i will add some button to vertscrollbox by this code:
  btnSelect := TButton.Create(VertScrollBox2);btnSelect.OnClick:= btnSelectCick;btnSelect.Parent := VertScrollBox2;btnSelect.Align := TAlignLayout.Scale;btnSelect.Position.X := cng*70;btnSelect.Position.Y := bng*70;btnSelect.Width := 60;btnSelect.Height := 60;btnSelect.text := 'Select'+bng.ToString+cng.ToString;btnSelect.name := 'Select'+bng.ToString+cng.ToString;

3)after 9 time run the above code it be like this: you can see there is no scrollbar and some part of buttons is hiding under the border..


how can i force vertscrollbox layout to show scrollbars?

10.1 Berlin installation what if 10 Seattle exists - by: Pravinkumar T11186

$
0
0
Hi,
Back to Delphi after a long gap. I have some basic question. Few weeks ago I installed RAD Studio 10 Seattle. Now 10.1 is out and its installation has created new link for 10.1 Berlin instead of upgrading previous installation of 10 Seattle.
10.1 Berlin gives me option to install all features using Platform and Extensions Manager. No worries here.

My doubt is:
Should I uninstall 10 Seattle? Can this be done anytime without impacting 10.1 Berlin? Is there any preferred installation sequence like - uninstall 10 Seattle then install 10.1 Berlin? Since I already have both can I just uninstall 10 Seattle without uninstalling & installing 10.1 again?
Thanks for your assistance in advance.
Cheers

Crash in TCustomWebBrowser.FormHandleDestroyed - by: Daniel Horn

$
0
0
I have a Delphi/Seattle FireMonkey project that runs with no problems that I've just moved to Berlin.
After a clean build, I now get an access violation when run as Win32 or Win64.

More specifically:

1) The problem occurs if the application includes a form that has a TWebBrowser. If that form is not created by the application, then the access violation does not occur.

2) The problem occurs in TCustomWebBrowser.FormHandleDestroyed in FMX.WebBrowser.pas. (FormHandleDestroyed and FormHandleCreated are evidently new procedures added with Berlin).

3) The problem occurs with the line FURL := FWeb.URL; as FWeb is nil and there is no check against this member being nil.

4) Invoking any menu item on a form results in the access violation (the form with the TWebBrowser has not even been used and is not visible).

5) Here's the bottom of the stack trace when the access violation occurs:

FMX.WebBrowser.TCustomWebBrowser.FormHandleDestroyed(???,???) System.Messaging.TMessageManager.TListenerList.IterateAndSend($50C3A5,$19FB70) System.Messaging.TMessageManager.TListenerList.SendMessage($5E70E30,$8983220) System.Messaging.TMessageManager.SendMessage($5E70E30,$8983220,True) FMX.Forms.TCommonCustomForm.DestroyHandle FMX.Forms.TCustomForm.DestroyHandle FMX.Forms.TCommonCustomForm.Recreate FMX.Forms.TCommonCustomForm.HandleNeeded FMX.Forms.TCommonCustomForm.Show Listings.TListingsForm.ActionItemDetailsExecute($5E906B0) System.Classes.TBasicAction.Execute FMX.ActnList.TCustomAction.Execute System.Classes.TBasicActionLink.Execute(???) FMX.Controls.TControl.Click FMX.Menus.TMenuItem.Click FMX.Menus.TClickList.DoClicks($88DE250) FMX.Types.TTimer.DoOnTimer FMX.Types.TTimer.Timer FMX.Platform.Win.TimerCallBackProc(0,275,25782,3462593) :73e884f3 user32.SetManipulationInputTarget + 0x53 :73e644f7 ; C:\WINDOWS\SysWOW64\user32.dll :73e6661f ; C:\WINDOWS\SysWOW64\user32.dll :73e66300 user32.DispatchMessageW + 0x10 FMX.Platform.Win.TPlatformWin.HandleMessage :00894704 Fmx::Platform::Win::TPlatformWin::HandleMessage(Self=????) FMX.Platform.Win.TPlatformWin.Run FMX.Forms.TApplication.Run


Does anybody have any suggestions as to a workaround to this problem?

I could probably add a check to see if FWeb is nil, but the problem more likely has to do with the reason that FormHandleDestroyed() is being called.


Thanks for the help, in advance,


Dan

JSON and Delphi - by: Mitch F10240

$
0
0
I'm very new to Delphi. I have been searching for code snippet to parse out JSON so i can display individual fields on the screen.
Here is sample JSON i'm working with:
{"0":{"id":"1","field1":" Hello World","field2":"2016-04-09","field3":"test for field 3","field4":null,"field5":"test field 5","field6":"test field6"}}
Does anyone have a little code snippet on how to access each field (field1...field6) separate to get the value to display?
I have tried a few things I found but can't get some of it to work.
Thanks in advance...

the app does not pass from install dialog - by: Sidney S11234

$
0
0
Hi,
I need help...
The app does not display error but does not install the emulator Android.
Stopped on "Install: App..." after run (F9)
Who knows what happens?
Tks.

TListItemText not working right - by: Chris D11247

$
0
0
Berlin 10.1
Createing ListItemText and applying to an item does not work until the item has been painted?

var
TestText : TListItemText;
TestItem : TListViewItem;
begin
TestItem := ListView1.Items.Add;
Application.ProcessMessages; //<--- Otherwise TestText will not show
TestText := TListItemText.Create(TestItem);
TestText.Text := 'Test';
end;

Code Insight / Code Completion in Berlin? - by: Daniel Horn

$
0
0
Has anybody else noticed any differences or problems with Code Insight /Code Completion in RadStudio/Delphi Berlin?
If I right click on an identifier and choose "Find Declaration", the IDE no longer works as in earlier versions (eg, Seattle).
"Find Declaration" will work as before only if the identifier is defined within that file.
Otherwise nothing.

Were any IDE settings changed with Berlin that might be affecting this?

Thanks,

Dan

Memory leak in datasnap server - by: stephen H11258

$
0
0
I detected memory leaks in datasnap (tcp/ip) server in procedures with parameters string out. example: procedure TServerMethods1.EchoString(Value: string; out Result: string); begin Result := Value; end; Is there any way to avoid it? Link to proyect demo (server and client) with memory leak www.wetransfer.com/downloads/82acc9b469d...0160503154708/837926

Indy IdFTP - by: UfficioSoftware I11292

$
0
0
I'm developping an application with FTP Client using Indy TIdFTP component (Indy 10) on C++ RAD 2010.
I had this problem:
when "Put" command is aborted by the Server, if the application is running on Windows 7 computer, I got a message box with the exeception and it is fine. Instead if application is running on Windows 10 computer the application was blocked and the message box with the execption is shown only after "Try to restore application".
Any idea?
William

Printing source code, do you do it? - by: William E8106

$
0
0
Yesterday i printed out a bunch of source code and put it in a binder using a hole puncher and tabs to separate units. The reason is because I wanted to review my code then make notes of improvements I can make.
It seems like a very uncommon thing to do but it is much better than viewing code on the monitor. Plus I can take it home with me and read it without a computer. I also find it relaxing to browse over my code.

I would like to know if anyone else has done this and their experience. Feel free to flame me about using trees, I don't angry and I find it humorous - but it does clutter the chain.

FMX-TListView, switching between Windows & Android - by: Barry D4121

$
0
0
I've created an app using Windows as the Master. I dropped a TListView on the form and customized it using the new Toggle Design Mode. I added a TImageObjectAppearance and several TTextObjectAppearance items. I added code to set the image for the TImageObjectAppearance and the text items have various font sizes and style.

When I compile it for Win32 and run it eveything looks great. When I switch the Style to Android and the View to Android 10" Tablet the IDE throws this error:

"Cannot assign a TAppearanceObjectItem to a TAppearanceObjectItem."

The View still says Android 10" Tablet but the actual view on the form is still a Windows form. So my first question is what the heck is that error all about? I thought Delphi was supposed to be able to compile to all these different targets/devices using the same code. That's certainly not happening. But wait, there's more...

So I switched back to Style: Windows and View: Master. I clicked on the TImageObjectAppearance item on the form and pressed the Delete key and I got this error:

"Cannot delete a persistent reference from the designer."

But if you click on the item in the Structure window and press Delete it deletes just fine. Bug? I would say so. Anyway, there's more.I deleted the TImageObjectAppearance item from the Structure window and then switched back to Style: Android and View: Android 10" Tablet and guess what...I get the same error. But there is not TImageObjectAppearance on the form! Nutsoid. So I completely delete the TListView custom items in Windows | Master view and start fresh using Android 10" Tablet view. I add all the custom appearance objects, including the TImageObjectAppearnce.But when I compile it for a 10" Android tablet and run it on my Galaxy Tab S2, 1) No images appear.Here's the code I wrote to set the images. (There are 3 TImage components on the form that I use for the TImageObjectAppearance items.) This code works just fine when compiling for Win32.

function TdmVisual.AddOrUpdateItem(AItem: TListViewItem; ADay, ATime, AMGDL, APeriod, AFasting, ANotes,
AID: string): TListViewItem;
varMGDL: Integer;
begin
LObject: TListItemImage;
LObject := Result.Objects.FindObjectT('imgRating');
LObject.Bitmap := TBitmap.Create;
if MGDL < 70 then
LObject.Bitmap.Assign(fmMain.iLow.Bitmap)
else if (MGDL >= 70) and (MGDL <= 130) then
LObject.Bitmap.Assign(fmMain.iGreen.Bitmap)
else if (MGDL > 130) and (MGDL <= 180) then
LObject.Bitmap.Assign(fmMain.iYellow.Bitmap)
else
LObject.Bitmap.Assign(fmMain.iRed.Bitmap);
end;

My second question is why does the above code not work when compiling for Android and what's the proper way to assign images to a TImageObjectAppearance in code?


Thanks
-Barry

Application.Icon.LoadFromFile works when running f - by: Frank Y11341

$
0
0
works when running from IDE only, but running the .exe directly it just shows some other icon even though it finds the file. What could be causing this?

10.1 Berlin installation what if 10 Seattle exists - by: Pravinkumar T11186

$
0
0
Hi,
Back to Delphi after a long gap. I have some basic question. Few weeks ago I installed RAD Studio 10 Seattle. Now 10.1 is out and its installation has created new link for 10.1 Berlin instead of upgrading previous installation of 10 Seattle.
10.1 Berlin gives me option to install all features using Platform and Extensions Manager. No worries here.

My doubt is:
Should I uninstall 10 Seattle? Can this be done anytime without impacting 10.1 Berlin? Is there any preferred installation sequence like - uninstall 10 Seattle then install 10.1 Berlin? Since I already have both can I just uninstall 10 Seattle without uninstalling & installing 10.1 again?
Thanks for your assistance in advance.
Cheers

access violation with FMX listView component - by: Denis M9568

$
0
0
i'm developing FMX application in delphi seattle in next order:
1. i adding a frame
2. then i'm putting scrollbox on this frame
3. then putting listview on scrollbox
4. then making live bilding to some data
5. enabling memory leaks check
and after compilling i'm getting AV
but if i put listview directly on frame av don't appear
really i need scrolling of a frame. what i need to do ?

Firedac Oracle -315 error - by: Mike W

$
0
0
Trying to connect to oracle with FDConnection component, Getting error" -315. cannot get vendor library entry point". C++ builder Berlin and I can connect with Seattle. Tried reinstalling oracle drivers and configuring TFDPhysOracleDriverLink directly to the DLL.

How to get the path of a service in android - by: Rodrigo D11379

$
0
0
Hello! Friends
I have a great difficulty in capturing the path of an Android application service.
I created a mobile application with a service, the application can capture the path usually through TPath.GetDocumentsPath command, but the service this command does not work.
I am using Delphi XE 10 Seattle.
can anybody help me?

Unit DBTables - by: PScott

$
0
0
Loading my Delphi XE6 project into D10 Seattle or D10.1Berlin, I get the error message "Cannot resolve unit name bde.dbtables". I need to include this as I am converting old BDE data here. I see a mention of the package bdertl1240.bpl with dbtables. Do I need to install that package (where to find it)?

If not possible, would be nice to know. I would need to keep this app in XE6 then.
P Scott

Missing OnClick event in StringGrid in Firemonkey - by: Jan S4695

$
0
0
After upgrading from Seatle to Berlin my Delphi multi-device application could no longer be compiled because Onclick and OnDoubleClick events seem no longer to be supported.
The events are no longer listed in the object inspector, but are still part of the help descriptions of the Tstringgrid.So I believe there still is hope.
What do I need to do to get my application running again?
Many thanks ahead.
Viewing all 3677 articles
Browse latest View live


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