Watch, Follow, &
Connect with Us

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


Welcome, Guest
Guest Settings
Help

Thread: Method calls with RTTI Invoke throws AV in XE2


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


Permlink Replies: 1 - Last Post: Feb 16, 2015 7:43 AM Last Post By: Thomas Grusche
Thomas Grusche

Posts: 14
Registered: 6/29/00
Method calls with RTTI Invoke throws AV in XE2  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 15, 2015 2:55 AM
Hi.

We use in an application server dll service method calls with RTTI Invoke. The service methods are marked with attributes. The application is compiled with Delphi XE2.

In 32 bit application there is no problem.

In a 64 bit application there is no problem if the memory usage is smaller than 4 GB. If the memory usage is bigger than 4 GB the method calls with RTTI Invoke throws access violations.

This happens only if the application dll consumes the memory through RTTI calls or something like that before. E.g. if we stole some memory with direct calls of getmem there is no problem. Also using Delphi XE7 don't show the problem.

Our problem is that we need a solution for XE2 because testing of our application with XE7 code needs some weeks. This time we don't have because some customers want to have a solution.

Debugging the 64 bit application with XE2 is not possible. WinDBG and other show us only that after the RTTI Invoke call an access violation occurs.

Maybe someone here has tips for us where to look in the code or what patterns to avoid when using RTTI with XE2.

Thank you.
Thomas Grusche

Posts: 14
Registered: 6/29/00
Re: Method calls with RTTI Invoke throws AV in XE2  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 16, 2015 7:43 AM   in response to: Thomas Grusche in response to: Thomas Grusche
Found. It was [http://qc.embarcadero.com/wc/qcmain.aspx?d=109247] and relatives.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02