INFORMIX
DataBlade Developers Kit User's Guide
Chapter 9: Testing and Debugging DataBlade Modules on Windows
Home Contents Index Master Index New Book

Using the Dynamic Link Library File

A DataBlade module exists in the Informix database server as a dynamic link library. The dynamic link library file is loaded into the database server after the database server is started, when one of its routines is called; it is unloaded when the database server is stopped.

Replacing a Dynamic Link Library File

When a DataBlade module is loaded onto an Informix database server, the database server stores it in the database server memory map. If you overwrite a dynamic link library file while it is loaded in the database server, you cause a sharing violation. Therefore, to unload the old dynamic link library file and load the new one, you must stop and restart the database server.

Warning: If you do not stop and restart the database server after replacing a dynamic link library, you receive warnings about replacing a file in use. The database server might fail if you call the replaced dynamic link library.

Dynamic Link Library Permissions

For an Informix database server to load a dynamic link library, the library's attributes must be set to read-only. The project.bld file is normally set to read-only if you compile using the WinNT.mak makefile.

If you use the Visual C++ project.mak file, however, you must set the attributes of a dynamic link library to read-only by displaying the Properties dialog box for the file using Windows Explorer, then checking the Read-only check box.

When you replace an existing dynamic link library with a new one, you might need to remove the read-only condition from the file properties. If you are testing and debugging locally on one computer, you might have permission to overwrite files with read-only attributes.

See "Compiling on Windows NT" for more information on compiling.




DataBlade Developers Kit User's Guide, version 3.6
Copyright © 1998, Informix Software, Inc. All rights reserved.