- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
System goes out of memory on establishing connection in a SAP-Delphi integrated project
When you are trying to release the object, make sure that you set the query object to null. When you set it to null, it will release the memory for sure. But the scope also plays a role, so make sure it is local to the procedure.
Example
Please find a sample snippet for reference
myFunction := TSAPFunctions.Create; myFunction.Connection := FConnection; myFunction.RemoveAll; myQuery := mySAPFunction.Add('interface here'); myQuery.Call; myQuery := null; // will clear the memory
Hope this helps!
- Related Articles
- Trusted RFC connection in SAP system
- Setting up a JDBC connection to remote SAP HANA system
- How to solve JavaScript heap out of memory on prime number?
- Out of memory exception in Java:\n
- Load placed on server to perform encryption in SAP Secure Network Connection
- Using memory analyzer in SAP
- Single Sign-on configuration in SAP HANA system
- Writing a material on SAP system via .NET Connector
- Connection SAP HANA with BusinessObjects
- Viewing license details on SAP HANA system
- Using SAP Gateway service in SAP Web project
- In-memory read in SAP HANA
- Invalid Connection String in SAP Business One
- What is the relationship between Address and Memory Space in a Virtual Memory System?
- How to capture out of memory exception in C#?

Advertisements