Results 1 to 2 of 2

Thread: API not closing down process correctly

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2001
    Location
    Buffalo, NY
    Posts
    1

    Angry API not closing down process correctly

    Hey, here's the thing:

    I am using the API call SetWindowPos through VB6. During run-time, it runs like a charm and I thought I was set. Unfortunately, it must be hogging memory with every use and if run too many times, problems indicating this start to occur. Examples include not even being able to change the font, due to memory lacking! Now, when I close down my VB program, an error occurs and says "VB was not properly closed, would I like to shut it down?" and once I say yes, we're back to square one.

    This memery overload is a problem and currently makes this API call unacceptable for use. Is there any workarounds, solutions?

    Any Ideas? Thanks!

    Chris

  2. #2
    jim mcnamara
    Guest
    A.
    Use the .Left and .Top and .ZOrder properties of the forms to move them around.

    B.
    We use it to place screens and child windows. NO PROBLEM.
    You may be doing something odd with the second parameter
    lpHwndInsertAfter. Just leave it as 0. Use .Zorder to change that.
    It seems to be more tolerant. Plus, it gives errors.

    Show us your api call to SetWindPos, maybe we can help.

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