C ++ client <--> SAP BC4.6 problem

Hi all.
I am trying to integrate SAP with VC6 using SAP Business connector 4.6 on windows 2000 Server.
I am facing some problems in this case. I would
appreciate if you can provide some quick help in this regard. Client program is
running on sun jdk1.3.1_08.

I want to call a service in Business Connector from VC6. I am able to create the c client code ( .c and .mak files) for the service in BC Integrator using compose->generate client code.
But when i compile and run c client code, after the statement “connectCcUserPass(cc, server, user, password)” setting when this is executed, the system gives fatal error.

Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x6d468c78
Function name=JVM_FindSignal

Current Java thread:

Dynamic libraries:
0x00400000 - 0x00419000 H:\cSource\Hrinfo\Hrinfo.exe
0x77F80000 - 0x77FFA000 C:\WINNT\system32\ntdll.dll
0x10000000 - 0x1000E000 D:\sapbc47\Developer\lib\wmJNI.dll
0x77E50000 - 0x77F2F000 C:\WINNT\system32\KERNEL32.dll
0x00230000 - 0x00240000 D:\sapbc47\Developer\lib\wmJNIc.dll
0x6D420000 - 0x6D4F8000 D:\sapbc47\Developer\jvm\bin\hotspot\jvm.dll
0x77DE0000 - 0x77E3F000 C:\WINNT\system32\USER32.dll
0x77F40000 - 0x77F79000 C:\WINNT\system32\GDI32.dll
0x77520000 - 0x77550000 C:\WINNT\System32\WINMM.dll
0x77D80000 - 0x77DDB000 C:\WINNT\system32\ADVAPI32.DLL
0x786F0000 - 0x7875D000 C:\WINNT\system32\RPCRT4.dll
0x78000000 - 0x78046000 C:\WINNT\system32\MSVCRT.dll
0x75DF0000 - 0x75E0A000 C:\WINNT\System32\IMM32.DLL
0x6D220000 - 0x6D227000 D:\sapbc47\Developer\jvm\bin\hpi.dll
0x6D3B0000 - 0x6D3BD000 D:\sapbc47\Developer\jvm\bin\verify.dll
0x6D250000 - 0x6D267000 D:\sapbc47\Developer\jvm\bin\java.dll
0x6D3C0000 - 0x6D3CD000 D:\sapbc47\Developer\jvm\bin\zip.dll
0x6D340000 - 0x6D348000 D:\sapbc47\Developer\jvm\bin\net.dll
0x74FC0000 - 0x74FCA000 C:\WINNT\System32\WSOCK32.dll
0x74FA0000 - 0x74FB3000 C:\WINNT\System32\WS2_32.DLL
0x74F90000 - 0x74F98000 C:\WINNT\System32\WS2HELP.DLL
0x777F0000 - 0x777FC000 C:\WINNT\System32\rnr20.dll
0x77950000 - 0x77974000 C:\WINNT\System32\DNSAPI.DLL
0x772F0000 - 0x77303000 C:\WINNT\System32\iphlpapi.dll
0x774D0000 - 0x774D5000 C:\WINNT\System32\ICMP.DLL
0x772D0000 - 0x772E7000 C:\WINNT\System32\MPRAPI.DLL
0x750D0000 - 0x750E0000 C:\WINNT\System32\SAMLIB.DLL
0x750F0000 - 0x7513F000 C:\WINNT\System32\NETAPI32.DLL
0x77BB0000 - 0x77BBF000 C:\WINNT\System32\Secur32.dll
0x75140000 - 0x75146000 C:\WINNT\System32\NETRAP.dll
0x77920000 - 0x77948000 C:\WINNT\system32\WLDAP32.dll
0x77A20000 - 0x77B0C000 C:\WINNT\system32\OLE32.DLL
0x77980000 - 0x77A1B000 C:\WINNT\system32\OLEAUT32.DLL
0x77360000 - 0x7738E000 C:\WINNT\System32\ACTIVEDS.DLL
0x77330000 - 0x77352000 C:\WINNT\System32\ADSLDPC.DLL
0x777E0000 - 0x777EE000 C:\WINNT\System32\RTUTILS.DLL
0x6DEE0000 - 0x6DF8D000 C:\WINNT\System32\SETUPAPI.DLL
0x77BE0000 - 0x77C3D000 C:\WINNT\System32\USERENV.DLL
0x77490000 - 0x774C2000 C:\WINNT\System32\RASAPI32.DLL
0x77470000 - 0x77481000 C:\WINNT\System32\RASMAN.DLL
0x774E0000 - 0x77502000 C:\WINNT\System32\TAPI32.DLL
0x71710000 - 0x71794000 C:\WINNT\system32\COMCTL32.DLL
0x70BD0000 - 0x70C35000 C:\WINNT\system32\SHLWAPI.DLL
0x77310000 - 0x77329000 C:\WINNT\System32\DHCPCSVC.DLL
0x77790000 - 0x77798000 C:\WINNT\System32\winrnr.dll
0x74F40000 - 0x74F5D000 C:\WINNT\system32\msafd.dll
0x74F80000 - 0x74F87000 C:\WINNT\System32\wshtcpip.dll
0x778F0000 - 0x77913000 C:\WINNT\system32\imagehlp.dll
0x72920000 - 0x7294D000 C:\WINNT\system32\DBGHELP.dll
0x68BD0000 - 0x68BDB000 C:\WINNT\System32\PSAPI.DLL

Local Time = Fri Jun 20 19:32:08 2003
Elapsed Time = 396

HotSpot Virtual Machine Error : EXCEPTION_ACCESS_VIOLATION

Error ID : 4F530E43505002BD

Please report this error at


Java VM: Java HotSpot™ Client VM (1.3.1_08-b03 mixed mode)

If you have a working c++ client code for calling a service in SAP BC, please help me.