I have very strange problem.
I am working on ActiveX DLL. There is no UI (except MsgBox) in the DLL. Only code for access to DB and mathematical computations. The DLL is working for a few years without any problem. Yesterday I have add a few lines of code (only some for i... next i loops) and suddenly when a function is returning the exception 0xC0000029 is raised. In VB6 IDE the function works OK without any problem and withou any exception. In a stand alone application the DLL crashes. I have tried optimized/non-optimized version of the DLL, but I have got the same results - crash. I have VB6 SP6 installed. OS - Windows 2000 with latest patches.
The new code is in the function which crashes. After the new code, before returning, there is another function, which is called. When I comment some code inside that function OR new added code in the caller ther is no problem (except that DLL algorithm is bad :-( ).
I am suspicious of some kind of stack error. I am not sure if it is correct when I redim some arrays passed to functions ByRef. But there wasn't any problem with it since yesterday.
Thank you for any hint.
Ivo
I am working on ActiveX DLL. There is no UI (except MsgBox) in the DLL. Only code for access to DB and mathematical computations. The DLL is working for a few years without any problem. Yesterday I have add a few lines of code (only some for i... next i loops) and suddenly when a function is returning the exception 0xC0000029 is raised. In VB6 IDE the function works OK without any problem and withou any exception. In a stand alone application the DLL crashes. I have tried optimized/non-optimized version of the DLL, but I have got the same results - crash. I have VB6 SP6 installed. OS - Windows 2000 with latest patches.
The new code is in the function which crashes. After the new code, before returning, there is another function, which is called. When I comment some code inside that function OR new added code in the caller ther is no problem (except that DLL algorithm is bad :-( ).
I am suspicious of some kind of stack error. I am not sure if it is correct when I redim some arrays passed to functions ByRef. But there wasn't any problem with it since yesterday.
Thank you for any hint.
Ivo