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

RSocketServ faults in Fuser DLL

0 replies · 1,256 views · Started 13 September 2006

Symbian UIQ SDK - v2.1
Codewarrior for Symbian OS - v3.1.1
Crossfire for VB.NET - v5.6.1

The Fuser DLL works correctly, until RSocketServ is added, which causes a kern-exec 3.
Substituting RSocketServ for TNameEntry causes the problem, so I assume it is the TNameEntry constructor which is at fault.
Am I missing a library?

Regards,

David.

Code as follows...

// Fuser code

GLDEF_C TInt E32Dll(TDllReason reason)
{
return KErrNone;
}

EXPORT_C TInt32 nameLookup(const TUint16* fnname)
{
TInt fnLookup = -1;
if(wcscmp((wchar_t*)fnname,L"TestFunction"😉==0)
{
fnLookup = 2; // ordinal of testFunction
}
return fnLookup;
}

void EXPORT_C testFunction(void* pv)
{
// kern-exec 3 here...
RSocketServ iSocket;
}

/*
Libraries:
edllstub.lib
euser.lib
apparc.lib
estlib.lib
cone.lib
eikcore.lib
ecrt0.lib
esock.lib
insock.lib
fbscli.lib
commdb.lib
edll.lib
*/