Developed or developing a new product in PureBasic? Tell the world about it.
DoubleDutch
Addict
Posts: 3220 Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:
Post
by DoubleDutch » Sun Sep 23, 2007 3:25 pm
can you post an example
It
wasn't your library's fault. It was the toolbar lib in PBOSL that was causing the problem.
Any news on a threadsafe version?
DoubleDutch
Addict
Posts: 3220 Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:
Post
by DoubleDutch » Sun Sep 23, 2007 9:55 pm
I've just tested the gadget on WindowsMe and it appears not to work properly. You can move the splitter, but when you let go, it flies to one side or the other. It doesn't stay in the place you leave it at.
This happens with the code that you posted in the first message in this thread. I've tried 2 WinMe machines and VirtualPC running windows Me.
Can anyone else verify this?
eddy
Addict
Posts: 1479 Joined: Mon May 26, 2003 3:07 pm
Location: Nantes
Post
by eddy » Fri Sep 28, 2007 7:59 pm
I uploaded a threadsafe version
win10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
DoubleDutch
Addict
Posts: 3220 Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:
Post
by DoubleDutch » Sat Sep 29, 2007 12:23 am
Thanks.
DoubleDutch
Addict
Posts: 3220 Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:
Post
by DoubleDutch » Sat Sep 29, 2007 12:35 am
Are you sure you included a threadsafe version? When threadsafe is enabled you get a polink error on compile...
Only 1 library file is in the download zip.
DoubleDutch
Addict
Posts: 3220 Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:
Post
by DoubleDutch » Mon Oct 01, 2007 6:08 pm
Is there some kind of hardcoded gadget limit of "50"? If I exceed about 50 gadgets while using the library I get very strange memory errors.
Any ideas?
eddy
Addict
Posts: 1479 Joined: Mon May 26, 2003 3:07 pm
Location: Nantes
Post
by eddy » Mon Oct 01, 2007 10:31 pm
I noticed a crash if the gadgetID already existed or if gadgetId equals #pb_any...
I'll take a look.
win10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
DoubleDutch
Addict
Posts: 3220 Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:
Post
by DoubleDutch » Mon Oct 01, 2007 10:37 pm
Thanks.
DoubleDutch
Addict
Posts: 3220 Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:
Post
by DoubleDutch » Thu Oct 11, 2007 11:30 am
The gadget doesn't work on 95 and may have problems on pre-xp machines because of bugs in "GetAncestor" that were fixed in XP and above.
The code below shold be an example of how to fix the problem if all you wanted to do with GetAncestor is find the root.
Code: Select all
; instead of: anchWnd = GetAncestor_(hwnd, 2)
; use:
anchWnd=hwnd
tempAnchWnd=GetParent_(hwnd)
While Not tempAnchWnd
anchWnd=tempAnchWnd
tempAnchWnd = GetParent_(tempAnchWnd)
Wend
Hope this helps
eddy
Addict
Posts: 1479 Joined: Mon May 26, 2003 3:07 pm
Location: Nantes
Post
by eddy » Tue Jan 08, 2008 1:44 am
download last version
- add fix for win95 (@DoubleDutch)
- included two versions : for THREADSAFE mode and NORMAL mode ( I don't know how to switch between lib)
win10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
DoubleDutch
Addict
Posts: 3220 Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:
Post
by DoubleDutch » Tue Jan 08, 2008 3:08 am
Thanks
But I think this error still exists:
Is there some kind of hardcoded gadget limit of "50"? If I exceed about 50 gadgets while using the library I get very strange memory errors.
Any ideas?
eddy
Addict
Posts: 1479 Joined: Mon May 26, 2003 3:07 pm
Location: Nantes
Post
by eddy » Tue Jan 08, 2008 10:59 pm
I found a bug in threadsafe mode
win10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
DoubleDutch
Addict
Posts: 3220 Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:
Post
by DoubleDutch » Tue Jan 08, 2008 11:12 pm
The error that happens at the 50 gadget point was on the non-thread safe version.
eddy
Addict
Posts: 1479 Joined: Mon May 26, 2003 3:07 pm
Location: Nantes
Post
by eddy » Wed Jan 09, 2008 12:22 am
It works for me.
Did you use #pb_any ?
win10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
DoubleDutch
Addict
Posts: 3220 Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:
Post
by DoubleDutch » Wed Jan 09, 2008 1:00 am
I don't use PB_Any, but I do use EasyVent.
It doesn't seem to go wrong when I don't use EasyVent, but when I do I get memory exception errors.
I'll try get a small example "not working" for you.