DBin_

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

Gurus? :lol:

I'm just an "Enthusiast" ;)
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

I have added the changes from DoubleDutch to the download

In the moment, i can't implement the unicode support, it works only one of this, unicode or ascii. Don't know :oops:
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Dare
Addict
Addict
Posts: 1965
Joined: Mon May 29, 2006 1:01 am
Location: Outback

Post by Dare »

Hi ts-soft, sorry for the bum steer.

I'll have another look, but will only advise you (via PM) if I think I have something solid.

BTW, where did it go bad? Not finding the file? Saving rubbish? The encryption? Everywhere? :)
Dare2 cut down to size
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

Dare wrote:Hi ts-soft, sorry for the bum steer.

I'll have another look, but will only advise you (via PM) if I think I have something solid.

BTW, where did it go bad? Not finding the file? Saving rubbish? The encryption? Everywhere? :)
No finding the file, only filename, but no size and so on.

If have also tested as
procedure foo()
endprocedure

procedure foo_Unicode()
endprocedure

but nothing work correctly :o
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Dare
Addict
Addict
Posts: 1965
Joined: Mon May 29, 2006 1:01 am
Location: Outback

Post by Dare »

ts-soft wrote:but nothing work correctly :o
Ack. Sorry, my bad. I must have had a lucky combo.

I will have another look. If I find a way I will PM you but otherwise I won't waste your time with half-baked attempts.
Dare2 cut down to size
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

I will also look, i have more libs with problems in unicode or thread mod. It's not so easy.
But it's time to find the best solution :wink:
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Dare
Addict
Addict
Posts: 1965
Joined: Mon May 29, 2006 1:01 am
Location: Outback

Post by Dare »

ts-soft wrote:But it's time to find the best solution :wink:
Yes, i agree. PB4 opens lots of doors (or makes them easier to go through). But some parts are slippery little beggers!

BTW, I can't get that codesnip to not work. I think I have a mindset and I must be working to that mindset. Which is a worry. Ignorant of my ignorance. :)
Dare2 cut down to size
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

@Dare
Please, more simple english, i can't translate this :oops:
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Dare
Addict
Addict
Posts: 1965
Joined: Mon May 29, 2006 1:01 am
Location: Outback

Post by Dare »

Sorry ts-soft!

I was agreeing that now is a good time to learn the tricks with unicode and threadsafe.

Also, I meant I can't make the unicode/ascii Dbin snippet crash, but that may be because I am thinking one way and coding and testing that way. I need to learn to think in another way.

Your English as posted here is good enough that I forget you're not an English speaker. Sorry again.
Dare2 cut down to size
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

my english is so bad, mostly i use an translator :)
but phrases, slang and so on, don't understand.
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

DBin Packer.exe available. See here: http://www.purebasic.fr/english/viewtop ... &start=105
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

Hellos, just reporting some bugs ...

Three bugs really ...

in the manual for DBin_ command ...
#Image=0
Image=DBin_("MyBin","images\PBLogo.bmp")
If Image
CatchImage(#Image,Image)
Else
MessageRequester("Error","Image not Found in DBin")
End
EndIf
If OpenWindow(0,0,0,400,100,"DBin Test",#PB_Window_SystemMenu|#PB_Window_ScreenCentered)
If CreateGadgetList(WindowID(0))
ImageGadget(1,0,0,300,100,UseImage(#Image))
EndIf
Repeat
Until WaitWindowEvent()=#PB_Event_CloseWindow
EndIf
The "key" param for the DBin_ command is required. Thus the example above does not work :)

Also ...

the pb compiler will provide the following error when using the command with a key param even though it doesnt have one ..
POLINK: error: Unresolved external symbol '_PB_StringBasePosition'.
POLINK: fatal error: 1 unresolved external(s).
And ...

When creating a dbin file with encryption, it does not compress. It only compresses when there is no encryption.

However, the above bugs show up in the PBOSL version of the DBin library, if thats not the newest, is there an update? Plus the PBOSL version is missing it's source so I couldnt make any comparison. Ah well. The one in this thread doesnt contain these bugs? I'll check this one out.

Hope this helps.
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

> The "key" param for the DBin_ command is required. Thus the example above does not work
In the moment no optional parameters, sry. See here: http://www.purebasic.fr/english/viewtop ... &start=105

> When creating a dbin file with encryption, it does not compress
I will check this, thx for bug report!
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

I think that a couple of these bugs will be gone as soon as a final version of Tailbite arrives.

I remember reporting the empty string 'bug' being needed to ts-soft and I think he confirmed that this was the case. So not long to wait for that one. :)

The StringBasePosition thing appears to be something to do with the threadsafe option and quite a few libraries breaking. Maybe that will sort itself out in time too??
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

DoubleDutch wrote: The StringBasePosition thing appears to be something to do with the threadsafe option and quite a few libraries breaking. Maybe that will sort itself out in time too??
In the moment, the only way to create a tailbite lib with threadsafe option, is to create two libs, but i will wait for new release of tailbite.
When the way for optional parameters, unicode and threadsafe libs clearly is, i will rework all libs. In the moment is it useless.
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Post Reply