Is the function returning a value?
What ver of CF and VS are you using?
--
Simon Hart
Visual Developer - Device Application Development MVP
http://www.simonrhart.com
"Jan Hudecek" <(E-Mail Removed)> wrote in message
news:b3f53c8c-974b-41c9-a984-(E-Mail Removed)...
It might be actually closer to a bug in debugger... when i set
breakpoint at every line i can step through it
weird
On 14 Ún, 11:39, Jan Hudecek <hudecek...@gmail.com> wrote:
> Hello everybody,
>
> sorry for the scandalous subject but i cant help it
>
> i have a code that shows up in reflector like this
>
> public int CurrentQuestion(int index, int otherpeopleindex, bool
> onrelations)
> {
> int num = otherpeopleindex + 1;
> if (onrelations)
> {
> for (int i = 0; i < index; i++)
> {
> if (this.questionOnRelationsField[i].IsMap)
> {
> num++;
> }
> else
> {
> num += otherpeopleindex;
> }
> }
> return num;
> }
> return ((index + 1) + this.QuestionOnRelationsCount);
>
> }
>
> but everytime the function executes, the debugger just steps on the
> first line and then immediately returns (even though the code below
> sometimes gets executed).
> Does anyone know whats going on here?
> Thanks,
> Jan