Windows Vs. Mac Screen('OpenWindow')

hello and thanks in advance.
for a month or so i am trying to solve a "can't collect not even single flip rate" error. 
it wasn't the driver or any other solution. 
the same script works perfectly well on my mac.
after millions or tryings, i did a weird thing and it worked.

instead of using [windowPtr,rect]=Screen('OpenWindow',0)
I used [windowPtr,rect]=Screen(0,'OpenWindow')
and it worked.
so now, when I am running my experiment on my mac I use option 1 and when I use 
my pc I use the second one.

the question is: Is this normal? How can it be??? Will it cause me troubles?
I use windows 7 and matlab 2012a for the pc
and mountain lion matlab 2012b for my mac.

Thanks in Advance,
Yaakov.
what versions of the Psychtoolbox do you have installed on each machine?


--- In psychtoolbox@yahoogroups.com, Yaakov Tayeb <yaakovtayeb@...> wrote:
>
> hello and thanks in advance.
> for a month or so i am trying to solve a "can't collect not even single flip rate" error.
> it wasn't the driver or any other solution.
> the same script works perfectly well on my mac.
> after millions or tryings, i did a weird thing and it worked.
>
> instead of using [windowPtr,rect]=Screen('OpenWindow',0)
> I used [windowPtr,rect]=Screen(0,'OpenWindow')
> and it worked.
> so now, when I am running my experiment on my mac I use option 1 and when I use
> my pc I use the second one.
>
> the question is: Is this normal? How can it be??? Will it cause me troubles?
> I use windows 7 and matlab 2012a for the pc
> and mountain lion matlab 2012b for my mac.
>
> Thanks in Advance,
> Yaakov.
>