This bug seems pretty self-explanatory. I just called ExamineDesktops(), and then DesktopWidth() is complaining that I didn't?

And yes, the "monitors" variable is local to that code (it's NOT global or set anywhere else).

I think my screenshot does that job quite nicely. No? The program flow and logic is there to see.Fluid Byte wrote:Show us the whole code or a snippet that demonstrates the problem
No.Dude wrote: I think my screenshot does that job quite nicely. No?
good lord of programmers hit him on the head ... I don't see any of that in the self-explanatory screenshot.Dude wrote: ExamineDesktop() is in a thread
No.Dude wrote:I think my screenshot does that job quite nicely. No?Fluid Byte wrote:Show us the whole code or a snippet that demonstrates the problem
As already has been told you, this is not a serious bug report at all.Dude wrote:That's what this bug report is all about.
[u]Fred[/u] wrote:You will need to post full working snippet if you want us to look at a bug, because toying with an incomplete code is just waste of time as we don't even know if we meet the same conditions.
Okay, forget it. I'll retract the report. Sorry for wasting everyone's time.Little John wrote:As already has been told you, this is not a serious bug report at all.
Code: Select all
CompilerIf (#PB_Compiler_Thread = 0)
CompilerError "Please enable THREADSAFE in the compiler options"
CompilerEndIf
Procedure t (dummy)
d = ExamineDesktops()
If d = 0
Debug "ouch"
CallDebugger
EndIf
x = DesktopWidth(0)
y = DesktopHeight(0)
Debug x
EndProcedure
Procedure main()
h = CreateThread(@t(), 0)
WaitThread(h)
EndProcedure
For k = 1 To 1000
main()
Next
And it seems that you are not the only one who wants to know that ...Dude wrote:All I want to know, why does DesktopWidth() fail when ExamineDesktops() was just called before it?