FreeLibrary() Function

Using Rob Bayer’s tutorial on his website on using the tokenizer.dll, he says use FreeLibrary(myLib); to free up memory used by the dll, but when I do that (at every point of closing down the program), my program crashes. It works without loading and freeing tokenizer.dll, but it crashes when I do either.

Does anyone have an idea why this happens, or if it’s happened to you?

[EDIT]: After looking Rob’s code, I fixed most of my problem…I still have a memory leak though…debug to the rescue! [/EDIT]