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-24
[19:34]<2zrygdudl01>I am beginning with c# and have a problem with the classes... i have a public class but if i want to access a variable in it from an other class, i get the message, that it is not possible for security reasons :/
[19:35]<mjzymygo>kungfugoat: just so you know, the Ajax.NET's generic javascript it throws out is bugged to fuckery
[19:35]<mjzymygo>it's fine so long as you stick inside IE
[19:35]<currpurjrv>Moridin8: I just found that out
[19:35]<sjg>thiet ti`nh a'
[19:36]<currpurjrv>Moridin8: that's my problem with this whole ajax concept
[19:36]<mjzymygo>kungfugoat: whats happening?
[19:36]<mjzymygo>oh?
[19:38]<azyfm>Ajax.NET != Atlas?
[19:38]<mjzymygo>^^^ I know
[19:38]<azyfm>braindump03: post the exact error message
[19:39]<2zrygdudl01>Arild its german ;)
[19:39]<sdnffdxdlld>bastardos router
[19:39]<currpurjrv>Moridin8: I managed to create a news ticker that's almost real-time but there's a problem with the HttpHandler part
[19:39]<mjzymygo>http://www.ajaxpro.info/default.aspx?old=ajax&ref=http%3a%2f%2fwww.google.co.uk%2fsearch%3fhl%3den%26safe%3doff%26q%3dAJAX%2b.NET%26meta%3d
[19:40]<mjzymygo>^^^ AJAX.NET
[19:40]<currpurjrv>If I create a custom handler in the root of a web site it creates problems for other web applications underneath that
[19:40]<currpurjrv>simply because I have to copy the ajax.dll to every bin directory
[19:41]<azyfm>you could GAC it...
[19:41]<currpurjrv>Arild: that's what I thought
[19:41]<sjg>chao
[19:41]<currpurjrv>how do I do that?
[19:41]<2zrygdudl01>Arild, the code is there.. possibly you can see an error ;) http://nopaste.info/aec8b97c53.html
[19:43]<azyfm>kungfugoat: gacutil -i ajax.dll
[19:45]<azyfm>uh, braindump03: that code is neither here nor there
[19:45]<azyfm>to access an instance member of a class you need an instance
[19:45]<2zrygdudl01>how to do that? ;)
[19:45]<zgzzcygnv>RTFM is how
[19:47]<vr2drg>what is the significance of writing @ at the start of a string e.g. String s = @"tabman";
[19:47]<azyfm>why is that class a partial class, anyway?
[19:47]<azyfm>tabman: literal string
[19:47]<azyfm>\ has no special meaning
[19:47]<azyfm>nice for doing Windows paths and regexes
[19:47]<vr2drg>Arild: literal string means ?
[19:47]<zgzzcygnv>he just fucking explained it
[19:47]<2zrygdudl01>Arild its part of form... did it because, the other classes also are ;)
[19:48]<azyfm>braindump03: it's not doing anything formy
[19:48]<zgzzcygnv>braindump03 you need to look at whatever your learning from a lot harder
[19:48]<zgzzcygnv>or, since lots of books/tutorials suck, find a better one
[19:49]<zgzzcygnv>if you want to access a string variable all over the place, make it static
[19:49]<2zrygdudl01>ok thanks
[19:50]<lnvnzxu>tabman: it's called a "raw" string, which means it will not interpret \ as the start of an escape sequence, so useful in path literals, like arild said
[19:50]<vr2drg>peterhu: right
[19:50]<currpurjrv>pastebin is slow
[19:51]<currpurjrv>I got this error after gacutil -i ajax.dll: Parser Error Message: File or assembly name Ajax, or one of its dependencies, was not found.
[19:51]<currpurjrv>do I need to restart IIS or something?
[19:51]<lnvnzxu>@ can also be used on identifiers so that the compiler does not treat them as reserved keywords
[19:51]<azyfm>I assume you actually ran that command in a directory where ajax.dll is?
[19:51]<currpurjrv>Arild: correct
[19:51]<currpurjrv>I then renamed it in the bin directory
[19:51]<azyfm>what are its dependencies, then?
[19:52]<currpurjrv>brb...got a call
[19:58]<currpurjrv>Arild: as far as I know, there are no dependencies outside of what should already be in .NET
[19:59]<currpurjrv>here's the pastbin: http://pastebin.com/755573
[19:59]<azyfm>Reflector the DLL
[20:00]<mjzymygj|pxjgn>kungfugoat: the Ajax.dll is not strong signed
[20:00]<azyfm>I thought about that too, but isn't the error message different in that case?
[20:00]<mjzymygo>yeh it is.
[20:01]<mjzymygo>but if he has the same version I fucked with, it's won't go in the GAC
[20:01]<azyfm>ooh, right, you didn't get that error when running gacutil -i, kungfugoat?
[20:01]<mjzymygo>I ended up using FileDisassembler off Reflector and fixing all the damned bugs in it and strong signing it.
[20:03]<azyfm>I think the terminology is "signing it" and "strong naming it"
[20:03]<azyfm>"strong signing" is neither here nor there :-P
[20:03]<lnvnzxu>oh snap
[20:03]<mjzymygo>arild: dude, sometimes you are too pedantic for your own good...
[20:04]<azyfm>Ordnung müss sein!
[20:04]<lnvnzxu>i've got such a headache
[20:04]<mjzymygo>Essen Sie meine Kurzschlüsse!
[20:13]<xzmmzzm>hi
[20:13]<xzmmzzm>i'm trying to use chained methods
[20:13]<xzmmzzm>i created
[20:13]<xzmmzzm>oyunlar[] o = new oyunlar[5];
[20:14]<xzmmzzm>when i try " o[0].method1().method2(); " it gave me nullreferenceexception
[20:14]<xzmmzzm>must i create o[0] = new oyunlar(); for all array elements ?
[20:14]<azyfm>yeah
[20:15]<xzmmzzm>:s
[20:15]<xzmmzzm>can't i create instance for all of array elements
[20:15]<azyfm>no
[20:15]<xzmmzzm>with one line :P
[20:15]<xzmmzzm>hmm
[20:15]<xzmmzzm>thanks
[20:15]<vj2nxe>yes
[20:15]<xzmmzzm>yes for what?
[20:15]<azyfm>oyunlar[] o = new oyunlar[]{new oyunlar(), new oyunlar(), new oyunlar(), new oyunlar(), new oyunlar() };
[20:16]<vj2nxe>1:13p (haydard) must i create o[0] = new oyunlar(); for all array elements ?
[20:16]<vj2nxe>sorry, my chat buffer wasn't all the way down
[20:16]<sdnffdxdlld>lo tobehz, havent seen you around for a while
[20:16]<vj2nxe>:>
[20:16]<vj2nxe>ya, it's been the summer
[20:16]<xzmmzzm>hmmmm
[20:16]<sdnffdxdlld>hehe :)
[20:16]<vj2nxe>and i've been working on my emulator
[20:16]<vj2nxe>and got my license not all too long ago
[20:16]<vj2nxe>etc etc
[20:16]<xzmmzzm>thanks Arild
[20:19]<azyfm>haydard: when in .NET, do as the .NETers
[20:19]<azyfm>that means type names are capitalized
[20:20]<azyfm>so are public members
[20:21]<svzz[wjzc]>Arild great the CLR debugger found my problem, nice tool, wish i had known it before :)







