·Î±×±â·Ï »ó¿ë ¶óÀ̺귯¸®¸¦ ¾²¸é ÁÁ°ÚÁö¸¸, °¡°Ý/ÆíÀǼº/°£¼Ò¼ºµîÀ» °í·ÁÇÒ¶§
Á÷Á¢ ¸¸µé¾î ¾²°í ÀÖ´Â ThreadLog ¶óÀ̺귯¸® ÀÔ´Ï´Ù.
Main Thread °¡ ¾Æ´Ñ º°µµÀÇ Thread ¸¦ ÀÌ¿ëÇϸç, Å¥¹æ½ÄÀ¸·Î ·Î±×¸¦ ±â·ÏÇÕ´Ï´Ù.
¶ÇÇÑ ±â·ÏÇÒ ·Î±×°¡ ¾øÀ» ¶§´Â ·Î±× Thread °¡ Suspend »óÅ·Πµé¾î°¡±â ¶§¹®¿¡
ºÎÇÏ°¡ Àû½À´Ï´Ù. Çѹø¿¡ ¸¹Àº ·Î±×¸¦ ³²±â´Â °æ¿ì¿¡´Â ¸ð¸£°ÚÁö¸¸ ±×¿ÜÀÇ ¼Ò±Ô¸ð ÇÁ·ÎÁ§Æ®¿¡
»ç¿ëÇϱ⿡´Â º° ¹«¸®°¡ ¾ø½À´Ï´Ù.
(ŸÀ̸ӷΠ10 micro second ¸¶´Ù ·Î±×¸¦ ±â·Ï½ÃÅ°´Â Å×½ºÆ®¸¦ ÇØ º¸¾ÒÀ¸³ª ¾Æ¹« ¹®Á¦°¡ ¾ø¾ú½À´Ï´Ù.)
¼Ò½ºµµ ¾ÆÁÖ °£´ÜÇÏ¿© °ø°³ÇØ µå¸³´Ï´Ù.
[»ç¿ë¹ý]
ÇÁ·ÎÁ§Æ® ÆÄÀϾȿ¡
//Log Thread »ý¼º Log.CreateLog( ExtractFilePath( Application.ExeName) + '\AppLog.log');
Application.Initialize; Application.CreateForm(TForm1, Form1); Application.Run;
//Log Thread Æı« Log.Close;
ÇÁ·ÎÁ§Æ® ÆÄÀϾȿ¡ À§ ó·³ ÇØ ÁÖ½Ã¸é »ç¿ëÁغñ ³¡!!! (Âü ½±ÁÒ?)
·Î±×¸¦ ±â·ÏÇÏ°í ½ÍÀº À¯´Ö ÆÄÀÏÀÇ ÇÏ´Ü uses Àý¿¡ ThreadLog ¸¦ uses ÇÑÈÄ
Log.LogMsg('MainForm Create');
ÀÌ·±½ÄÀ¸·Î ·Î±×³»¿ëÀ» ³²±â½Ã¸é ½ÇÇàÆÄÀÏÀÌ À§Ä¡ÇÑ °æ·Î¿¡ AppLog.log ÆÄÀÏÀÌ »ý¼ºµË´Ï´Ù.
¸Þ¸ð¸®¸¯ Å×½ºÆ® ÇßÀ¸¸ç, ÷ºÎ¿¡ ¿¹Á¦µµ Æ÷ÇÔÇØ µå¸®´Ï Å×½ºÆ® ÇØ º¸½Ã±â ¹Ù¶ø´Ï´Ù.
|