IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1825.68 MB
Powered by
Channel Info
Network: freenodeChannel: #csharp |
Search in www.irclog.org
Log from #csharp at freenode 2006-07-27
[16:58]<sdnffdxdlld>:/
[16:58]<sdnffdxdlld>thats. not. right.
[16:58]<rwyfcygs>I was part of a team that managed to produce a realiable, reproducible deadlock on SQL Server though.
[16:59]<sdnffdxdlld>:)
[16:59]<azysvjvnfyss>what the best book/tutorial for a novice user to learn c ?
[16:59]<drygq>Error 1 'SQLExec': member names cannot be the same as their enclosing type C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Projects\TestEnvironment\TestEnvironment\SQLExec.cs 19 21 TestEnvironment
[16:59]<drygq>any ideas about what this error means, the help article doesnt really say me anything..
[17:00]<sdnffdxdlld>main2: the exception tells you exactly whats wrong
[17:00]<rwyfcygs>Sounds like you've botched the constructor
[17:00]<drygq>ahhh shit
[17:00]<azyfm>DAMN YOU! DAMN YOU ALL TO HELL!
[17:00]<drygq>yeah, im doing overloading..
[17:00]<sdnffdxdlld>lol
[17:00]<drygq>on my constructor
[17:00]<drygq>really smart :+
[17:00]<azyfm>nothing wrong with overloading the constructor
[17:01]<drygq>ow
[17:01]<drygq>Arild: is it allowed then
[17:01]<azyfm>yes
[17:01]<drygq>http://pastebin.ca/102221
[17:02]<azyfm>constructors don't have a return type
[17:02]<drygq>?
[17:02]<rwyfcygs>Yeah, lose the "void" keywords
[17:03]<rwyfcygs>it's just "public SQLExec()"
[17:03]<azyfm>public void SQLExec(string strDBPath) -> public SQLExec(string strDBPath)
[17:03]<azyfm>and you can't call other constructors like that, you need to use the this keyword
[17:04]<azyfm>public SQLExec(string strDBPath) : this(strDBPath, null)
[17:04]<drygq>because its object name is unknown yet
[17:04]<drygq>do i get that right?
[17:04]<azyfm>no
[17:05]<sdnffdxdlld>awilkins: that issue doesnt reproduce on others machines it seems
[17:05]<sdnffdxdlld>so the problem is local
[17:05]<sdnffdxdlld>gonna restart lol bbiam
[17:07]<cjmgrug>boo!
[17:08]<drygq>Arild: i think that i get the point, i removed one of the overloading methods
[17:08]<drygq>and im checking wether the second parm is used
[17:09]<rrpygay>alguien sabe de un canal de C# en español
[17:09]<rrpygay>?
[17:10]<drygq>what is the easiest way to check if a string is empty !operator cannot be used because its not bool?
[17:11]<sdnffdxdlld>if(string == string.Empty) :P
[17:11]<sdnffdxdlld>oh wait it'd bee string.lenght == 0
[17:11]<sdnffdxdlld>i think that is mildyly faster
[17:12]<azysvjvnfyss>verdana 10 = the best font
[17:12]<rwyfcygs>Bitstream Vera Sans Mono 8 == the best font for coding
[17:12]<drygq>i love !somuch
[17:12]<drygq>=)
[17:12]<sdnffdxdlld>I love consolas
[17:13]<drygq>something or nothing and true or false can relate to eachother
[17:13]<rwyfcygs>I used "ProggyTT" for a while
[17:13]<rwyfcygs>But it doesn't bold properly - windows adds a pixel to it
[17:13]<rwyfcygs>Hence destroying it's non-proportional goodness
[17:14]<sdnffdxdlld>time out is still happening even after i resart my comp :o
[17:14]<rwyfcygs>s/ProggyTT/ProggyCleanTT/
[17:14]<rwyfcygs>smippy: Does it do it when not running in debug?
[17:15]<sdnffdxdlld>it doesnt do it when run on another pc -_-
[17:15]<e-2jfr>How can i check if an object is of type string?
[17:15]<rwyfcygs>Envirobugs are nasty.
[17:15]<rwyfcygs>Heisenbugs are worse though
[17:16]<zyccus>stupid x-chat
[17:16]<rrpygay>alguien sabe de un canal de C# en español
[17:17]<drygq>im passing 'null' when a constructor method doesnt need a certain parameter
[17:17]<drygq>then in the method i use > if (strQuery!=null){}
[17:17]<drygq>this can be done in a smarter way i guess.. ?
[17:17]<zyccus>'constructor method'?
[17:17]<zyccus>you mean a constructor?
[17:17]<drygq>yeah
[17:18]<zyccus>you can overload constructors
[17:18]<zyccus>but then you'll still have to check that null
[17:18]<zyccus>and it's just up to you if you want to have the user of the class explicitly pass 'null'
[17:18]<rwyfcygs>E-bola: obj is string;
[17:19]<rwyfcygs>e.g Console.WriteLine(("string" is string).ToString());
[17:20]<zyccus>competition to see how many times we can get the word 'string' into a line of code in different forms?
[17:20]<vj2nxe>Rafinci: lo siento, no aqui se habla espanol
[17:20]<rrpygay>tobehz, TE AGRADEZCO !
[17:21]<rwyfcygs>rikkus: No, asking how to verify the type of an object.
[17:21]<e-2jfr>thanks
[17:21]<zyccus>awilkins: I know, I was being silly
[17:24]<sdnffdxdlld>awilkins: it only fucks up in debug mode :S
[17:24]<rwyfcygs>Heisenbug : watching it changes whether it's a bug or not :-)
[17:25]<sdnffdxdlld>oh wait no thats unreliable because i just had to restart the sql server
[17:25]<rwyfcygs>I hate that crap.
[17:25]<sdnffdxdlld>and it works in debug right after that
[17:25]<rwyfcygs>Sounds like a little bastard of a bug anyway.
[17:26]<rwyfcygs>Time to check your service pack levels, build numbers of all dependencies, etc.
[17:27]<sdnffdxdlld>time for a reinstall me thinks
[17:30]<zyccus>don't you just love that pause you get in Windows when you're doing something with a network drive, and your machine uses no CPU, there's no network activity, no disk activity...
[17:31]<e-2jfr>hehe
[17:33]<rwyfcygs>What's it doing anyway, individually accessing extents in the image one by one?
[17:33]<zyccus>while I'm ranting, they still haven't sorted out the 10-minutes-to-unpack-a-10kB-ZIP-file problem in Vista
[17:34]<zyccus>and.. while I was typing that, an installer asked a question, and I answered it by accident
[17:34]<rwyfcygs>Focus stealing apps, grr.
[17:34]<zyccus>now I don't know if I've just told it 'yes, please overwrite important.dll'
[17:34]<sdnffdxdlld>focus stealing pisses me off
[17:34]<rwyfcygs>Even the mighty TweakUI cannot counteract it all.
[17:35]<zyccus>indeed - I told TweakUI to fix it - it didn't
[17:35]<rwyfcygs>Presumably because the app in question uses some kind of renegade API call as a focus stealing technique
[17:35]<rwyfcygs>It works for SOME things
[17:35]<zyccus>dunno
[17:35]<zyccus>Windows doesn't have control of its apps, really
[17:35]<zyccus>there's no window manager in XP







