Hi,
I see I'm not alone. Well, solution has 4 projects and
I'm checking the refs right now. Some observations when
this effect is likely to show up are:
1. Usage of COM object references
2. Variable is declared as Shared (any part of solution)
3. Office COM Add-in type of executable
I still cannot pinpoint what exactly I do but I see this
too frequently. It is somewhere in IDE, closing and
re-opening solution doesn't help, rebuild all doesn't
either. Closing the whole IDE will allow to change code and
compile correctly one time and after it IDE is stuck
on the same line in code. So far no way to get rid of it.
Just "New project/add existing item..." and until the
next bug visit.
Ralfs
-----Original Message-----
Hi Ralfs
If it is any consolation, I have this happen occasionally
as well. I canusually get rid of it by rebuilding. It seems that the
IDE gets out of syncwith the compiled code. Does your solution contain
multiple projects? Thisis the scenario when I see it in my code. Try checking
the dependenciescarefully, and make sure you don't have circular
references. Although VSdoes let you do it I think this can upset it. [Also it's
bad OO].
HTH
Charles
"Ralfs" <rp******@parks.lv> wrote in message
news:04****************************@phx.gbl... It would be very long explanation, I'll try to keep it
as short as I can.
Stepping through the code I get SqlConnection error with
data adapter. Wish to see what is it.
Fine, I surround it by Try...Catch ...End Try. On the
line where da.Fill(dt) was now is "Try". Stepping through
stops on Try with the same SqlConnection
error. "Try.Catch.End" are commented out now. Stepping through the code stops
on the commented "Try" with the same error.
I have a screenshot, don't know how to post it. Would be
nice if someone from Microsoft responded, I don't want
to waste my time and open incident.
Ralfs
.