Re: Struck with CopyMemory API
- From: "Karl E. Peterson" <karl@xxxxxxxx>
- Date: Thu, 21 Jul 2005 13:12:01 -0700
Electronic Screw wrote:
> Hi All, I am goin thru the articleid 282474 on
> http://support.microsoft.com/default.aspx?scid=kb;en-us;282474 to
> define Custom Page Sizes. The operating system i am using is Windows
> Xp Professional. When i run the program and try to create a new
> Custom Page, Visual Basic ends saying Visual Basic has encountered a
> problem and needs to close. When i debug i found this got struck at
> CopyMemory. How could i use this? I am using Visual Basic 6.0
> Professional Edition SP3.
Sounds like you either forgot a ByVal or used one where it shouldn't be. If you're
copying data where you shouldn't be, that's a pretty classic *KaBoom!* scenario. (On
NT systems, any address <&10000 is definitely off-limits, btw.)
--
Working Without a .NET?
http://classicvb.org/petition
.
- Follow-Ups:
- Re: Struck with CopyMemory API
- From: Mike D Sutton
- Re: Struck with CopyMemory API
- References:
- Struck with CopyMemory API
- From: Electronic Screw
- Struck with CopyMemory API
- Prev by Date: Re: The Windows directory location from VB6
- Next by Date: Re: The Windows directory location from VB6
- Previous by thread: Struck with CopyMemory API
- Next by thread: Re: Struck with CopyMemory API
- Index(es):
Relevant Pages
|