Click here to Skip to main content
15,897,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I built an application that runs alright on Windows 7 and and XP but when I tried that on my home computer (Vista Home Premium),

at very start, it says Can not open shared memory region and then it quits.

What is that? Please help how to resolve this issue.

Thanks

Furqan
Posted

1 solution

It's impossible to say because we have no idea what your application does, what it was doing at the time of the exception, what resources your app is using (i.e.: databases, files, )... nothing.
 
Share this answer
 
Comments
Furqan Sehgal 19-Aug-11 14:34pm    
Thanks Dave.
It uses database to check some entries at start, at the time when it throws error.
Dave Kreskowiak 19-Aug-11 18:00pm    
OK, WHICH database? Is it some edition of SQL Server??
Furqan Sehgal 20-Aug-11 3:31am    
Yes, it is SSCE database
Dave Kreskowiak 20-Aug-11 9:29am    
SQL Server Compact Edition?

0) Make sure the SQL Server CE Runtime SP2 is installed.

1) Try running the app as an Administrator.

2) Make sure your storing the database file in an unprotected folder. Putting it under Program Files doesn't qualify. The file must be writable to normal users. If you have questions on whether it is or isn't, just try to create a Text File in the folder from Explorer. A normal folder for data would be C:\ProgramData\<your application name>.
Furqan Sehgal 20-Aug-11 11:35am    
That works......... Thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900