I am basically C++ and Java Programmer.
Now I am Learning Object Pascal(Delphi) for a new project of my company.
I would Like to know how can i allocate memory dynamically for required size using PChar.
When I try to use GetMem() method and pass that pointer to required method, I am getting run time exception saying that 'Access Violation for that pointer' . How can I over come this Problem.
Please Post me small example, So that i am thankful to you guys.