Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

Error executing (SpaceProxyPtr spaceProxy ( spaceFinder.find(spaceUrl) )

Hi,

I am doing the following and getting the following errors.

1) Create one DLL and the functions in the DLL calls the getters and setters of Gigaspaces (like WriteMultiple etc). 2) I am executing the functions of DLL through an exe. 3) While calling "(SpaceProxyPtr spaceProxy ( spaceFinder.find(spaceUrl) );" I am getting the following errors.

'TestInterface.exe': Loaded 'C:\Home\gigaspaces-xap-standard\gigaspaces-xap-premium-6.6.4-ga\cpp\examples\TestInterface\TestInterface\Debug\TestInterface.exe', Symbols loaded. 'TestInterface.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded. 'TestInterface.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols loaded. 'TestInterface.exe': Loaded 'C:\Home\gigaspaces-xap-standard\gigaspaces-xap-premium-6.6.4-ga\cpp\examples\TestInterface\TestInterface\Interface.dll', Symbols loaded. 'TestInterface.exe': Loaded 'C:\Home\gigaspaces-xap-standard\gigaspaces-xap-premium-6.6.4-ga\cpp\lib\win32\vs8.0\gscpplib.dll', No symbols loaded. 'TestInterface.exe': Loaded 'C:\jdk1.5.0_15\jre\bin\client\jvm.dll', No symbols loaded. 'TestInterface.exe': Loaded 'C:\WINDOWS\system32\user32.dll', No symbols loaded. 'TestInterface.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll', No symbols loaded. 'TestInterface.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', No symbols loaded. 'TestInterface.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', No symbols loaded. 'TestInterface.exe': Loaded 'C:\WINDOWS\system32\winmm.dll', No symbols loaded. 'TestInterface.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', No symbols loaded. 'TestInterface.exe': Loaded 'C:\WINDOWS\system32\wsock32.dll', No symbols loaded. 'TestInterface.exe': Loaded 'C:\WINDOWS\system32\ws2_32.dll', No symbols loaded. 'TestInterface.exe': Loaded 'C:\WINDOWS\system32\ws2help.dll', No symbols loaded. 'TestInterface.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.1433_x-ww_5cf844d2\msvcp80.dll', No symbols loaded. 'TestInterface.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.1433_x-ww_5cf844d2\msvcr80.dll', No symbols loaded. 'TestInterface.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.762_x-ww_5490cd9f\msvcp80d.dll', Symbols loaded. 'TestInterface.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.762_x-ww_5490cd9f\msvcr80d.dll', Symbols loaded. 'TestInterface.exe': Loaded 'C:\WINDOWS\system32\rdpsnd.dll', No symbols loaded. 'TestInterface.exe': Loaded 'C:\WINDOWS\system32\winsta.dll', No symbols loaded. 'TestInterface.exe': Loaded 'C:\WINDOWS\system32\netapi32.dll', No symbols loaded. 'TestInterface.exe': Loaded 'C:\WINDOWS\system32\psapi.dll', No symbols loaded. 07/07/2009 19:28:38 C++ calling JNI_CreateJavaVM

'TestInterface.exe': Loaded 'C:\jdk1.5.0_15\jre\bin\hpi.dll', No symbols loaded. 'TestInterface.exe': Loaded 'C:\jdk1.5.0_15\jre\bin\verify.dll', No symbols loaded. 'TestInterface.exe': Loaded 'C:\jdk1.5.0_15\jre\bin\java.dll', No symbols loaded. 'TestInterface.exe': Loaded 'C:\jdk1.5.0_15\jre\bin\zip.dll', No symbols loaded. 07/07/2009 19:28:38 C++ ---=== Created JVM OK ===--- 'TestInterface.exe': Loaded 'C:\Home\gigaspaces-xap-standard\gigaspaces-xap-premium-6.6.4-ga\cpp\lib\win32\vs8.0\cppintegrator.dll', No symbols loaded. HEAP[http://TestInterface.exe|http://testinterface.exe/]: Invalid allocation size - CCCCCCD0 (exceeded 7ffdefff) First-chance exception at 0x7c81eb33 in TestInterface.exe: Microsoft C++ exception: std::bad_alloc at memory location 0x0012f8c4.. HEAP[http://TestInterface.exe|http://testinterface.exe/]: Invalid allocation size - CCCCCCCD (exceeded 7ffdefff) First-chance exception at 0x7c81eb33 in TestInterface.exe: Microsoft C++ exception: std::bad_alloc at memory location 0x0012f270.. First-chance exception at 0x7c81eb33 in TestInterface.exe: Microsoft C++ exception: [rethrow|http://www.openspaces.org/forum/] at memory location 0x00000000..

Please give some suggestions. Thanks ..

Jitendra h4. Attachments

[test.cpp|/upfiles/1375970844799387.txt]

[APIUsageExampleClasses.gs.xml|/upfiles/1375970844802487.xml]

[summit_dc_gigaspace.cpp|/upfiles/13759708444333787.txt]

{quote}This thread was imported from the previous forum. For your reference, the original is [available here|http://forum.openspaces.org/thread.jspa?threadID=3169]{quote}

asked 2009-07-07 18:42:06 -0500

jknayak gravatar image

updated 2013-08-08 09:52:00 -0500

jaissefsfex gravatar image
edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
0

From the stack log I can see you mixed debug version runtime with release, please use only release runtime dll's.

answered 2009-07-08 03:15:12 -0500

ezer gravatar image
edit flag offensive delete link more

Comments

Thanks a lot.
I am able to run it successfully.

jknayak gravatar imagejknayak ( 2009-07-08 08:01:33 -0500 )edit
0

Why you are not using the CPP API we have?

Shay
Sent on the Sprint® Now Network from my BlackBerry®

Attachments

  1. test.cpp
  2. APIUsageExampleClasses.gs.xml
  3. summitdcgigaspace.cpp

answered 2009-07-07 18:50:00 -0500

shay hassidim gravatar image
edit flag offensive delete link more

Comments

Do you say, I should use CPP API directly from my application ? I thought it would be better if I can wrap those with some code. h4. Attachments

[test.cpp|/upfiles/13759708454723928.txt]

[APIUsageExampleClasses.gs.xml|/upfiles/13759708459481128.xml]

[summit_dc_gigaspace.cpp|/upfiles/13759708455170528.txt]

jknayak gravatar imagejknayak ( 2009-07-07 18:53:12 -0500 )edit

So your test using our CPP API ?

Shay

Attachments

  1. test.cpp
  2. APIUsageExampleClasses.gs.xml
  3. summitdcgigaspace.cpp
shay hassidim gravatar imageshay hassidim ( 2009-07-07 18:56:00 -0500 )edit

Yes, I am trying to use Gigaspaces API's like SpaceProxyPtr spaceProxy ( spaceFinder.find(spaceUrl) ); spaceProxy->writeMultiple() spaceProxy->readMultiple() etc h4. Attachments

[test.cpp|/upfiles/13759708453322768.txt]

[APIUsageExampleClasses.gs.xml|/upfiles/13759708455801168.xml]

[summit_dc_gigaspace.cpp|/upfiles/1375970845898068.txt]

jknayak gravatar imagejknayak ( 2009-07-07 18:59:09 -0500 )edit

OK. Got it. Thanks. Missed this.
Please use the CPP API with the premium edition.
Make sure you can run the hello world example first.
Let me know if you got any problems.
Shay

Attachments

  1. test.cpp
  2. APIUsageExampleClasses.gs.xml
  3. summitdcgigaspace.cpp
shay hassidim gravatar imageshay hassidim ( 2009-07-07 19:02:03 -0500 )edit

Hi,
Not only HelloWorld, I am able to run all the examples well.
There is absolutely no issue.
I just want to create one DLL which will wrap the Gigaspaces API's.
My requirement is that I can just hook that DLL to any application to set and get values.
For the testing purpose I have created the DLL and DLL creation is successful.
I am creating one exe to use the DLL and getting the errors posted above.

Attachments

  1. test.cpp
  2. APIUsageExampleClasses.gs.xml
  3. summitdcgigaspace.cpp
jknayak gravatar imagejknayak ( 2009-07-07 19:08:22 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2009-07-07 18:42:06 -0500

Seen: 94 times

Last updated: Jul 08 '09