for /l %%x in (1, 1, 100) do ( echo %%x echo int main^(^) {int a = 0; for^(; a ^< %%x00000 ; a++^); return a;} > prog.c gcc prog.c -o p.exe -lm && p.exe )caused "gcc failed since p.exe is locked" and before firing Windows report, I asked what can I do in IRC channel. It is obviously Windows issue.
- 21:16.00circ-user-vwR7xHi, I have noticed that when I use gcc p.c -o p.exe && p.exe in the loop, the compiler fails occasionally because p file is locked.
- 21:16.06Seligas has quit: Ping timeout: 264 seconds.
- 21:16.07RobinCoyote has quit: Ping timeout: 264 seconds.
- 21:17.05Relapse joined the channel.
- 21:17.57Deihmos has quit: Ping timeout: 256 seconds.
- 21:18.13ariscop_ has quit: Ping timeout: 250 seconds.
- 21:19.24badon has quit: Disconnected by services.
- 21:19.25badon_ joined the channel.
- 21:19.35naph-W joined the channel.
- 21:19.53badon_ is now known as badon.
- 21:20.04circ-user-vwR7xIt seems that windows does not close the process file before proceeding to the next command. Where do I report the bug?
- 21:20.06lcqf joined the channel.
- 21:20.40TheBardits not Windows problem, if you don't release your file handles properly.
- 21:24.02toxictra_ joined the channel.
- 21:24.09exixt has quit: Quit: - nbs-irc 2.39 - www.nbs-irc.net -
- 21:24.25lewellyn has quit: Ping timeout: 255 seconds.
- 21:24.35Salastil joined the channel.
- 21:24.45circ-user-vwR7xTheBard: What do you mean releasing file handles properly?
- 21:25.11TheBardits in the MSDN docs.
- 21:25.24circ-user-vwR7xgo fuck yourself
- 21:26.27kggr has quit: Ping timeout: 256 seconds.
- 21:26.40jackbrown has quit: Ping timeout: 255 seconds.
- 21:26.55kggr joined the channel.
- 21:26.57ulrichard joined the channel.
- 21:27.05toxictrash has quit: Ping timeout: 265 seconds.
- 21:27.09circ-user-vwR7xWindows terminates my app. I expect that it has closed the streams properly. It is windows bug otherwise.
- 21:27.21Ussatum..no it isnt
- 21:28.04Minnebo has quit: Quit: Leaving...
- 21:28.33circ-user-vwR7xDo you mean that Windows does not close handles properly and it is my bug?
- 21:29.32TheBardNope. Its all your bug. But it sounds like you have a programming issue there, so ask in the relevant programming channel. Like #cygwin maybe?
- 21:30.01Ussatno, its a programming issue with YOUR code...so have fun
- 21:30.24circ-user-vwR7xIf I had Windows not closing Photoshop, you would tell that it is a photography issue?
- 21:30.35Ussat...
- 21:30.43circ-user-vwR7xWhat should I program here?
- 21:30.45rexwin_ left the channel.
- 21:30.47Ussatgo away troll
- 21:31.11circ-user-vwR7xIt is nice when trolls take over a channel and expell users as trolls.
- 21:31.44last_staff joined the channel.
- 21:32.11TheBardThis is an OS support channel, not necessarily developer help. Expecially as you are wandering outside of the basics of app development.
- 21:32.34RobotsOnDrugs#winapi is probably the most appropriate channel
- 21:33.12sepeckcirc-user-vwR7x: it's not 'Windows' it's your code or the tools.
- 21:33.19circ-user-vwR7xThere is nothing programming here. Why winapi? Which function should I use and why? Which function should I use if windows cannot terminate the approperly?
- 21:33.24last_staff has quit: Client Quit.
- 21:33.28circ-user-vwR7xApp is terminating. It cannot call anything.
- 21:33.32sepeckwe're not a programming channel.
- 21:33.48circ-user-vwR7xYou are not logic channel.
- 21:34.05sepeckcirc-user-vwR7x: we have channel guidelines linked in /topic which you are ignoring
- 21:34.12Aeiortv left the channel.
- 21:34.23sepeckcirc-user-vwR7x: people have tried to sugges t more appropriate channels which you are ignoring for arguments
- 21:34.37circ-user-vwR7xWhich guideline is saying that Windows, unralated to programming questions must be called "programming issues"?
- 21:35.00sepeckthis is about 'Windows' Not everything that RUNS on Windows
- 21:35.43circ-user-vwR7xIf non-programming question is classified as "programming issue" then EVERYTHING RUNNINING ON WINDOWS IS PROGRAMMING ISSUE and you have nothing to support.
- 21:36.01S_SubZeroyou clearly seem unhappy with the answers you are getting here, so even if this was ##programming_in_windows_ask_ANYTHING_especially_gcc it's not living up to your expectations so maybe move on?
- 21:36.11sepeckyou are coding an app, the app is crashing, somehow you seem to not get this difference
- 21:36.27sepeckI strongly suggestyou find a gcc related channel
- 21:36.59naph-WThis makes one long for boot loader or ISO download questions
- 21:37.00circ-user-vwR7xYou seem incapable to distinguish between programming and Windows function. You cannot guide me then. Ok?
- 21:37.19sepeckI am telling you you are off topic so time for you to move on
- 21:38.15circ-user-vwR7xI use standard windows batch command processor. It has nothing to do with C programming. It must only terminate my program and compile it once again.
- 21:39.03sepeckcirc-user-vwR7x: oh hey, I missed this earlier. Let's use polite language in channel as well
- 21:39.06WyReSP joined the channel.
- 21:39.28sepeck< circ-user> Hi, I have noticed that when I use gcc p.c -o p.exe && p.exe in the loop, the compiler fails occasionally because p file
- 21:39.31sepeck^^^
- 21:39.40sepeckYou yourself indicatged you were using a program
- 21:39.55circ-user-vwR7xYes, because Windows batch executes next command whereas preceeding is unfinished
- 21:40.10circ-user-vwR7xFile is locked by existing p process
- 21:40.15sepecknot what you asked and then you got argumentative.
- 21:40.37sepeckas to 'reporting this bug', you would call Microsoft since we are not affiliated with Microsoft
- 21:41.08james0 joined the channel.
- 21:41.26circ-user-vwR7xwhen I run gcc && p && gcc && p I expect that preceding command has completed and the files it locked are released. This has nothing to do with C programming.
- 21:41.46kzard joined the channel.
- 21:41.50RobotsOnDrugsmsdn docs were suggested eariler
- 21:41.51Soda has quit: Remote host closed the connection.
- 21:41.58RobotsOnDrugslots of information on the platform there
- 21:42.05circ-user-vwR7xWhich Microsoft docs?
- 21:42.19sepeckif you lock the files, you need to release them properly. It seems whatever you are doing isn't, so you will need to seek those answes to correct the issue with your programs
- 21:42.32circ-user-vwR7xDid you occupy the channel to say that there is MSDN and google? What should I look for?
- 21:43.01sepeckyou need to find a programming channel. You have been refered to some. try them
- 21:43.05RobotsOnDrugshandles (as was also suggested earlier)
- 21:43.13circ-user-vwR7xI did not lock anything. You may be incompetent to know that Windows locks the image file when starts the process.
- 21:43.16sepeck##windows-coding, #win32 , ##WinJS or #winapi, or a channel specific to your programming language
- 21:43.20circ-user-vwR7xI do not lock anything.
- 21:43.35sepeckcirc-user-vwR7x: calling names is not helping you and irritating me so let's stop
- 21:43.45optrusty joined the channel.
- 21:44.01circ-user-vwR7xIgnoring my point is very helping.
- 21:44.23RobotsOnDrugswell, we can only guess at what is locked since we don't have your code
- 21:44.25sepecklet's time. I suggets you move on and try the various resources previously suggested
- 21:44.31sepecklast time
- 21:45.49circ-user-vwR7xYou do not guess. You invent unexisting file allocation to send me to another channel.
- 21:46.06kzard has quit: Ping timeout: 264 seconds.
- 21:47.15sepeckwelcome to irc. multiplle people disagree with you at them moment. Since you are not getting answers to your satisfaction here, I suggest you avail yourself of the various other suggested resources
- 21:47.22fleshtheworld joined the channel.
- 21:47.30ThugW4ffle has quit: Ping timeout: 250 seconds.
- 21:48.07S_SubZeroi've seen cases where installers report they are 'done' before they are actually done. With MSIs this can screw up a workflow where several MSIs are being installed in a row. For MSIs I have a way to make sure the previous installer finished.
- 21:48.46sepeckwouldn't hat be an issue withthe installer though S_SubZero?
- 21:49.04sepeckI know our SCCM admin has some apps they have manual cleanups on
- 21:49.16wisey joined the channel.
- 21:50.23S_SubZeroyeah I don't think it's a Windows problem there
- 21:50.42Huntyz joined the channel.
- 21:51.53naph-W has quit:
- 21:52.23JotaK joined the channel.
- 21:54.01schreiberstein joined the channel.
- 21:54.13cajunctionAI joined the channel.
- 21:55.12dgmurdockiii joined the channel.
- 21:55.37aegisword has quit: Read error: Connection reset by peer.
- 21:56.01aegisword joined the channel.
- 21:56.26Simon1245 joined the channel.
- 21:56.58optrusty has quit: Quit: Be back later ...
- 21:57.28chalcedony has quit: Ping timeout: 256 seconds.
- 21:57.34optrusty joined the channel.
- 22:01.38blizzy joined the channel.
- 22:01.54optrusty has quit: Ping timeout: 245 seconds.
- 22:02.10blizzyis there anyway to fix this? everytime I plug in my charger, it says that it's the wrong adapter, even though it's not. that's not the problem, the problem is is that my computer then slows down.
- 22:02.17blizzythis is a Dell.
- 22:02.30sepeck##hardware
- 22:02.37kruugblizzy: sounds like either a ##hardware issue, or a Dell issue
- 22:02.38blizzythanks.
- 22:02.43james0 has quit: Remote host closed the connection.
- 22:02.44blizzykruug, well, it's Dell.
- 22:02.54blizzyas the popup basically says that it will slow down.
- 22:03.04kruugblizzy: contact Dell?
- 22:03.34cubeast joined the channel.
- 22:04.11SunDwarf joined the channel.
- 22:05.27crymore has quit: Quit: Connection closed for inactivity.
- 22:05.52blizzyugh, this is annoying.
- 22:06.16Eyes has quit: Ping timeout: 255 seconds.
- 22:06.51WyReSP has quit: Ping timeout: 252 seconds.
- 22:07.15maktm joined the channel.
- 22:07.37Volatix has quit: Ping timeout: 264 seconds.
- 22:07.45maktmI wanted to know if it is possible to use powershell without it prompting me for a command after every line of code. for example writing in python and being able to edit any part of the script.
- 22:07.53maktmor is that not what PowerShell should do?
- 22:08.30kruugmaktm: check out PowerShell ISE
- 22:08.31GlenKnot entirely sure what you're after, but use the ide?
- 22:09.06maktmExactly what I was looking for. Don't mind my stupidity. Thank you.
- 22:09.40ohxvoa joined the channel.
- 22:10.02sepeckmaktm: also try #powershell
- 22:10.28sepeckmaktm: and some free training resources int he powershell section here: http://www.freenode-windows.org/resources/scripting
- 22:10.41maktmthank you :]
- 22:10.47A-KO|tablet joined the channel.
- 22:11.01V3DT has quit: Remote host closed the connection.
- 22:11.30Tecnico1931 has quit: Quit: Tecnico1931.
- 22:12.37Mia joined the channel.
- 22:14.25
- 22:14.43kruugok
- 22:15.07A-KO|tabletcirc-user-vwR7x: use start /wait
- 22:15.09A-KO|tabletdumb dumb
- 22:16.03nyuszika7hA-KO|tablet: calling users dumb isn't going to help
- 22:16.03cobiashimew joined the channel.
- 22:16.24circ-user-vwR7xWhy? Did you find that in MSDN? Didn't it tell you that batch must be executed in synchronous manner, one command after another? If it does not then how does start /wait can help?
- 22:16.54A-KO|tabletcirc-user-vwR7x: batch files are asynchronous. They execute commands. Using start /wait, which was added I think in XP or Vista, does exactly what you want it to do.
- 22:17.06A-KO|tabletThis has been the behavior in batch files for Windows for decades
- 22:17.19A-KO|tabletThat's why they added "start /wait"
- 22:17.47A-KO|tabletnyuszika7h: I feel like it's appropriate given that the behavior he's complaining about has been Windows behavior for.....25 years?
- 22:17.48circ-user-vwR7xdo you mean that for for /l %%x in (1, 1, 100) do echo %%x will execute 100 echoes in parallel? Where did you find that?
- 22:17.49A-KO|tablet30 years?
- 22:17.49ThugW4ffle joined the channel.
- 22:18.09A-KO|tabletcirc-user-vwR7x: && start /wait p.exe
- 22:18.19nyuszika7hthat's not a valid excuse for calling people dumb
- 22:18.37circ-user-vwR7xWhy && start /wait p is better than && p?
- 22:18.40A-KO|tabletYou might also have to do some additional funky stuff. Batch files are incredibly limited, and it's not a good shell environment. Which is why Microsoft moved everything to Powershell.
- 22:18.53A-KO|tabletBecause start /wait will put the script on hold until the p process terminates
- 22:18.59A-KO|tabletwhich is what you're asking for
- 22:19.00ByT3b0N3 has quit: Ping timeout: 256 seconds.
- 22:19.10nyuszika7hcirc-user-vwR7x: it doesn't wait for p.exe to quit, it just moves on. just use "start /wait p.exe" as A-KO|tablet said - stop complaining when you get told EXACTLY what you need to do.
- 22:19.37Anti-Pizza has quit: Quit: Leaving.
- 22:20.21circ-user-vwR7xThen why echo in the loop are not executed in parallel?
- 22:20.37kruugcirc-user-vwR7x: because it's a loop
- 22:21.07kruugyour echo is so trivial that it's done by the time the next iteration starts
- 22:21.14A-KO|tablet^
- 22:21.14WyReSP joined the channel.
- 22:21.21circ-user-vwR7xAny why does substituting echo with p break the loop?
- 22:21.28lcqf has quit: Remote host closed the connection.
- 22:21.32kruugcirc-user-vwR7x: it doesn't break the loop
- 22:21.43A-KO|tabletYour loop is spawning XXXXX processes of p.exe
- 22:21.48A-KO|tablet100 processes of p.exe, which is failing
- 22:22.11A-KO|tabletIn fact, it's starting 100 processes of gcc.exe also
- 22:22.14kruugthe loop fires off teh process, then goes to teh next iteration, fires off another process, then goes to teh next iteration, fires off another process...
- 22:22.16kruugetc
- 22:22.18kruugso
- 22:22.20kruugon
- 22:22.22kruugand
- 22:22.24kruugso
- 22:22.26kruugforth
- 22:22.37A-KO|tabletThe loop doesn't care what p.exe is doing, nor what gcc.exe is doing
- 22:22.42A-KO|tabletAnd it won't wait for them
- 22:22.48A-KO|tabletit doesn't care about error conditions, etc.
- 22:22.50circ-user-vwR7xI have replaced gcc prog.c -o p.exe -lm && p.exe with gcc prog.c -o p.exe -lm && start /wait p.exe and still getting the same error
- 22:22.59A-KO|tabletUse start /wait gcc
- 22:23.09ariscop__ has quit: Ping timeout: 252 seconds.
- 22:23.28kruugyeah, `start /wait` needs to be at the beginning of the line
- 22:23.47kruugwhy are you recompiling and running the same thing 100 times anyways?
- 22:23.54A-KO|tabletmalware? :D
- 22:24.41circ-user-vwR7xstart /wait gcc prog.c -o p.exe -lm && p.exe results in 'p.exe' is not recognized as an internal or external command for every 3rd iteration and Access is denied for every 3rd iteration
- 22:25.06circ-user-vwR7xI am recompiling it million of times
- 22:25.11nyuszika7huse 'start /wait' for both of them
- 22:25.12A-KO|tabletstart /wait gcc prog.c -o p.exe -lm
- 22:25.13dan2k3k4 joined the channel.
- 22:25.15A-KO|tabletstart /wait p.exe
- 22:25.22nyuszika7hnobody told you to remove 'start /wait' from the other one
- 22:25.39\mSg joined the channel.
- 22:25.49kruugcirc-user-vwR7x: WHY are you rcompiling the same thing and then running it, though?
- 22:26.05circ-user-vwR7xkruug: that is a demo of the bug
- 22:26.08qu4nt1n joined the channel.
- 22:26.13kruugit's not a bug, though
- 22:26.16Randall_ joined the channel.
- 22:26.23kruugwell, it is, but it's a fixed bug
- 22:26.26circ-user-vwR7xstart /wait gcc prog.c -o p.exe -lm && start /wait p.exe results in 'p.exe' is not recognized as an internal or external command for every 3rd iteration and Access is denied for every 3rd iteration
- 22:27.11Randall_Is this an appropriate channel for asking questions about windows development
- 22:27.22Mark|Wrk is now known as Mark|Wrk|Away.
- 22:27.32circ-user-vwR7xNow, you demonstrated your level of competence below the bottom.
- 22:28.08_tv_ has quit: Read error: Connection reset by peer.
- 22:28.10circ-user-vwR7xI do not know which 30 years of dev you are talking about but sleep 1 in the loop executes serially, not asynchronously also.
- 22:28.28TheBardRandall_, if its programming related, try one of the language channels, or ##windows-coding #winapi
- 22:28.34kruugno, that pauses the thread, circ-user-vwR7x
- 22:28.43Randall_Cool Thank yout TheBard
- 22:29.18circ-user-vwR7xCan you imagine: p.exe does pause the thread also!
- 22:29.50circ-user-vwR7xas well as gcc and all other commands in the batch
- 22:29.57Relapse has quit: Quit: Trying to focus..
- 22:30.07kruugno it doesn't
- 22:30.15kruugsince those are external tools outside of your script
- 22:31.33circ-user-vwR7xWho are you trying to cheat?
- 22:32.09circ-user-vwR7xI have checked, increasing the delay in the p.exe file so that it does not terminate immediately. And I am having p.exe appearing one after another, not all together.
- 22:32.14sepeckcirc-user-vwR7x: I am not going to warn you again about this.
- 22:32.39kruugcirc-user-vwR7x: it's your issue, not Microsofts and not ours
- 22:32.54Slacko_Live_CD has quit: Ping timeout: 264 seconds.
- 22:33.29circ-user-vwR7xStart.exe was introduced exactly to execute external programs asynchronously. The default mode is blocking.
- 22:33.44Haricophile joined the channel.
- 22:34.32circ-user-vwR7xkruug: I understand. This channel exists exclusively to misinform the people and explain them that thir (windows) problems are their own, not your or Windows problems.
- 22:34.38ChanServ gave channel operator status to sepeck.
- 22:34.39sepeck gave +q to *!*@sushi.pld.ttu.ee.
- 22:34.39sepeck took channel operator status from sepeck.
- 22:35.06Baronawesome has quit: Quit: ZNC - http://znc.in.
No comments:
Post a Comment