@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3



Comments:

<0> Ah, there we go. Now I broke it.
<0> I feel better now.
<0> hmmm... now I don't feel so good. Under what circumstances would SetLength(SomeStr, 8) cause an access violation, given that SomeStr is a valid string reference.
<1> weird memory error?
<2> never heard of that Vibes
<0> ? paste
<3> Pastebin: http://www.vkarlsen.no/pastebin
<4> hi all
<1> what is the empty area in a web browswer called, where web pages are displayed?
<2> client area?
<1> no.
<4> http://www.delphipages.com/threads/thread.cfm?ID=178446&G=178354 any comments/advices?
<1> In terms that we can store objects, images, text in it.
<2> document ?
<1> and scroll through it; does it have a name?



<1> no.
<2> you are the one asking
<1> I'm trying to explain.
<1> The area that allows virtual objects to be displayed on the fly.
<1> what is that called?
<2> well if its a web browser, its the document
<1> sorry, no.
<2> whatever you say
<1> There must be a special name for the "control" that permits or supports that kind of function.
<1> Is it a specialize control?
<1> Where can I read more about it?
<2> its a com control
<4> Rahly yes i am jamiguel77
<1> and?
<0> Here's the gist of it: http://www.vkarlsen.no/pastebin/default.asp?id=7725
<2> and what?
<1> I don't think you understand what I'm asking
<2> it also depends on what web browser you have installed
<1> Would it have to be a specialized web/html-based component?
<1> or is there such a thing as a generic environment that can be tailored to other purposes
<2> probably
<1> WHAT is THAT called?
<2> if you wanted it rendered
<1> what is the underlying mechanism called?
<2> depends on what web browser you have installed, and if it allowed itself to be embeded
<1> NO!
<1> this is a standalone issue/component!
<2> you installed the component already?
<1> no.
<2> so what component are you trying to use?
<2> Vibes: i can't figure
<1> the question is, and remains: what is it CALLED the component that makes it possible to display, on the fly, virtual gui objects, such as a web-browswer does
<2> that code works for me
<0> Yeah, I can't see why it would fail either.
<2> you must have something else wrong then
<1> Vibes, can you try to compile on another terminal?
<5> http://www.devexpress.com/Products/NET/IDETools/RefactorASP/Presentation/Refactor_for_ASP_NET_Full/
<1> (workstation)
<2> RadSurfer: for you its called TCustomControl
<4> daedo: can you help me?
<4> http://www.delphipages.com/threads/thread.cfm?ID=178446&G=178354
<4> please
<1> Scrollable "document" container, supporting images, text, etc., objects...
<2> a datasource isn't a TControl
<0> Another machine, no, but it has done the same thing under two different Delphi compilers.
<4> yes....
<4> how fix the problem?
<0> What gets me is that it's the SetLength that's failing.
<2> as TComponent ?
<2> or
<0> That should never fail... esp. not with an access violation. EOutOfMemory or something I can see.
<2> if( Component is TControl) then (Component as TControl).Enabled := Boolean(1);
<4> ok ...
<1> how about checking Item^.AnotherStringMember before making the call somehow?
<2> Vibes: it would if its NOT a valid reference
<0> Why wouldn't it be? The Item is a valid reference, that's certain.
<2> because
<1> is it?
<6> hey Vibes
<2> are you using AnsiString ?
<0> Yes, it is.



<2> then this line is WRONG, because you are writing over the record and not INTO the string -> AStream.Read(Item^.OneStringMember, L);
<6> want refactoring idea?
<2> try
<2> AStream.Read(Item^.OneStringMember[1], L);
<0> Clowne: Sure.
<1> (man, have I ran into that more times than I can count)
<0> Hmm... I'll try that, though it doesn't make any sense... I guess I should say that this code works for a thousand instances of the struct before this failure.
<0> But it's worth a try.
<6> Vibes, its about 'add explaining var' procedure, i think adding explaining const or alternatively initialized variable will be more compliant with goal of 'convert inline literal to descriptive symbol'
<2> well using .Read(String) writes over the string pointer, not the string, String[1] will pull the reference out of the string
<0> So perhaps just dumb luck.
<2> well if you use ShortStrings, there isn't a problem
<0> Clowne: Add explaning const is on the list of things to do.
<6> sweet
<0> Clowne: Have you been keeping up with the demos I've been putting in the channel?
<2> Vibes: did that fix it?
<6> Vibes, that thougth was inspired by one of your flash presentations
<0> Rahly: Still running. Hasn't crashed yet though.
<0> Clowne: OK, cool.
<2> k
<2> I thought you would have known that Vibes
<1> Rahly to da rescue.
<1> ...now about my TI85 :-)
<1> what you want for it ?
<6> unfortunately one more refactoring idea was lost in the d9-THC surge ;)
<6> was too cold to write it down
<4> Rahly... worked: if( Component is TControl) then THANKS!
<1> now if I could just learn more about rendering-engines....
<1> or whatever its called... which I'm still vague on
<1> basically, it is a "scrollable canvas" where "text, images, etc." are simply placed?
<4> RadSurfer, you are a C man, right?
<1> yeah....?
<0> Rahly: Well, it didn't crash, but the strings aren't right. They were before.
<2> weird
<2> then i don't think you are using AnsiStrings ?
<1> what do we call a "scrollable canvas" that can be used to render, among, other things, html, etc., ?
<2> and Edit Control
<2> *an
<1> and how do I learn about the underlying design of the "engine" that controls the layout, etc., of such a thing?
<0> Yes, using AnsiStrings
<2> well that code should work for both ansistrings and shortstrings
<2> did you try stepping through that code?
<1> Rahly: RadSurfer@yahoo.com, tell me how you want to handle sending me that book, please.
<0> Next thing to try is dereferenced pchar
<0> pchar(Item^.something)^
<1> if you're serious
<2> whats AStream? file?
<0> TStream
<2> well since TStream is abstracted
<0> The test case is using TFileStream
<0> There we go. Dereferenced pchars work.
<2> hmmm well i just tried it with a test file, with your code, + [1]. and it loaded the strings just fine
<0> THat's odd.
<1> PuppyBowl? oh brother.
<2> Vibes: http://www.vkarlsen.no/pastebin/default.asp?id=7726
<2> "Version 1.0 of an ODF file translator for Microsoft Word is now available for download. Is this the end of the OfficeXML versus ODF wars?"
<1> haha
<1> rolf
<1> I've tried using OOo very seriouslyh.
<1> that lasted, what 2.5 days?
<5> it was horrible last i tried
<5> maybe a year or so ago
<1> Its so-so.
<1> anything works if you have the patience.
<1> just look at all da .net users out there ;)
<1> crap lost my headphones
<1> dats da only bad thing about wireless headphones... they tend to hide in unexpected places...
<1> Evening Dayna (wherever you are)
<0> Dang. Lost a project again.
<0> There it is. Gotta remember where that is.
<7> Vibes: what tools do you use for your RoR development?


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #delphi
or
Go to some related logs:

assholefever codecs
#sex
#nhl
#politics
mirc mysql.dll
drtoffy
age of kings patch retail not installed
#beginner
#politics
#goal



Home  |  disclaimer  |  contact  |  submit quotes