Page 2 of 3

Posted: Fri Mar 18, 2005 5:21 pm
by Paul
Although the memory is allocated with HeapAlloc it seems that FreeMemory will work to free it. Talked to Fred and he thinks there shouldn't be a problem with using the PB command.

If it makes you feel more comfortable I can add a dedicated command to free the memory.
VBin_Free(hMem) ?? (which would basically be using HeapFree)

Posted: Fri Mar 18, 2005 5:57 pm
by DoubleDutch
That would be helpful - just in case you do make some changes.

If you would update your demo to show proper usage for freeing memory - i.e. just after the catch image??? it would be very useful...

Thanks,

-Anthony

Great library btw... :D

Posted: Fri Mar 18, 2005 6:58 pm
by Paul
Ok, VBin_Free command added and update available on PureProject.net

Also I have posted a number of other useful libs to make developers lives easier.

Enjoy! :)

Posted: Sat Mar 19, 2005 3:27 am
by NoahPhense
Paul wrote:Also I have posted a number of other useful libs to make developers lives easier.
Uh o, now I can't resist, I must see what you have.. <g>

- np

Posted: Wed Mar 30, 2005 5:00 am
by Shannara
Shannara wrote:Hmm, looks like (according to the help) vBin2 is missing the compression rate option for adding files to bin files. Any chance to add this back in?
*bump*

Posted: Wed Mar 30, 2005 5:05 am
by Paul
If you use the VBin Creator you can specify the compression ratio, although there is really not a big difference. That is why the library functions use the highest compression as the default.

Posted: Wed Mar 30, 2005 5:18 am
by Shannara
Well, I've actually some cases where I only want to store the files with encryption instead of compress the hell out of them :) Thus the reason why I use lowest compression for some files with the old vbin library :)

Since vBin Creator gives you the option to compress with 9, is there a way to open that option up for the rest of us needing that option?

RC4LIB: Meromry allocation ???

Posted: Wed Jun 29, 2005 8:27 pm
by Marc
Hi Paul,

I'm using RC4LIB in a PB project to encrypt data sended on a network.
I noticed that the amout of memory used by the software (seen in the windows process list) is increased each time the RC4LIB function is used.

My software got a windows memory lack message....

Compile to EXE this code, run it and ckeck the amout of used memory in the process list.

Code: Select all


OpenConsole()

key$="MySecretKey"
msg$="This is a test Message"
Chaine.s =""

For Boucle.l = 1 To 500
  ConsoleLocate(2,1)
  Print(Str(Boucle))
  Chaine.s = RC4_CryptString(msg$,key$)
  ConsoleLocate(2,2)
  PrintN(Chaine) 
  Chaine = RC4_DecryptString(Chaine,key$)
  ConsoleLocate(2,4)
  PrintN(Chaine)
  Delay(1000)
  
Next 
Print("Entrer pour stop")
Chaine = Input()

CloseConsole()
May be memory is allocated without any free action.

Thanks a lot for your excelent job

Marc

Posted: Wed Jun 29, 2005 9:41 pm
by Paul
Oops... my bad :)
Thanks for the report.

Download update from http://www.reelmedia.org/pureproject

RC4Lib

Posted: Wed Jun 29, 2005 10:46 pm
by Marc
Hi Paul,

Did you update the library on pureproject site ?

I had just downloaded it but the date of the lib file is 02/03/05 and looks to be the same File

Thanks

Re: RC4Lib

Posted: Wed Jun 29, 2005 11:03 pm
by Paul
Marc wrote:Hi Paul,

Did you update the library on pureproject site ?

I had just downloaded it but the date of the lib file is 02/03/05 and looks to be the same File

Thanks
Yup. Maybe when you downloaded again it didn't actually download from the site but took it from your browser cache.

The file date on the new lib is 2005/06/29
You will get the same number if you type: Debug RC4_Version()

Try clearing your cache and downloading again.

RC4Lib

Posted: Wed Jun 29, 2005 11:13 pm
by Marc
Hi Paul

Many thanks, I tested the updated lib and it works very well

Posted: Fri May 26, 2006 5:56 pm
by DoubleDutch
Any news of VBin for V4?

Posted: Tue Jan 30, 2007 6:34 pm
by DoubleDutch
Paul: Will you be releasing unicode and threaded versions of your libraries?

Posted: Thu Sep 06, 2007 3:08 am
by matthew180
Any info on if/when VBin for PB4.x might be available? Or should I start looking for an alternative (i.e. you have no plans to update VBin for 4.x)?

Thanks,
Matthew