Read-only archive of the All About Symbian forum (2001–2013) · About this archive

Accessing a DLL??

1 replies · 2,689 views · Started 07 April 2005

Hi All,
While porting a C++ apllication tested on windows environment to WINS platform we are facing one problem.We have a DLL which exports certain functions.The size of DLL goes to around 68 KB.After linking an exe with this DLL(exe calling one of its exported function) when we execute the exe we get the following error message at the very start of the exe.
"The application failed to initialize properly (0xc00000005).Click on ok to terminate the application".
However when i continue linking with the above DLL , but comment the exported function call,also link with another DLL of size 32 KB calling it's exported function instead of previous dll exported function,the exe runs smoothly.
I could not trace any obvious difference between the 2 dll's except that the former comprises of 7-8 files containing few functions per file,some classes & little bit processing while the later is just a sample DLL comprising of just a single file & a single function which is exported besides symbian pre-requisites.

Thanx in advance
Chandra Prakash

Hi All,
Maybe the problem is not clear to the forum.I am explaining it in a simpler way.I have an exe(test.exe) which i am using as follows

Case 1: I have a dll(FirstDLL.dll) & an exported function of this dll(FuncFirst).I link test.exe with FirstDll.lib.When i call FuncFirst from test.exe i get the problem "application failed to initialize properly".

Case 2: I have another dll(SecondDLL.dll) & an exported function of this dll(FuncSecond).I link test.exe with SecondDll.lib.When i call FuncSecond from test.exe i get the desired output

Case 3: I link test.exe with FirstDll.lib & SecondDll.lib , only call FuncSecond,program runs successfully.

Case 4: I link test.exe with FirstDll.lib & SecondDll.lib , include call of FuncFirst,application failure problem reappears.

I need guidance as to what could be the probable cause of failure in the call of an exported function from FirstDll.

Thanx in advance

Regards
Chandra Prakash