Page 2 of 3
Posted: Sun Sep 23, 2007 3:25 pm
by DoubleDutch
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?
Posted: Sun Sep 23, 2007 9:55 pm
by DoubleDutch
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?
Posted: Fri Sep 28, 2007 7:59 pm
by eddy
I uploaded a threadsafe version
Posted: Sat Sep 29, 2007 12:23 am
by DoubleDutch
Thanks.

Posted: Sat Sep 29, 2007 12:35 am
by DoubleDutch
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.
Posted: Mon Oct 01, 2007 6:08 pm
by DoubleDutch
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?
Posted: Mon Oct 01, 2007 10:31 pm
by eddy
I noticed a crash if the gadgetID already existed or if gadgetId equals #pb_any...
I'll take a look.
Posted: Mon Oct 01, 2007 10:37 pm
by DoubleDutch
Thanks.

Posted: Thu Oct 11, 2007 11:30 am
by DoubleDutch
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

Posted: Tue Jan 08, 2008 1:44 am
by eddy
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)

Posted: Tue Jan 08, 2008 3:08 am
by DoubleDutch
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?
Posted: Tue Jan 08, 2008 10:59 pm
by eddy
I found a bug in threadsafe mode
Posted: Tue Jan 08, 2008 11:12 pm
by DoubleDutch
The error that happens at the 50 gadget point was on the non-thread safe version.
Posted: Wed Jan 09, 2008 12:22 am
by eddy
It works for me.
Did you use #pb_any ?
Posted: Wed Jan 09, 2008 1:00 am
by DoubleDutch
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.
