小编Jer*_*ebe的帖子

EXC_BAD_INSTRUCTION(代码= EXC_I386_INVOP,子代码= 0x0)

我真的无法弄清楚为什么我有这个bug.

首先,调试器停在机器代码处

在此输入图像描述

线程也没有显示任何内容.程序实际上没有代码停止

在此输入图像描述

所以它与_dispatch_worker_thread有关

那是什么?

我怎么能调试这个?我应该回滚吗?

objective-c xcode4.3

21
推荐指数
2
解决办法
2万
查看次数

Swift必须调用超类uiinputviewcontroller的指定初始值设定项

今天早上升级到8.3后,我在主题中收到错误.

下面的代码用于完美地工作,但它不再编译.你们有人可以帮助我吗?

protocol CustomAccessoryProtocol {
    func controlButtonPressed(tag:Int)
}

class CustomAccessory : UIInputViewController {
    var accessoryView : UIView!
    var delegate : CustomAccessoryProtocol!

    @IBOutlet weak var returnButton: UIButton!
    @IBOutlet weak var backButton: UIButton!
    @IBOutlet weak var forwardButton: UIButton!

    init(delegate: CustomAccessoryProtocol){
        super.init()
        self.delegate = delegate
    }

    required init(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
        fatalError("init(coder:) has not been implemented")
    }

    override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: NSBundle?) {
        super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil)
        let customNib = UINib(nibName: "CustomAccessory", bundle: nil)
        accessoryView = customNib.instantiateWithOwner(self, options: nil)[0] …
Run Code Online (Sandbox Code Playgroud)

ios swift uiinputviewcontroller

7
推荐指数
1
解决办法
2万
查看次数

Hibernate HQL:将对值作为 IN 子句中的参数传递

我面临一个问题:如何使用 IN 子句(例如 - )将参数传递给 HQL 以获取查询中的值对 select id, name from ABC where (id, reg_date) in ('x', 'y')。并且参数是不同的数据类型string(id)和reg_date(date)。现在,在 HQL 中我可以写:

hql = "select id, Name from ABC where (id, date) in (:listparam1)"
hibernateTemplate.findbynamedparam(hql, "listparam1", values).
Run Code Online (Sandbox Code Playgroud)

问题:如何在 HQL 中传递 id 和日期对的列表?两个参数具有不同的数据类型:一个是String,另一个是Timestamp。我尝试将二维数组Map中的两个值串联起来,但没有任何效果。Object

java hibernate hql

5
推荐指数
1
解决办法
2690
查看次数

将NuGet ndef库添加到windows phone 8项目中

因此,我尝试在Visual Studio 2012中为Windows Phone 8应用程序添加NDEF库以用于邻近应用程序.在Package Manager我检查Allow NuGet to download missing packages during buildSolution Explorer我选择Enable NuGet Package Restore.

到目前为止这么好,但是当我尝试安装软件包时,我收到以下错误:

无法安装包' NdefLibrary 0.9.0.1 '.您正在尝试将此软件包安装到以" WindowsPhone,Version = v8.0 "为目标的项目中,但该软件包不包含与该框架兼容的任何程序集引用.有关更多信息,请与软件包作者联系.

在此输入图像描述

nfc nuget visual-studio-2012 windows-phone-8 ndef

4
推荐指数
1
解决办法
2013
查看次数