[Mono-list] Some problems... 4 example the List.Count
DanieleBini
daniele.bini at gmail.com
Fri Jul 23 03:13:53 EDT 2010
Hi to all, this is my first post here and so, excuse me for my bad english.
I'm a .Net C#, WPF, and Silverlight developer.
Actually I will create one service in .net and my goal is can run it also on
mac and linux like a daemon.
I have install monodevelop and the last (2.6.7) mono framework on my pc.
I write a good part of my application and it run as well on win but if I run
it on a mac it do not fire.
Also I have install monodevelop and the mono framework on the mac and try to
compile and debug the application on the machine.
When I compile the code all is ok, but i have some problem. First, when i
debug the application, monodevelop skip some breakpoints and stop on others,
and i'm talking about sequentially breakpoint.
Another very big problem is that i have a List<Guid> and i will iterate on
it with a while (mylist.count > 0){ ... } but when the execution are on the
while and i try to evaluate the mylist.count > 0 expression (usually
mylist.count is 0 in my case), it throw an exception. The strange think is
that in my catch (Exception ex) { ... } the ex variable is null!
Later I have found another strange thing. In my code I have a lot of foreach
that iterate on an array returned by a wcf, remote, method.
If the webservice return an array not empty, the foreach run as well, if the
array is empty the foreach throw an exception.
My idea is... the problem is with the .Count property?
Someone have similar problems?
-----
Daniele Balbini
Software Developer
MCP
TEAMDEV s.r.l.
P.I. - C.F. 02982970549
Via Torgianese, 17 - 06084 Bettona (PG)
Tel. 075 9724382
Fax. 075 63062111
email: d.balbini at teamdev.it
website: http://www.teamdev.it
Microsoft Gold Certified Partner
Custom Development Solutions
SOA and Business Process
Mobility Solutions
Small Business Specialist
ISV/Software Solutions
--
View this message in context: http://mono.1490590.n4.nabble.com/Some-problems-4-example-the-List-Count-tp2299769p2299769.html
Sent from the Mono - General mailing list archive at Nabble.com.
More information about the Mono-list
mailing list