Posted on 1998-07-18
I'm just trying to do a very simple conversion of a regular old string to a PChar variable. here's my code:
...optparms is declared as PChar. hoptparms is declared as a string.
Upon executing this line, the following error window appears:
"Project myproj.exe raised exception class EAccessViolation with message 'Access violation at address 00407E5D in module 'MYPROJ.EXE'. Read of address FFFFFFFF'. Process stopped. Use Step or Run to continue."
...Why? Seems like a simple enough thing to do?
P.S: I am using Delphi v3