windows dll bug - need suggestions
I'm staring at a Lispworks + windows DLL bug that I haven't figured out - maybe someone can make a suggestion that will break my mental logjam: DLL "A" is a commercial dll - I want to give it an HWND to a capi:output-pane and have the dll scribble on the window DLL "B" is a small C wrapper that lessens the amount of plumbing that I have to do My LWW program loads the two dll's, then calls DLL "B", which calls DLL "A", and DLL "A" writes something onto my capi:output-pane. Test 1: When I perform a simple test - open a capi:output-pane, then call "B" - it works. Test 2: But when I create a :display-callback for the output-pane, and call "B" from the :display-callback, the result crashes horribly (register dump). It acts almost as if the dll's were not loaded, or some instance data has not been instantiated. Trying to load the dll's in the (initialize-instance :after) method of the parent interface (i.e. hoping to load the dll's from the process belonging to the interface) doesn't change the behaviour. I'm probably missing something "obvious". Any thoughts? thanx pt