🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #10508

Re: CopyMemory API problem

#10508
From: Martin C
Date: Tue, 13 Apr 2004 08:59
19 lines
2026 bytes
Thanks Bob for your reply.

Using CopyMemory((void*)WriteAddress,(void*) ReadAddress, Granularity);
still give me AV, and I really couldn't find why I am receiving this error
even by checking parameters and memory address.
On the other hand I know it seems not logic to put Sizeof, but that was the
only way I could reach to avoid the AV, since checking the parameters and
memory address didn't work. At the end even with using SizeOf the AV is
gone, but the code is useless as nothing happened.


"Bob Gonder" <notbg@notmindspring.invalid> wrote in message
news:2pvn70lh3g90clqnvvon1rihguv0s9sbih@4ax.com...
> Martin C wrote:
> Did I say sizeof()?
> sizeof(Granularity) is 4. Always (with this compiler, others might be
> 2 or 8)
> Why even give it a value if all you are going to do is use the size of
> the variable?
Technical Details
Message-ID: <407c0ecf@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40786e5f@newsgroups.borland.com> <5v7m701261mpcjc68up9v6m226cd698sq8@4ax.com> <407b397b@newsgroups.borland.com> <4kgm70p9rkijgdp1sopku8vkn46b52cbg3@4ax.com> <407b4eab@newsgroups.borland.com> <qkkm70p57m1qsqpvf7a292e844mm859bg9@4ax.com> <407b5a2b@newsgroups.borland.com> <2pvn70lh3g90clqnvvon1rihguv0s9sbih@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,aeea745eda602570
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-04-13 09:10:17 PST
From: "Martin C" <martincplus@hotmail.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <40786e5f@newsgroups.borland.com> <5v7m701261mpcjc68up9v6m226cd698sq8@4ax.com> <407b397b@newsgroups.borland.com> <4kgm70p9rkijgdp1sopku8vkn46b52cbg3@4ax.com> <407b4eab@newsgroups.borland.com> <qkkm70p57m1qsqpvf7a292e844mm859bg9@4ax.com> <407b5a2b@newsgroups.borland.com> <2pvn70lh3g90clqnvvon1rihguv0s9sbih@4ax.com>
Subject: Re: CopyMemory API problem
Date: Tue, 13 Apr 2004 10:59:36 +0200
Lines: 21
Organization: V Safe
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 62.135.27.227
Message-ID: <407c0ecf@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1081872079 62.135.27.227 (13 Apr 2004 09:01:19 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail