Results 1 to 4 of 4

Thread: Rtrim in array

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2004
    Posts
    26

    Rtrim in array

    Recently i used a dll file which needed array of bytes for input
    i got 512000 bytes in this way:

    ReDim buffer(512000) As Byte

    and gave it to .dll file .
    but .dll file only used some of it for example 200000 byte.
    everytime .dll file use different space so how much it use my array is unknown.
    how can i free extra memory from end of my array??
    i copied my array to a string and use Rtim for it but it didnt work.

    plz help
    thanks anyway!!!

  2. #2
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961
    The DLL has to tell you how much memory it used. Then you can begin your own memory management.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Apr 2004
    Posts
    26

    thanks dave

    Unfortunetly it doesnt tell anything.
    is there anyway???

    thanks again

  4. #4
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961
    Well how do you know its not using all the memory?

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