[fpc-pascal] CMem issue?

silvioprog silvioprog at gmail.com
Tue Mar 8 12:21:29 CET 2016


On Mon, Mar 7, 2016 at 10:09 PM, Bart <bartjunk64 at gmail.com> wrote:

> On 3/8/16, silvioprog <silvioprog at gmail.com> wrote:
> > I got an AV in the CMem unit. To reproduce the problem just compile and
> run
> > this code below:
> >
> > === code ===
> >
> > program project1;
> >
> > {$mode delphi}
> >
> > uses
> >   Classes, SysUtils, cmem;
>
> 1. Shouldn't Cmem be the first unit in your program's uses clause?
> 2. Maybe http://bugs.freepascal.org/view.php?id=29759


Now I declared it as first unit in my program, and the problem was:

=== error ===

C:\Users\silvioprog\Desktop\av>project1.exe
An unhandled exception occurred at $0040B8E2:
EAccessViolation: Access violation
  $0040B8E2

=== /error ===

-- 
Silvio Cl├ęcio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160308/ece8e2b6/attachment.html>


More information about the fpc-pascal mailing list