ASM Libs Updated

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1282
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

Post 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)
Image Image
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post 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
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1282
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

Post 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! :)
Image Image
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

Post 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
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post 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*
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1282
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

Post 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.
Image Image
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post 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?
Marc
User
User
Posts: 28
Joined: Mon Jun 16, 2003 9:02 pm
Location: Paris - Villemer
Contact:

RC4LIB: Meromry allocation ???

Post 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
Marc from PARIS - MVCOM Library
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1282
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

Post by Paul »

Oops... my bad :)
Thanks for the report.

Download update from http://www.reelmedia.org/pureproject
Last edited by Paul on Thu Sep 06, 2007 5:20 am, edited 1 time in total.
Marc
User
User
Posts: 28
Joined: Mon Jun 16, 2003 9:02 pm
Location: Paris - Villemer
Contact:

RC4Lib

Post 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
Marc from PARIS - MVCOM Library
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1282
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

Re: RC4Lib

Post 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.
Marc
User
User
Posts: 28
Joined: Mon Jun 16, 2003 9:02 pm
Location: Paris - Villemer
Contact:

RC4Lib

Post by Marc »

Hi Paul

Many thanks, I tested the updated lib and it works very well
Marc from PARIS - MVCOM Library
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

Any news of VBin for V4?
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

Paul: Will you be releasing unicode and threaded versions of your libraries?
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
matthew180
User
User
Posts: 64
Joined: Mon Jun 30, 2003 5:36 pm
Location: Michigan
Contact:

Post 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
Post Reply