June 29, 2014

 

WP8 Lumia device USB not detected in VirtualBox W8 guest

Turn on USB2.0 in virtual machine settings

Labels: , , , ,

 

Some WP8 in app purchase errors

Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
this means you call CurrentApp.RequestProductPurchaseAsync not from UI thread

error code 805a0194
(in a dialog) means that you need to publish your app (maybe in beta) via Store before you can test purchases.

Labels: , , , , , , ,

June 28, 2014

 

windows phone LINQ "already exists" issue on empty table

Update this happens not only when you have the only primary key field. Even when primary key is autogen, this exception happens when you put same value as you deleted previously in same DataContext session. I don't have workaround yet. Do you?

LINQ to SQL has strange effects when you try to reuse DataContext (re-creating of DataContext after every update/delete operation has different bad effect).

For example if your sole field is actually your primary key (it is unique at any moment and not null) and you delete it and in the same DataContext session insert same value, you will have InvalidOperationException. In my case the table is even empty!

  [Table(Name = "Receipts")]
  public class Receipt : PropertyChangedBase
  {
    protected String _s;
    public Receipt() { }
    public Receipt(String s) { _s = s; }

    [Column(IsPrimaryKey = false, CanBeNull = false, AutoSync = AutoSync.Always)]
    public String s
It seems that after delete you have to recreate DataContext. Will try this strategy.

Labels: , , , , , , ,

June 14, 2014

 

installation problem: Windows 8.1 x64 under virtualbox

# VBoxManage.exe setextradata VBoxInternal/CPUM/CMPXCHG16B 1
This enables cpu instruction CMPXCHG16B, read wiki for more info

Labels: , , ,

This page is powered by Blogger. Isn't yours?