Help Logs Database

Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Ircnet  |  Dalnet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30

<GraviSrvr> so... im writing a gtk app... and i p*** "SubWindow *subwindows[2];" in the form of "subwindow" which is recieved as "SubWindow **subwindow" however, once recieving function gets the pointer, my debugger shows the pointer points to address 0x2
<GraviSrvr> so... wtf?
<smtp> hey hey
<smtp> does anyone know if you can spawn pthreads from within pthreads?
<GraviSrvr> so in escense that is what started the cold war.
<GraviSrvr> smtp: hey
<smtp> no, i don't think threads had anything to do with the cold war
<GraviSrvr> smtp: oh... well you can have a nice dose of stfu then
<smtp> ?
<GraviSrvr> smtp: your comment did not ammuse me
<smtp> prolly a result of your being a fag
<NKD> lol
<smtp> and "amuse" has only one m
<NKD> "prolly" is spelled "probably"
<NKD> darn he left
<GraviSrvr> i hate people who cant take the 1/8 of a second to actually type out the full word
<GraviSrvr> im glad he's gone...
<jamesd-> smtp: In the world of pthreads, main runs in a thread. You can't run *any* code outside of a thread.
<jamesd-> Ah.
<jamesd-> I'm talking to myself, again.
<GPF_1> ha
<GPF_1> you can run code out side of a thread.
<GPF_1> you just need to condition it to make sure it don't get ran from another thread until your done if you thing there is going to be an issue.
<GPF_1> using a criticalsection helps there.
<jamesd-> GPF1: how will your code run if no thread of control ever p***es through it?
<_amnesia_> i feel retarded asking this, but in vstudio's dialog editor, how do i size a dialog to a specific pixel size (1024x768)? the coordinates on the bottom change when i resize the dialog, but they don't match up with the actual size of it....
<_amnesia_> in fact if i drag it to where those coordinates register 1024x768 it's larger than my 1600x1200 desktop
<_nx> calc win
<CalcMe> win = While C++ programming sometimes collides with Windows (win32 etc), MFC and GUI questions are usually best asked in #winprog and #win32 (the latter focusses on win32 API discussion). Visual C++ specific: try #visualc++ .
<_nx> woah, it worked
<stevieo> calc lose
<CalcMe> lose = While #C++ sometimes collides with C++. Questions about ***, drugs, music, writing, women, and damn near everything FTROU are met by Corwinoid
<stevieo> calc loser
<CalcMe> no entry for "loser"
<stevieo> where'd it go?
<_nx> you... lost it. What does that make you?
<Cyrix_> if you loved someone
<stevieo> your average file clerk
<Cyrix_> why would you condemn them to hell?
<stevieo> Is that near Buffalo?
<Cyrix_> "jesus loves you, this i know, for the bible tells me so"
<Cyrix_> he doesn't even know me :(
<stevieo> My previous superintendant was named Jesus
<Cyrix_> i could be an ***hole
<stevieo> Nice guy
<stevieo> ::cough::
<Cyrix_> but if hes so nice why does he condemn people he would otherwise love to hellfire
<stevieo> ::cough::
<Cyrix_> too bad there isnt an 'ask the parishiner' night open mic on wed
<Cyrix_> at the local church
<stevieo> And an open session Thursdays for heretics like me
<_nx> Cyrix_, blasphemy. You're going to hell.
<Cyrix_> well poo
<CuBie> Please tell me you didnt have cyber *** with a deaf 15 year old girl?
<_nx> she was 15? She didn't sound 15!!
<stevieo> How the **** would I know who I cybered?
<kawfee> What is the difference between concurrent execution and serializable execution?
<_nx> kawfee, um. >1, =1
<kawfee> This is with respect to transaactions perse.
<stevieo> concurrent means at the same time. serial implies one after another
<Cyrix_> too bad van helsing is more realistic than the matrix
<kawfee> _nx: what?
<_nx> thread count
<CuBie> the matrix is real damnit
<_nx> actually, >=1, =1
<stevieo> jesus is stuck in the matrix
<kawfee> stevieo: yes but the transaction can be serialized and thus the operations can be scheduled.
<Cyrix_> well in the matrix they had the improbability machine cranked totally up
<kawfee> stevieo: the serialized part is where I am confused.
<stevieo> Did start responding in the midle of a converstation?
<kawfee> actually, I guess I am not
<Cyrix_> in van helsing i didnt know horse carriages were so flammable
<Cyrix_> you can't wreck something anymore
<Cyrix_> it has to explode like a pinto
<stevieo> Oh! serializable is different.
<kawfee> so say we have Transaction 1 with is made up of three operations: read(), compute() and write(). We also have transaction 2 which is made up of a read() compute() and a write().
<kawfee> The reads and writes can be intermixed.
<GenNMX> That's a very, very well-oiled carridge.
<kawfee> stevieo: yeah, it's much different than serial
<kawfee> although it sounds the same
<stevieo> serializable is an odd concept
<kawfee> bah, I think I cleared my own question up myself
<kawfee> stevieo: it seems useful though
<_nx> kawfee, I guess you have to do that when you don't listen to others.
<kawfee> _nx: just do it all
<stevieo> Yes. Most database APIs I've seen will serialize operations over a single connection, but can't execute concurrent operations over a signle connection.
<kawfee> anyways, thanks for the help
<stevieo> All it means is it picks one at a time to execute
<_nx> I should copy my ignore list from location to location.
<berty> screen yo
<Van^> hey cyrix
<CuBie> bye bye 'my homies'
<k00> if my regex matches border-right when i only want it to match right...how do i add that
<Cyrix_> OH NO
<Cyrix_> thanksgiving turkey fears over bird flu
<Cyrix_> they're selling home test kits to test your turkey for bird flu
<k00> HAHAH
<jamesd-> Any kits to give it bird flu?
<k00> $$$ all about the $$$
<GPF_1> ah, have Ham instead!
<GPF_1> just the pig farmers trying to make money!
<GPF_1> next year, it will be the pig flou.
<Cyrix_> um
<Cyrix_> swine flu
<Cyrix_> now its dog flu
<Cyrix_> i wish peopel would stop ****ing animals
<Cyrix_> and mutitaing this **** into humans form animals
<stevieo> there's already a swine fever, now they got flu too?
<Cyrix_> dog flu
<stevieo> Hell ain't met its quota yet
<smtp> hey, it seems I can ***ign a void* to a MyType* and it's fine in gcc, but with g++ I get an invalid conversion error. any ideas? http://www.rafb.net/paste/results/eEHddS62.html
<smtp> explicit typecasting didn't work
<jamesd-> calc dontwork
<CalcMe> dontwork = "Do(es)n't work" is NOT an error description!
<smtp> right..when I tried to typecast it explicitly, I got an uninitialized value for the integer that's supposed to be in the struct
<jamesd-> Converting from void* does require a cast in C++ though not in C. This is part of C++'s improved typesafety.
<smtp> ah...good to know
<jamesd-> Your problem is probably not in converting from the void* back to a typed pointer, but elsewhere.
<Alipha> smtp: then that doesn't have to do with your code
<smtp> ok thanks, i will look for it
<Alipha> smtp: ClientData isn't part of a inheritence hierarchy, is it?
<smtp> nope, it's a struct
<Alipha> structs can still be inherited from, but ok
<smtp> really?
<jamesd-> It's a cl***, you say? The question was whether it was part of an inheritance hierarchy.
<Alipha> calc struct
<CalcMe> struct = the only difference between structs and cl***es in c++ is the default access for members and bases (/onotice please follow this up immediately with calc really)
<smtp> you can have methods on a struct?
<Alipha> that is, structs can have virtual functions, public:/protected:/private: etc
<Alipha> yes
<smtp> even in C?
<Alipha> no
<smtp> k
<jamesd-> No, this is not #c. This is #c++.
<smtp> yeah, good, now I can remember some things to cite when the topic of C not being a mere subset of C++ comes up
<Alipha> C is a subset. C89 anyway.
<Alipha> oh. you're refering to the void* thing, not the "structs are cl***es" thing
<jamesd-> C89 is an almost-subset of C++98, that is.
<Alipha> right
<Alipha> int new; printf("%d %d", sizeof('a'), 6 //* */ 3
<Alipha> );
<Alipha> few more fun c incompatiabilities
<sculptor> hi
<Alipha> C89: 4 2 should be displayed. C++, ignoring int new; then: 1 6 would be displayed
<smtp> yay, my threads work now
<jamesd-> On a machine with 8 bit char and 32-bit int.
<Alipha> rather, on a machine with 1 byte char and 4 byte int, since CHAR_BIT need not be 8
<jamesd-> Or more generally, a machine with sizeof(int)=4, irrespective of CHAR_BIT.
<stevieo> 1 byte char is redundant
<jamesd-> unless you use "byte" in the common sense of "octet".


Return to c++
or
Go to some related logs:

vreau sa ma fut
poezii deprimante
efnet #c key
digirock

Copyright © 2005 www.irclogs.ws. All rights reserved. » disclaimer » contact