Ok I got a really weird one - or maybe its me.
In PB/DLL 6 I declared and external call to a dll. In a very simple WinMain I then call the function from the dll. The first time I make the call it fails, the second and third not problem. If I switch the order of the called functions always the first one fails. Below is the WinMain. If I double up on the first call it works fine. So I am thinking that the external dll does not have enough time to finish its constructor. A simple work around it to make the call twice and ignore the first call. Does anyone have any more ideas.
Thanks
In PB/DLL 6 I declared and external call to a dll. In a very simple WinMain I then call the function from the dll. The first time I make the call it fails, the second and third not problem. If I switch the order of the called functions always the first one fails. Below is the WinMain. If I double up on the first call it works fine. So I am thinking that the external dll does not have enough time to finish its constructor. A simple work around it to make the call twice and ignore the first call. Does anyone have any more ideas.
Code:
FUNCTION WINMAIN (BYVAL CurInst AS LONG, _ BYVAL PrvInst AS LONG, _ CmdLine AS ASCIIZ PTR, _ BYVAL CmdShow AS LONG) EXPORT AS LONG LEDFastBlink LEDSolid LEDOff END FUNCTION
Comment