1

Closed

File creation failed

description

With the latest version of spss.dll, the file creation is failed (both in mycode and also in the Simpledemo provided by the author). I tried to run the simpledemo and here's the error:
"SPSS function spssGetNumberofVariables returned error code SPSS_DICT_NOTCOMMIT". The error occurs while executing this line "Using doc As SpssDataDocument = SpssDataDocument.Create("example.sav")". Can you please check this?

thanks
Kit.
Closed Mar 19, 2010 at 5:25 AM by AArnott
Good to hear. I have no idea why the files must be in system32. Maybe it's a windows xp thing. Definitely doesn't have to be there in Windows 7.

comments

AArnott wrote Mar 17, 2010 at 11:53 PM

What version of spssio32.dll are you running spss.dll against? It should be the same version of spssio32.dll that spss.dll ships with -- otherwise all bets are off. The SimpleDemo works for me in this configuration.

afeuer wrote Mar 18, 2010 at 9:52 AM

You were right, I had the older version of spssio.dll in the system32 folder. After seeing your post, I just replaced it with the new version that was in the binfolder of the simple demo. Now am getting an error "The spssio32.dll:The specified module could not be found. (Exception from HRESULT: 0x8007007E) could not be loaded".
Alright, this is what I did - unzipped the download. Replaced the new dll in system32 folder and executed the simpledemo.vbproj. Is there anythingelse that I should do?
Thanks and regards
Kit

AArnott wrote Mar 18, 2010 at 2:28 PM

Afeuer, With the newer version of spssio32.dll, several other native dependencies are now required as well. You can find all these DLLs in the .zip file you download from this site. I recommend you nuke your spssio32.dll that's in your system32 directory, and put spssio32.dll and all the other native dependencies in your application's Bin folder (or right next to the .exe) so that they're all found reliably.

afeuer wrote Mar 18, 2010 at 4:30 PM

Well Arnot, I removed the spssid32.dll from system32 folder and tried to run the simpledemo (where the dlls are available right next to the exe) both the exe and source emitted the same error that I mentioned earlier. Then I copied all the dlls into system32 folder and now it works. So theres no problem with the code. Thumbs up to you :)
Do you have any idea about why the dlls need to be copied to system32 folder. I am running windows Xp version 2002 SP3 (36 bit).
PS: You may mark this issue closed. Many thanks.
Kit