When To initialize global and static data For DLL
2009-07-10 18:15
423 查看
As we all know, dll's entry point is DllMain(). Now consider when to initialize all global and static data, the time happens earlier than calling DllMain()!
You can easily know this by debugging.
In CRTMainStartUp(),
First: _INIT_CRT --- to do globa and static initalization.
Second: call DllMain.
Remember this.
You can easily know this by debugging.
In CRTMainStartUp(),
First: _INIT_CRT --- to do globa and static initalization.
Second: call DllMain.
Remember this.
相关文章推荐
- System.Data.SqlClient.SqlException: Cannot insert explicit value for identity column in table 'Food' when IDENTITY_INSERT is set to OFF
- How to manage and balance “Huge Data Load” for Big Kafka Clusters---reference
- What are the most important data structure and algorithms to prepare for Google Interview?
- Bug #83713 Slave failed to initialize relay log info after OS crash when use MTS and GTID
- When does the Oracle library for st_shapelib.dll need to be changed?
- A Developer's Guide to Data Modeling for SQL Server: Covering SQL Server 2005 and 2008
- Let there be Color!: Joint End-to-end Learning of Global and Local Image Priors for Automatic Image
- 论文笔记之:Let there be Color!: Joint End-to-end Learning of Global and Local Image Priors for Automatic
- Method, apparatus and system for acquiring a global promotion facility utilizing a data-less transaction
- How to load the specified mscordacwks.dll for managed debugging when multiple .NET runtime are loaded in one process
- A more elegant solution to display GridView header and footer when the data source is empty. (cite)
- SQL Script for select data from ebs and make a csv file to FTP
- Is it OK to mix categorical and continuous data for SVM (Support Vector Machines)?
- Library for Converting Data to and from C Structs for Lua 5.1
- SQL Script for select data from ebs and make a csv file to FTP
- How to declare and initialize a static const array as a class member?
- Two instances of global variable created when DLL depends on static library
- how to initialize Static data member in C++ (怎样初始化类的static数据成员)
- Script to Collect Data Guard Physical and Active Standby Diagnostic Info for 10g and above(+RAC)
- 6 ways to download free intraday and tick data for the U.S. stock market