|
If you ever wanted insight into the mind of a linux coder...
"There are three kinds of lies: lies, damned lies and statistics."
- Benjamin Disraeli
|
|
|
|
|
Whatever else, have you ever had a look how many Chrome processes are sometimes running, even with only 1 or 2 tabs open?
I currently have 13 processes for 3 tabs.
|
|
|
|
|
Brady Kelly wrote: I currently have 13 processes for 3 tabs.
3 tabs = 3 processes
+1 for main windows
+9 for extensions (each extension runs in a separated process)
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|
|
|
Well, this is all news to me, this SetParent() spanning processes.
I downloaded that project, and the browser opened in a separate window, not as a child of the winform. I am going to remain a skeptic until I see this properly.
Regards,
Rob Philpott.
|
|
|
|
|
Replace the exename from "iexplore" to the full path of calc.exe; once you have the handle you can set a new parent to the window. The new parent-window of the mainform does not have to be part of the application, it just needs to be an existing window handle.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Genius Eddy! I am now going to work out how to utilize this madness!
[edit: you're a y, not an ie, humble apologies]
Regards,
Rob Philpott.
|
|
|
|
|
Rob Philpott wrote: Genius Eddy! Wasn't my idea to build Windows that way, but yes, great OS at some points.
One way would be by wrapping functionality (and ui) inside a new standalone-application, and launch that instead of a thread. Makes debugging easier
Or a way to hook some extra functionality inside an existing application.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Well what I wanted to do, is to try and get two independent GUI threads working in the same window hierarchy, something I always thought was impossible. This would open the possibility of a process with lots of GUI threads (possible certainly, but not in the same window hierarchy as far as I knew).
This does that, and I've done it in a single process by spawning a second thread and making it execute the message pump of a second form. Completely independent yes, but when you 'join' them together with SetParent(), although we now have two separate GUI threads, they block each other.
ie. I created a replacement for calc.exe which was a form with a button with a Sleep(10000) behind it. Demo project works fine, but when you hit the button, the 'host' process is blocked as well - you can't drag it around or anything.
This makes sense I guess as one will send a MoveWindow message or something like that to the other, which is blocked, won't respond so blocks the other.
A small glimmer of opportunity, but its seems its not to be...
Regards,
Rob Philpott.
|
|
|
|
|
Rob Philpott wrote: I created a replacement for calc.exe which was a form with a button with a Sleep(10000) behind it. Demo project works fine, but when you hit the button, the 'host' process is blocked as well - you can't drag it around or anything. * Gives a stern look *
Well, your button code should not be blocking the UI-thread, as that is working the message-pump and minding it's own stuff. If you want to do something, do it from a new thread.
As soon as you block the other window too long, the process wil be reported by windows as being "unresponsive".
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
There is one main process, and each tab gets its own process. Chromium IPC is used to chat with each other. See Inter-process Communication (IPC) - The Chromium Projects[^]
A simple way to repro this is to have one process create a container window, and then have child processes create windows that are children of that container HWND. That said, Chrome does not really use HWNDs for its tabs, it uses WebKit. So the example I gave should not be taken literally
|
|
|
|
|
Typically, the browser frame is hosted in a process and every tab is hosted in a process. The main process (browser frame) is what you're interacting with and it delegates to the tab processes.
|
|
|
|
|
Joe Hisaishi - Dragon Boy[^]
Recently seen Spirited Away[^], great (anime) movie that I've wanted to see ever since it came out in 2001, but somehow never got around to watching.
I'm not into anime at all, but this movie is generally regarded as one of the best.
Anyway, the soundtrack is really good as well.
I like this song in particular, don't know why, but maybe because it's pretty epic
S(ound(track))OTW
|
|
|
|
|
Know what you mean about films you think that could be cool, I keep meaning to watch Howls Moving Castle! I kept hearing how good it was.
|
|
|
|
|
glennPattonWorking wrote: Howls Moving Castle I saw that one too, by sheer coincidence in the same week as Spirited Away (both movies by Miyazaki).
Howl's Moving Castle is also pretty cool, I can recommend it
|
|
|
|
|
|
Yeah, it's on my list.
Basically, I'm trying to see the entire top 250[^].
Miyazaki is in it 5 times, meaning 1/50th of the list is Miyazaki
It's fun, there's a lot of good stuff in that list, although I don't necessarily agree with it
|
|
|
|
|
I was one of the few who thought American Beauty was a terrible movie, that shouldn't be anywhere near the top 250 (or even top 1000). To see it right above Princess Mononoke is depressing.
Enjoy your video journey!
|
|
|
|
|
I've seen American Beauty last week, I liked it.
It's a little messed up though
I'd like to see Princess Mononoke, a friend of mine recommended it too
|
|
|
|
|
Grave of the Fireflies at #60? The most depressing anime ever. Oddly, it was released as a double feature with My Neighbor Totoro.
|
|
|
|
|
Paul Kemner wrote: Oddly, it was released as a double feature with My Neighbor Totoro. Wow
Too bad such movies are hard to get buy in the Netherlands.
All Japanese or American import, so it's very expensive and doesn't have Dutch subs.
Not that I really need the subs to be in Dutch, but it's nice to have.
|
|
|
|
|
Confusing vain notions for novel approaches (11)
If PeejayAdams ever spoke about himself in the third person, I would not vote for PeejayAdams.
|
|
|
|
|
Innovations ? anagaram
We can’t stop here, this is bat country - Hunter S Thompson RIP
|
|
|
|
|
Yes - well done.
If PeejayAdams ever spoke about himself in the third person, I would not vote for PeejayAdams.
|
|
|
|
|
Wizard of Id[^]
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|