@# Quotes DB     useful, funny, interesting





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



Comments:

<0> a bridge in toronto electricuting people, what fun
<1> ?
<1> link?
<1> "Japanese authorities have confirmed that a bird flu outbreak in the country's south was caused by the deadly H5N1 virus.
<1> http://www.harkvideos.com/v.php?v=21
<2> hi. I need some help. I have a written a procedure that does some processing to an audio file and then saves it. After that line and using a shellexecute I run a command app and p*** some parameters to it. The problem is that the command app does not work as it should. If I put the shellexecute stuff in another procedure (click a button to get into it) it works fine. If it is in the same procedure with the other stuff as the last line it does not.
<2> I even tried to put a Sleep(10000) in between in case it was a timing problem but no luck..any ideas?
<1> depends on what the problem is
<1> maybe you are calling it wrong
<2> but I copy and paste in a buttonclick proc and it works fine!
<1> donno, can't see the code
<2> any paste bin?
<1> ? pastebin
<3> Pastebin: http://www.vkarlsen.no/pastebin
<4> after having written
<4> a skynet



<4> i must say
<4> fishes are the way to go
<1> man, this would be such a kewl component for Delphi
<1> i'm surprised it was never created
<4> a fish? yes
<1> na
<1> this builtin .NET component
<2> http://www.vkarlsen.no/pastebin/ViewPaste.aspx?id=7711
<1> going to explain it?
<4> i'm perplexed this has not yet occured
<2> TForm1.SaveSelectionClick(Sender: TObject); is supposed to do everything at once
<2> but the shellexecute stuff fails...
<1> whats ac?
<2> an ocx component
<2> TForm1.Button4Click(Sender: TObject);
<2> when shellexecute is in there works fine
<1> perhaps the wav file is locked by the ocx?
<2> yes but why does it work with button 4?
<1> cuz its already created by the ocx? and its freed?
<2> does something happens when the first proc reaches to end;
<2> can I put something in between? I do not want to have an extra button for that
<1> have you tried doing a Application.ProcessMessages() after AC.saveas, but before the shellexecute?
<2> nop...hm...let me try
<1> its not a permanent solution, because that command is "dangerous"
<1> but you can use it to test with
<2> nop!
<1> have you tried freeing it?
<1> ac.free ?
<1> have you tried using SW_SHOW to see if besplit is showing any errors?
<2> yep! free works..!
<5> :)
<1> prolly still locked by the ocx
<2> but why? does the end of procedure frees the ocx?
<1> no
<2> so what is the damn difference?
<2> and ac.free creates problems...pressing the button again crashes stuff because ocx is freeed
<1> something the ocx is doing is locking the saved file, and it closes it when it feels like it, chances are, its somewhere in between you clicking save, and clicking the button
<1> yup
<1> perhaps you should read up on this ocx you are using
<2> it says nothing...
<1> i doubt that
<1> its gotta say SOMETHING
<2> I even put a Sleep(10000) in between but no luck
<2> not it does not...
<1> so?
<1> if its threaded, then SaveAs could return, while another thread is processing it
<2> what else can I try except ac.free
<1> .Free might wait until the thread is done
<1> i donno, i don't know the ocx you are using, thats pretty much unknown code to me
<1> read the help on the ocx, like i said
<2> I try to understand what happens when the proc reaches to the end;
<1> did you not read anything i said?
<2> which one?
<1> never worked with windows messages or threads, have you?
<1> i'd recommend not using the OCX if you don't know what its doing
<2> what makes you think of that?
<1> think of what?
<2> that I have not worked with threads and messages
<1> because those are 2 reasons, why your code wouldn't work, and if you can't think of them as why, then chances are, you've never worked with them before
<2> on the other hand...you as a potential expert did not offer a solution yet
<2> anyway thanks



<6> SHeesh. GLad you stopped wasting your breath Rahly.
<1> lol
<1> actually, i had to go pick up my pizza :-D
<1> whats going on, Vibes?
<6> Playing with Delphi.
<1> new version?
<7> i play with myself
<6> Trying to figure out if it's possible to do a dynamic array of dynamic arrays.
<6> array of array of Integer; :)
<8> I could have told you that :P
<1> yes
<1> although its kind of a pain
<1> like if you want 10x10, SetLength(A,10); For Count := 0 to 9 do SetLength(A[Count], 10);
<6> Well, doesn't quite work the way I expecte.
<1> yeah, considering, the size isn't fixed like a normal array is
<6> So you can't just do TFoo: array of array of Integer; and then use it as a param: procedure foo(bar: TFoo);
<1> why not?
<1> its just a pointer p***
<6> The compiler complains when you call foo([[1, 2], [3, 4]]);
<1> oh of course
<1> you need to create the dynamic array to p***
<1> the drawback of dynamic arrays ;-)
<6> yup
<1> although, you could do procedure foo(bar: array of Integer); and that should work
<1> although, you can't use dynamic arrays
<1> Vibes: http://www.compusa.com/products/product_info.asp?pfp=BROWSE&N=200049+10&Ne=500000&product_code=52781564&Pn=MF_2007_2_7_inch_Widescreen_Digital_Photo_Frame
<9> some shops round here use them for adverts next to the products
<6> We almost bought one of those at a store we visited on our honeymoon.
<1> http://i56.photobucket.com/albums/g180/Meilibi/Aliens.jpg
<10> I have a question about timing with QueryPerformanceCounter. I've been to a couple different web sites explaining it, but they seem to conflict. One says (end - start) div Freq will return seconds, another says milliseconds (I would presume the latter). But using Delphi 2005 I am getting odd results.
<10> Like timing a loop that takes several seconds and getting a result of 0 or 1.
<0> Dad! Mom! I'm Home!
<11> hi
<0> hello beautiful lady
<0> and how are we today?
<11> better.
<0> Good! Glad to hear it.
<0> strange things happening to Toronto bridges: electric shocks
<11> oh.
<11> anyone die?
<0> nope. A jogger called it in; but they didn't give much details.
<11> http://www.compusa.com/products/product_info.asp?pfp=BROWSE&N=200049+10&Ne=500000&product_code=52781564&Pn=MF_2007_2_7_inch_Widescreen_Digital_Photo_Frame
<11> you see this.
<11> seems like a good idea.
<0> from that, it sounds expensive
<0> haven't been to a compusa in ages
<0> thats right out of startrek! wow!
<0> I'm trying to think of the exact episode...
<0> anything interesting happening in your area?
<11> no
<11> had tacos
<0> It actually appears calms, and quiet outside today.
<0> yummie!
<11> moved some stuff to storage.
<0> havent had thoze in a while
<0> I had chilli with left-ver pasta tossed it. not bad
<0> Oh! I have a gripe about something! sheesh!
<0> you know those cheap cans with the pull-top lids?
<0> I discovered that one had come off while it was in the cupboard!
<0> omg! I couldn't believe the mold on it!
<0> I almost wanted to call those store and bitch!
<11> I've never seen one open.
<1> finally looked at it dayna?
<11> I was watching tv.
<0> mom! and dad! so predictable
<11> huh?
<0> both of you watch tv (more or less)
<0> both of you dabble in Delphi
<11> rahly doesn't have a tv
<11> he likes boobies.
<0> We know where his entertainment comes from :-)
<11> boobies
<11> I don't dabble in delphi.


Name:

Comments:

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






Return to #delphi
or
Go to some related logs:

#winxp
#beginner
enterbelladona
#windows
#worldcup
#politics
#nhl
CSGI.PK
RiffWorks
Judian's People's Front



Home  |  disclaimer  |  contact  |  submit quotes