Click here to Skip to main content
15,867,568 members
Home / Discussions / C#
   

C#

 
GeneralRe: Change of file Extension in C# Pin
Mycroft Holmes17-Aug-13 23:37
professionalMycroft Holmes17-Aug-13 23:37 
Questioncomponent for editing information in c# Pin
hadishf16-Aug-13 18:35
hadishf16-Aug-13 18:35 
AnswerRe: component for editing information in c# Pin
Mycroft Holmes16-Aug-13 20:41
professionalMycroft Holmes16-Aug-13 20:41 
GeneralRe: component for editing information in c# Pin
hadishf16-Aug-13 22:33
hadishf16-Aug-13 22:33 
GeneralRe: component for editing information in c# Pin
Mycroft Holmes16-Aug-13 23:10
professionalMycroft Holmes16-Aug-13 23:10 
GeneralRe: component for editing information in c# Pin
hadishf16-Aug-13 23:35
hadishf16-Aug-13 23:35 
GeneralRe: component for editing information in c# Pin
Mycroft Holmes17-Aug-13 0:09
professionalMycroft Holmes17-Aug-13 0:09 
QuestionSystem.Data.SQLite gives attempt to write to read only database Pin
rbsbscrp16-Aug-13 8:57
rbsbscrp16-Aug-13 8:57 
Hi All,

I am _occasionally_ (inconsistently) getting "Attempt to write to read only database" problems with System.Data.SQLite. Googling this issue brings up lots of pages talking about file/folder permission issues (especially with web servers).

I have a Windows Forms App and no web server is involved. Additionally, this problem happens inconsistently (like with every 20 Inserts) and I've got my database in %APPDATA%\MyApp folder (where %APPDATA% is set to the ...AppData\Roaming folder on my data drive). I have no reason to suspect a file/folder permissions problem.

I added a delay to each Insert and I observe that the number of, and likelihood of getting a "Attempt to write..." error is directly related to the length of the delay - a delay of 1 second after each Insert seems to *almost* completely relieve the problem.

Do I have a misconfiguration problem? Searching the net shows lots of positive comments for the stability and correctness of System.Data.SQLite and no solutions suggested except for file permissions config, but my system behaves like SQLite is tripping over itself. There are no other file operations (outside of the OS activity) happening at the same time. I'm out of ideas - help!

I'm using C# vs2008 (I think it's .net 3.5). It was a Win7 box but now it's a Win8 box (no difference for this issue).
QuestionRe: System.Data.SQLite gives attempt to write to read only database Pin
Eddy Vluggen17-Aug-13 2:36
professionalEddy Vluggen17-Aug-13 2:36 
AnswerRe: System.Data.SQLite gives attempt to write to read only database Pin
rbsbscrp19-Aug-13 11:40
rbsbscrp19-Aug-13 11:40 
AnswerRe: System.Data.SQLite gives attempt to write to read only database Pin
rbsbscrp19-Aug-13 11:48
rbsbscrp19-Aug-13 11:48 
AnswerRe: System.Data.SQLite gives attempt to write to read only database Pin
Jammer20-Aug-21 6:45
Jammer20-Aug-21 6:45 
QuestionGetting the position of desktop shortcut icons. Pin
Septimus Hedgehog16-Aug-13 8:51
Septimus Hedgehog16-Aug-13 8:51 
GeneralRe: Getting the position of desktop shortcut icons. Pin
harold aptroot16-Aug-13 9:55
harold aptroot16-Aug-13 9:55 
AnswerRe: Getting the position of desktop shortcut icons. Pin
Dave Kreskowiak16-Aug-13 9:58
mveDave Kreskowiak16-Aug-13 9:58 
GeneralRe: Getting the position of desktop shortcut icons. Pin
SledgeHammer0116-Aug-13 11:15
SledgeHammer0116-Aug-13 11:15 
GeneralRe: Getting the position of desktop shortcut icons. Pin
Dave Kreskowiak16-Aug-13 11:37
mveDave Kreskowiak16-Aug-13 11:37 
AnswerThanks everyone. Pin
Septimus Hedgehog17-Aug-13 21:52
Septimus Hedgehog17-Aug-13 21:52 
GeneralThe Random Class Pin
N8tiv16-Aug-13 3:43
N8tiv16-Aug-13 3:43 
GeneralRe: The Random Class Pin
Dave Kreskowiak16-Aug-13 3:59
mveDave Kreskowiak16-Aug-13 3:59 
GeneralRe: The Random Class Pin
N8tiv16-Aug-13 4:47
N8tiv16-Aug-13 4:47 
GeneralRe: The Random Class Pin
harold aptroot16-Aug-13 5:04
harold aptroot16-Aug-13 5:04 
GeneralRe: The Random Class Pin
N8tiv16-Aug-13 5:06
N8tiv16-Aug-13 5:06 
GeneralRe: The Random Class Pin
Keith Barrow16-Aug-13 5:55
professionalKeith Barrow16-Aug-13 5:55 
GeneralRe: The Random Class Pin
N8tiv16-Aug-13 6:19
N8tiv16-Aug-13 6:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.