There's a whole bunch of unit tests that you can run. Have you run them on both platforms? If you don't see any differences in the failures (and there are more than a few of those) then it must be something else. Is there a unit test that uses foreach? Might be time to write one! If it really is the foreach that's causing an issue on 64 bit, I'd recommend posting a question about it on StackOverflow.com.
On Fri, Feb 27, 2009 at 8:59 AM, [email protected] < [email protected]> wrote: > > Yes I'd love to help isolate but all I did was run the example > project. It doesn't make sense to me either that this would happen > due to X64. I will do a step-through on my 32 bit computer and my 64 > bit to see where the processes diverge. > > On Feb 27, 11:12 am, Pascal Craponne <[email protected]> wrote: > > That's probably not related to x64. Internally, DbLinq use custom > > expressions to identify its own entities (such as tables, columns, etc.). > > When it splits Expressions into SQL parts and CLR parts, all CLR parts > are > > in theory non-custom Expressions... If everything works fine. But in some > > cases, some custom expressions remain, and of course, the Expression > > compiler doesn't know how to handle them, because they don't make sense. > > This doesn't help, but only explains. > > > > Maybe you could help by trying to isolate what causes the problem, and > what > > needs to be removed to work around it. > > > > Pascal. > > > > jabber/gtalk: [email protected] > > msn: [email protected] > > > > On Fri, Feb 27, 2009 at 16:10, [email protected] < > > > > [email protected]> wrote: > > > > > I am trying to use dbLinq for sqlite. I ran the example project on a > > > 32 bit computer and everything went fine - save for the empty database > > > that was included in the example. > > > > > Now I am trying to use this on a 64 bit computer. I ran into one > > > issue regarding building as x86 which I found the solution to. But > > > now in the following code, I get an exception: > > > > > var q2 = from p in db.Products orderby p.ProductName select > > > p; > > > foreach (var v in q2) > > > ObjectDumper.Write(v); > > > Console.WriteLine("Press enter to continue."); > > > Console.ReadLine(); > > > > > I know the query works and q2 is filled with the expected rows. The > > > problem is in the foreach. The exception is: > > > > > Unhandled Expression Type: 1012 > > > > > Here is the stack trace: > > > > > at System.Linq.Expressions.ExpressionVisitor.Visit(Expression exp) > > > at System.Linq.Expressions.ExpressionCompiler.Hoister.Hoist > > > (CompileScope scope) > > > at System.Linq.Expressions.ExpressionCompiler.GenerateLambda > > > (LambdaExpression lambda) > > > at System.Linq.Expressions.ExpressionCompiler.CompileDynamicLambda > > > (LambdaExpression lambda) > > > at System.Linq.Expressions.LambdaExpression.Compile() > > > at > > > > > > DbLinq.Data.Linq.Sugar.ExpressionMutator.ExpressionMutatorExtensions.Evaluate > > > (Expression expression) in C:\\Documents and Settings\\Administrator\ > > > \Desktop\\DbLinq-0.18\\src\\DbLinq\\Data\\Linq\\Sugar\ > > > \ExpressionMutator\\ExpressionMutatorExtensions.cs:line 147 > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "DbLinq" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/dblinq?hl=en -~----------~----~----~----~------~----~------~--~---
