| |
| |
| |
|
Page: 1 2 3 4 5
Comments:
<0> I did get a few corrupted files before this happen <0> do you thnk it is the harddrive or ram or the mb ? <0> the MB is an intel mb... <0> not msi or abit or any other popular brand <1> darklling: try newegg.com <0> ok <0> wow, big page <0> wow, cheap <0> :D <0> hmm I just have 533 mhz ram, and the MB can handle 800 I think <2> hi all <0> hi frater :-) <3> hey WraithX <3> what is it about jazz that makes me need to drink wine <4> Too ****ing early to be at work. <4> Really.
<3> how early Drk`Angel? <4> 7:15 now. 6:55 when I got here. <3> yep. definatley too early <5> hey ;) <6> barbiejuudo <5> -.- <5> i must admit, never heard that one ;P <0> Kenjuudo:;) <5> joepezt ;P <7> how can i tell if the object has been created ? <7> *cl***) <0> ^^ <0> Kenjuudo, se priv <5> ok <5> yuri`: note that you should allways set an object reference to nil when you destroy it... that way it's easy to see if it's created or not -> nil or not nil <5> that's also why sysutils.pas has a freeandnil() function <5> object references are in reality just typed pointers (though they can't be dereferenced)... when you call a cl*** constructor (usually create()), it allocates the memory needed to hold an instance of the cl*** (called an object), clears it according to defined and ***igns the memory address to the object reference (your object variable)... now it's ready to use... the destructor does, however, not clear the reference variable afterwards... y <7> Kenjuudo, yes but its not possible <7> because i cant nil the object inside the cl*** <7> i tryd sizeof(object( <7> maby the size is changing.. but its the same <5> sizeof(<pointer>) allways return 4... <7> Yes <7> there are many cases the cl*** will destory it self, so i cant track outside <2> ok problem: application is hanging and doesn't close - what are likely causes? <5> WraithX: doesn't process messages? <2> seems not - it just hangs there and won't take any input <2> the IDE can't do anything with it - and when I pause it, it gives an AV but doesn't show where <5> yuri`: in other words; your variable occupies 4 bytes of memory... these 4 bytes contain the address of the actual object instance, and it's real memory size is "none of your concern", because it is managed by delphi <7> Kenjuudo, can the cl*** know its holding varble ? get the memory location or somthing ? <7> in other way to say it, is it the oly way to do it by nil ? <5> WraithX: AV = access violation... translate that literally into your (human) language of choice... because what it means, is that you try to read from and/or write to memory areas not defined for your application <2> yes - I realise, but this only happens after the hang - and I need to know is what might cause such a hang <5> yuri`: the cl*** is (almost) just a type declaration... but neither does the cl***, nor the instance know if you have any variables pointing at it's location... <5> WraithX: it doesn't process messages... <2> what would stop it processing messages? <5> WraithX: some infinite loop somewhere? <2> I can't find any infinite loops <2> in the various destroy methods <7> Kenjuudo, is there another ways to know is the cl*** has destoryed, ? <7> was* <5> WraithX: there can be a multitude of causes... my suggestion is that you look into your thread logics... it's multithreaded, yes? <5> yuri`: note that the constructor in reality acts just like a function... it returns it's address pointer typed with it's cl*** <5> yuri`: it's your decision to put that address into a variable <5> yuri`: like this: bmp := TBitmap.Create; <7> I dont see it in my naked eyes <5> o.O <7> Oh <5> yuri`: that's why it's possible to do like this: TBitmap.Create.Destroy; <2> ken : yes - multi-threaded <5> though that'll make no sense ^^ <7> maby ? bmp := TBitmap.destroy ? <5> yuri`: no, Destroy() acts like a procedure <5> just do: bmp.Free; bmp := nil; <5> or FreeAndNil(bmp); <7> the free goes inside the cl*** <7> its tcp socket thread it destory it self <5> ok... im probably not following you clearly enough... -.- <4> tsk tsk, objects shouldn't destroy themselves. <7> who said so ? <5> WraithX: take care that the threads doesn't access the same resources without proper gating...
<4> yuri`: You should be saying so yourself. If it destroys itself, it is impossible to tell from the outside if a reference is still valid or not, short of accessing it and seeing if you AV. <5> WraithX: a thread should allways be 100% sure when accessing another resource that no other threads is doing it at the same time <7> there must be cases when it has to destory it self, but you are right <4> Should never destroy itself. <4> Send am essage to the owner saying "I'm done, get rid of me whnever you want" <4> The only possible time you might want it to destory itself is if no references to it exist, and you're sure about that. <5> yuri`: there are plenty of cases where an object must destroy itself... but since it causes the code it currently executes to be invalid memory (ie: you'll likely get an access violation), you'll allways have to find a way where you destroy it from somewhere else... <6> besides, suicide is a sin :P <5> hehe <7> k <7> thanks <5> np <5> have fun... make doom 5 <7> lol <4> Its possible to self free without AVing. <4> See: TThread.FreeOnTerminte <4> Just you shouldn't do it often. <7> can you tell me about abstract use, i read about it, but didnt understand it really <7> in short of <5> yuri`: an abstract cl*** is (in delphi) a cl*** with abstract methods, or which inherits abstract methods from it's base cl*** and doesn't implement them... and there we have it... abstract methods are just methods without implementation (ie: no code)... though you can't create instances of abstract cl***es, you can derive new cl***es from them and implement the missing implementations... these new cl***es can be instantiated ;) <5> they are good for telling derived cl***es that they NEED those methods... <4> You can, actually, instantiante an abstract cl***. But you really shouldn't. :) <5> heh... never tried ^^ <4> Don't get an EAbstractError until you try to call an abstract method. <5> oh my... i tried once... tried to create an instance of TStrings ^^ <5> you get a warning at least <4> Yeah, I made that mistake a few times. <4> :) <5> :) <6> find it weird that you can instantiate cl***es with abstract methods as strongly typed and anal delphi can be at other times :P <4> ootje: Yeah, I agree <5> delphi isn't a language... ^^ <6> Kenjuudo: stop being anal :p <4> Actually, it is. Its Borland's take on Object Pascal. It is no longer object pascal, as it has a ton of Delphisms in it now. ;) <6> yeah i was going to say that <6> just wasnt sure of what to use as an example :) <4> Its been so long since I wrote in pure pascal I couldnt' come up with any either :) <8> hello <8> Do you know any expert/addon that would increment build number when compile (D7)? Gexperts seems to work with D6 only. <6> doesnt it do that manually <6> `? <6> er automtically <4> Nick2: It does that automaticlly. <6> build+compile <8> when you build, yes. when you just compile, no <4> That's why its called a "build number" <6> Nick2: thats kind of the concept with BUILD number <8> I don't want to build all times to increment it; sometimes is useful to have a diff build number on compile <4> Yeah, if you like abnormally large build numbers for some reason. <6> i know a lot few compilers/linkers use days-since-year-2000 as build nubmer <8> for debug reason it's useful <6> i have some code for some linker stamp updater.. maybe you can hax0r that code <8> I can giove it a try <6> couldnt find the url so here's my copy of it, http://dev.never.no/~rune/PEStamp.pas <8> thanks <9> that's a riot, rapper/actor ice tea on tv talkin about making a new "body count" album, he's like "bush is in office ****in up the whole world. we couldn't make an album with clinton in office. how you gonna make a body count album with clinton in office? clinton should be on spiketv with his own lapdance show. everyone was happier with clinton in office" <5> "clinton is in office ****ing up monica"? <9> gittin his **** ****ed definately didn't start any wars <5> i don't see nothing wrong in having high bodycounts <10> isn't there some research that suggests male aggression is related to ***ual frustration? <11> hmm when first iraq campaign was started? <10> daddy bush <5> does bush have kids? <10> doesn't mean he was getting any when he decided it would be a great idea to invade iraq <12> re <11> oh, i forgot then... thought is was right after that clintonjob incident <12> if in an application i use the twain32 driver for scanner and if the application stop how can i restart the driver scanner? <10> that was why he was accused of finishing his father's work <12> which component free o gpl to create thumbnails in gelphi? <12> ops delphi <13> Good morning. <5> sg-sg: explain what you want to do... <14> How to make service app? <5> edijs: google
Return to
#delphi or Go to some related
logs:
#italy #stocks #worldcup #computers #beginner luv 2 masturb8
nucking futz undernet tcl missing close bracket regexp
#beginner soviet union pwns u
|
|