Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: [FMX] Error with EInvalidPointer, TPlatformWin, Access Violation


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 3 - Last Post: Dec 27, 2017 10:10 AM Last Post By: wesley bobato
wesley bobato

Posts: 19
Registered: 3/17/10
[FMX] Error with EInvalidPointer, TPlatformWin, Access Violation  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 27, 2017 3:36 AM
Hello guys.

I'm getting some runtime errors.
When compiling in x32 I have EInvalidPointer
When compiling in x64 I have Unlock the block type, access violation and etc.

I would like to open a topic for the embarcadero, but I can not find the error.

the error occurs in the image capture tabsheet.

could anyone please test and check if erre occurs at runtime?

please compile in x32 and x64 debug and release in the image capture tabsheet wait for the error on the screen.

https://www.dropbox.com/sh/7wbtsgon9uxwzkm/AADmNidK_epMveTybtop3c80a?dl=0

Delphi Tokyo 10.2.2 Build 2004, Windows 7 x64

1. Updating
These errors seem to be related to the delphi memory manager, when I enable madExcept or EurekaLog does not trigger these errors

Really hard to find where it's wrong :(

2. Updating

When I change the DPR file.
FMX.Types;

GlobalUseDX, GlobalUseGPUCanvas, GlobalUseGDIPlusClearType;
GlobalUseDXInDX9Mode and etc ....

I tested with everyone and got several errors and very different performance...

Thanks for listening.

Edited by: wesley bobato on Dec 27, 2017 4:58 AM
Markus Humm

Posts: 5,113
Registered: 11/9/03
Re: [FMX] Error with EInvalidPointer, TPlatformWin, Access Violation [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 27, 2017 7:44 AM   in response to: wesley bobato in response to: wesley bobato
Am 27.12.2017 um 14:01 schrieb wesley bobato:
Hello guys.

I'm getting some runtime errors.
When compiling in x32 I have EInvalidPointer
When compiling in x64 I have Unlock the block type, access violation and etc.

I would like to open a topic for the embarcadero, but I can not find the error.

the error occurs in the image capture tabsheet.

could anyone please test and check if erre occurs at runtime?

please compile in x32 and x64 debug and release in the image capture tabsheet wait for the error on the screen.

https://www.dropbox.com/sh/7wbtsgon9uxwzkm/AADmNidK_epMveTybtop3c80a?dl=0

Delphi Tokyo 10.2.2 Build 2004, Windows 7 x64

1. Updating
These errors seem to be related to the delphi memory manager, when I enable madExcept or EurekaLog does not trigger these errors

Really hard to find where it's wrong :(

2. Updating

When I change the DPR file.
FMX.Types;

GlobalUseDX, GlobalUseGPUCanvas, GlobalUseGDIPlusClearType;
GlobalUseDXInDX9Mode and etc ....

I tested with everyone and got several errors and very different performance...

Thanks for listening.

Edited by: wesley bobato on Dec 27, 2017 4:58 AM

Hello,

1. if it doesn't occur when adding MadExcept or Eurekalog, it could be a
"wild pointer" which then gets "moved" by including these libraries
so it's no longer harmful.

2. Another method for finding out more about the issue is this one:

- download the full version of FastMM4 (its free)
- unzip it into your project directory and copy the dll file into the
outpout folder from which you run the exe file
- edit the .inc file with its configuration and enable full memory
checking (your app will be slow), this will check for memory block
corruption (e.g. if your application overwrote something it
shouldn't)
- add FastMM4 as first unit to the uses clause of your project's
.dpr file

I'm not sure FastMM4 is 64 bit compatible, but since your project throws
an error in 32 bit mode as well you could start investigation from there.

Greetings

Markus
wesley bobato

Posts: 19
Registered: 3/17/10
Re: [FMX] Error with EInvalidPointer, TPlatformWin, Access Violation [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 27, 2017 9:03 AM   in response to: Markus Humm in response to: Markus Humm
Hello Markus Humm

Thanks for your comment.

I added FastMM to my project and followed all its guidelines
unfortunately FastMM was not able to inform me anything.

I changed this line {$define FullDebugMode}
I copied the FastMM DLLs to the system folder.

I added in my project
initialization
   ReportMemoryLeaksOnShutdown: = True;

simply generates several random errors or simply the program hangs
and FastMM can not capture any information.

I tested compiling on Win32, Win64 Debug and Release.

I also removed this line
Application.OnException: = DoException;
so as not to disrupt FastMM.

You checked the code of my project is quite simple.
I developed it from the embarcadero demonstrations.

All this project was taken from the examples of embarcadero own website.

How do you advise me to inform embarcadero?

Help me with a description of this problem.

Thank you.
wesley bobato

Posts: 19
Registered: 3/17/10
Re: [FMX] Error with EInvalidPointer, TPlatformWin, Access Violation  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 27, 2017 10:10 AM   in response to: wesley bobato in response to: wesley bobato
Hello everyone.

I created a ticket here.
https://quality.embarcadero.com/browse/RSP-19653

If anyone can contribute I would be very happy.

thank you.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02