more G-Labs products

Author Topic: Recommended Development Environment  (Read 4972 times)

January 20, 2015, 09:18:02 PM
Reply #15

Wibo

  • ***
  • Information
  • Full Member
  • Posts: 95
Thanks for the quick answer Gene!

The info you just provided was already known to me.

The strange thing about this is that the behavior between multiple checkouts is different.
With a checkout I don't mean Sourcesafe checkout.

I mean svn checkout in a completely empty folder.
Sometimes it failed to run and now you don't need to do anything to succesfully run HG.
The problem just disappeared.

regards,
Wibo.

January 20, 2015, 11:54:31 PM
Reply #16

Wibo

  • ***
  • Information
  • Full Member
  • Posts: 95
Sorry made a mistake.

The behavior is very reproducible, i copied a "fresh" checkout from a folder already build.

First time you take a checkout and run it has an exception.
After that it's fixed, second run works.

HG heals itself!

Call it a day...

January 21, 2015, 09:17:35 PM
Reply #17

Wibo

  • ***
  • Information
  • Full Member
  • Posts: 95
Hi Gene,

report as promised...

The exception is attached.

Setup for completeness:
win 7 pro 32 bits
VS2013Community
svn checkout into empty folder
start windows solution
build all

=========================
Checking HomeGenie\bin\debug
System.Data.SQLite.dll is present (version 1.0.85.0)
Checking HomeGenie\bin\debug\x86
SQLite.Interop.dll is present (version 1.0.85.0) (821,760 bytes)
Checking HomeGenie\bin\debug\x64
SQLite.Interop.dll is present (version 1.0.85.0) (1,064,960 bytes)
=========================

Run homegenie and the attached exception is thrown.
SHIFT-F5 to stop it.
Run again and everything is fine and stays fine.

=========================
Checked the same files as I did before and nothing changed.
Checked all files in the HomeGenie\bin\debug and subfolders.
No files are added.
=========================
It really some SQLLite thing, the exception takes place when HomeGenie.Service.Logging.StatisticsLogger.OpenStatisticsDatabase() is called.
The call causes the CLR to load SQLite.Interop.dll since it uses SQLiteConnection

Things I didn't try:
Updating to the latest SQLite 1.0.94.1
or dowgrading to the 1.0.66.0 (that's obviously for the RPi)
I didn't try to use filemonitor or other low level tools to find out what's missing the first time.
Don't know a lot of SQLite and google is full of issues on this problem.

Gene, if you want me to dig deeper, just tell.
I can perfectly live with this small issue. (The workaround is so easy)

regards,
Wibo.

January 22, 2015, 08:29:22 PM
Reply #18

Wibo

  • ***
  • Information
  • Full Member
  • Posts: 95
Hi Gene,

I decided to do literally what you told me.
Copy everything from HomeGenie\BaseFiles\Windows to HomeGenie\HomeGenie\bin\debug
The problems are gone than.

It feels unnatural to me to copy files like Dummy.cs and Windows.csproj to the bin\debug.
Hope you understand that I want to understand why I'm copying these files.

I'll take more time to learn HomeGenie, thanks for all the help.

regards,
Wibo.

PS: I'll update the tutorial