Results 1 to 4 of 4

Thread: Out of Memory

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2005
    Location
    Chicago
    Posts
    136

    Out of Memory

    I'm pulling registry values using AdvApi.dll, and I'm getting an error for several that are REG_DWORDS that give me the error for out of memory. Below is the section of code where it shows up.

    VB Code:
    1. ' Determine the size and type of data to be read
    2. lrc = RegQueryValueExNULL(lhKey, szValueName, 0&, lType, 0&, cch)
    3.        
    4. If lrc <> ERROR_NONE Then Error 5

    lrc is being returned as 6 which is the error code for ERROR_OUTOFMEMORY. Do I have a variable that is the wrong type?

    I've probably done a poor job of explaining this, let me know if I can clarify it better.

    edit:
    I should probably tell what values I'm expecting back from the registry:
    0x00000000
    0x00000022
    Last edited by bat711; Mar 17th, 2005 at 04:00 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width