Posts

Showing posts from February, 2007

mozilla build from source code

1. get the mozilla source code -------------------------------------------------- Get source code from https://developer.mozilla.org/en/Download_Mozilla_Source_Code Copy the firefox-1.5-source.tar.tar in e:\ Create a directory called e:\mozilla Extract the firefox-1.5.source.tar.tar into mozilla directory 2. install cygwin -------------------------------------------------- run http://www.cygwin.com/setup.exe choose the first type of install (the first form with the 3 radio-buttons) and choose "DOS" style line endings as you read the http://developer.mozilla.org/en/docs/Windows_Build_Prerequisites you see that you need to make sure that the cygwin packages include these: ash -- UNIX-like command line interpreter shell (Base category) coreutils -- GNU core utilities (includes fileutils, sh-utils, and textutils) (Base category) diffutils -- file comparison utility (Base category) findutils (Base category) gawk -- pattern matching language (Base and Interpretors categories) grep ...

threading on GDI objects

When you dealing with multithreading in your code, every data you use in more than one thread it should be a subject to your attention in the way its used in those threads. Similary, using GDI objects in multithreading does not require any special code beside some (natural) common-sense 'not to do' things, which is, dont read and modify un-synchronized in the same time. Also, remember that they have thread affinity (the thread which created the object should be the one who deletes it). The following text is from the Raymond Chen wonderful blog: Window objects: thread which created the window its said to be the window 'owner'. Messages are dispatched to a window procedure only on the thread that owns it, and generally speaking, modifications to a window should be made only from the thread that owns it. Although the window manager permits any thread to access such things as window properties, styles, and other attributes such as the window procedure, and such accesses ar...