Remove a driver from memory.
Copy Code
|
|
---|---|
AT_ERRCOUNT ACCUAPI IG_ISIS_drv_unload( HISISDRV hDriver ); |
Name | Type | Description |
---|---|---|
hDriver | HISISDRV | The handle of the driver to unload. |
Error count.
This function does not process image pixels.
The following example loads, initializes, and links a set of drivers, performs some work, and then unlinks and unloads the drivers:
Copy Code
|
|
---|---|
IG_ISIS_drv_load(0, szScanner, &hScan, 0);IG_ISIS_drv_init(hScan, szScanner, 0);IG_ISIS_drv_load_init_pipe(0, "RAS2RUN | RUN2G4 | PIXFPACK", &hPipe, 0);IG_ISIS_drv_link(hScan, hPipe); /* Perform ISIS functions on pipe */ /*Unload the pipe */IG_ISIS_drv_link(hScan, 0);IG_ISIS_drv_unload(hScan);IG_ISIS_drv_unload_pipe(hPipe); |
The IG_ISIS_drv_unload function removes a driver from memory and resets interrupt vectors and other system resources.
IG_ISIS_drv_unload must be called before terminating an application program for each driver loaded by IG_ISIS_drv_load or IG_ISIS_drv_load_init_pipe. If drivers are not unloaded by this function, then interrupt vectors and other system resources will not be properly reset. IamgeGear does not automatically unload any drivers. Drivers left in memory after your application terminates may continue to occupy memory.
IG_ISIS_drv_unload can be called at any time. It performs all necessary cleanup when unloading a driver.