Hello,
My C# application using Sqlite DB to store data.
As I know this db allows multiple read at the same time, but only one write at a time.
I want to run multiple instances of the same app and each one will read from the same db file.
and here is the error that I get:
error happens when...
Chris Lewis from MSDN forums suggested very good solution that I would use:
He suggested to manually update the LastWriteTime of the file, and its works!
https://msdn.microsoft.com/en-us/library/system.io.filesysteminfo.lastwritetime(v=vs.110).aspx
yoohoo! :excitement:
I did it because I start multiple instances of this app and I want the event to raise only when another instance of this app starts...
btw I think the event fire anyway even if its after the code.
about my question:
I found forum post at MS or somewhere where they say to decrease/increase the...
I just tried it, error event also not raised...:miserable:
Idk what to do, I can't proceed with my app update because its depends on this stuff
I though about another ways but using FileSystemWatcher is the most efficient way
is there any other way to do that? but without timers?
Hello,
Thank you for the replay!
I did a little research and found out that this problem occurs when I try to write to file on lan drive (network location)
I have USB drive connected to my router and the file is stored there, and in my app I specify the IP address and the directory.
what happens...
Hello,
My app write to file and I also set systemfilewatcher on that file to monitor changes.
filewatcher is used for case when there is more than one instance of this app is running and they all will write to the same file so all the other instances of this app will be updated.
when I use...
Solved this problem by using Label with AccessText:
<Label x:Name="Task" FontWeight="Bold" FontSize="14" Padding="0" Margin="2,0" ScrollViewer.VerticalScrollBarVisibility="Disabled" VerticalAlignment="Top">
<AccessText x:Name="TaskText" TextWrapping="WrapWithOverflow"...
Hello,
I have userControl and textbox in it.
I want to make userControl resize itself depends on textbox actual height.
my textbox height is changing when I start new line.
but userControl size can only grow.
I used this binding in userControl:
Height="{Binding ActualHeight, ElementName=txtTask...
After asking in C# IRC channel I got the answer:
SELECT ID, CASE WHEN EXISTS (SELECT ID FROM Log AS b WHERE b.ID = a.ID) THEN 1 ELSE 0 END AS IsActive FROM Clients AS a
Hello!
I don't even know what to search in google for this question, so I hope someone here can help.
What I want to do is:
I have two tables: Clients and Log
they both have ID field which is the same
Clients table has list of all clients with their details and there is field called IsActive...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.