Search found 22 matches

by Polly
Fri Apr 09, 2010 9:54 pm
Forum: Coding Questions
Topic: Data Breakpoints
Replies: 0
Views: 847

Data Breakpoints

Why are the new data breakpoints disabled before starting the pgm? Why are the breakpoints gone after stopping the pgm run so they have to be recaptured each time? Is this a bug or a feature?
by Polly
Sat Nov 21, 2009 8:23 pm
Forum: Tricks 'n' Tips
Topic: Copy structure with pointer (v4.40 work around)
Replies: 13
Views: 4005

Re: Copy structure with pointer (v4.40 work around)

Maybe this is the best workaround for the time being? Only only one init command per structure (+1 generic macro):

Macro InitCopyStruct(struc)

Structure work#struc
struc.struc[0]
EndStructure

Procedure copyStruct#struc(*a.work#struc,*b.work#struc)
*b\struc = *a\struc
EndProcedure ...
by Polly
Thu Nov 05, 2009 10:46 am
Forum: Announcement
Topic: PureBasic 4.40 beta 6 is out !
Replies: 29
Views: 14590

Re: PureBasic 4.40 beta 6 is out !

Thanks, IDE seems to be more stable now.
But pls, what is a non-declared array?
by Polly
Thu Oct 22, 2009 3:42 pm
Forum: Coding Questions
Topic: Focus rectangle on checkboxes
Replies: 11
Views: 3267

Focus rectangle on checkboxes

When I tab through several checkboxes w/o xp skin I see a dotted rectangle that indicates the checkbox having the focus; when I activate xp skin I see nothing and must guess where I am currently - a behaviour which I nearly consider as a bug. (XP/PB 4.31 and 4.4b5)

So how can I indicate the focus ...
by Polly
Thu Oct 22, 2009 3:21 pm
Forum: PureFORM & JaPBe
Topic: PureLVSORT library : sorting ListIconGadgets (and more)
Replies: 438
Views: 321555

Re: PureLVSORT library : sorting ListIconGadgets (and more)

Hi, gnozal, PureLVSORT_GetFilterString is not working properly under Win7, as it seems to me. For columns where the user hasn't entered anything it returns garbage instead of empty string, with Pb 4.31 and 4.40b5.
by Polly
Sat Oct 10, 2009 8:18 pm
Forum: Coding Questions
Topic: User defined functions
Replies: 12
Views: 2764

Re: User defined functions

You must transform the infix notation of the equation into postfix (or Reverse Polish Notation), then you can evalutate it easyly. If search for these terms you will find some hints.
by Polly
Thu Jul 02, 2009 10:38 pm
Forum: Coding Questions
Topic: Why is Thread so slow?
Replies: 4
Views: 1131

Thanks helpy for your answer, but that doesn't solve the problem. The issue is that the main thread is able to do something apart from just waiting for an event - without slowing down the second thread terribly.

But thinking about your suggestion I found another solution. Instead of doing:
While ...
by Polly
Thu Jul 02, 2009 8:11 pm
Forum: Coding Questions
Topic: Why is Thread so slow?
Replies: 4
Views: 1131

Why is Thread so slow?

Can anybody pls explain me why the thread in the following example is so slow compared to directly executing it:

If OpenWindow(0, 216, 0, 602, 302, "PureLVSORT Test", #PB_Window_SystemMenu | #PB_Window_TitleBar | #PB_Window_ScreenCentered)
ListIconGadget(0, 5, 5, 590, 285, "String", 110 ...
by Polly
Fri Jun 19, 2009 9:04 am
Forum: Coding Questions
Topic: Keyboard Focus and Threads
Replies: 13
Views: 2475

With Minimize the StickyWindow is not neccessary of course.
by Polly
Fri Jun 19, 2009 8:54 am
Forum: Coding Questions
Topic: Keyboard Focus and Threads
Replies: 13
Views: 2475

Thanks all for your support. For my purpose the Minimize workaround is sufficient, using Stickywindow to force the window opening on top, which is required on XP too.

But generally speaking I would also consider it as a bug as there is no reasonable explanation to be seen. When the second window ...
by Polly
Thu Jun 18, 2009 2:20 pm
Forum: Coding Questions
Topic: Keyboard Focus and Threads
Replies: 13
Views: 2475

Keyboard Focus and Threads

Does anybody have an idea why window/gadget 0 does not get the keyboard focus, whatever I do?
Procedure test(x)
hwnd=OpenWindow(1, 0, 0, 256, 99, "", #PB_Window_ScreenCentered )
If hwnd
TextGadget(#PB_Any, 50, 10, 170, 70, "xxx", #PB_Text_Center)
EndIf
While WindowEvent() : Wend
Delay(1500 ...
by Polly
Sun May 17, 2009 10:14 am
Forum: Coding Questions
Topic: UnlockMutex w/o Lock locks
Replies: 11
Views: 2149

So much arguments, only to justify that an Unlock must do the opposite of what it says in certain cases? Very strange....
by Polly
Wed May 06, 2009 3:30 pm
Forum: Coding Questions
Topic: UnlockMutex w/o Lock locks
Replies: 11
Views: 2149

I used this Unlock to make sure that at a given point the resource was unlocked, regardless what happened before. I find this a quite reasonable approch and cannot see where the problem should be when Unlock always would do what it says.

I found a workaround now - just put a TryLock before - but I ...
by Polly
Wed May 06, 2009 1:59 pm
Forum: Coding Questions
Topic: UnlockMutex w/o Lock locks
Replies: 11
Views: 2149

Yes, I have a bug - and you a bug-prone interface design ...

I think, this could easily be avoided.
by Polly
Wed May 06, 2009 1:17 pm
Forum: Coding Questions
Topic: UnlockMutex w/o Lock locks
Replies: 11
Views: 2149

And you can't bypass this "normal Windows behaviour" by maintaining an index whether this mutex is in a lock or not? Of course I can do this in my application, but I would rather see this as a service from PB. One unlock too much and the pgm is hanging - that's a very nasty behaviour.