小编Mal*_*ery的帖子

找不到符号:High Sierra中的_OBJC_IVAR _ $ _ NSScroller._action

在以前版本的MacOS上运行的应用程序在High Sierra上失败,并显示以下消息:

dyld:未找到符号:_OBJC_IVAR _ $ _ NSScroller._action参考自:/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit

可能导致此问题的变化是什么?(我不是MacOS开发方面的专家)我怀疑otool命令可能有助于识别与此问题相关的更改,但还没有找到正确的参数.

检查AppKit文档https://developer.apple.com/documentation/appkit/deprecated_symbols它说NSDrawer已被弃用,这是否相关?

NSDrawer [不建议使用]除了其他视图子类之外,还包含并显示文本,滚动和浏览器视图的用户界面元素.

macos appkit macos-high-sierra

10
推荐指数
3
解决办法
7018
查看次数

Window.Print 在 Android WebView (API 23) 中不工作,但在默认浏览器和 Chrome 中工作

从下面的示例代码在这里工作在两个默认的浏览器“互联网”和“Chrome浏览器”的浏览器上的Galaxy Tab S2罚款。

<!DOCTYPE html>
<html>
<body>

<p>Click the button to print the current page.</p>

<button onclick="myFunction()">Print this page</button>

<script>
function myFunction() {
    window.print();
}
</script>

</body>
</html>
Run Code Online (Sandbox Code Playgroud)

但是,当托管在 WebView 中时,单击“打印此页面”时没有任何反应

我的观点 XML:

<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    app:layout_behavior="@string/appbar_scrolling_view_behavior"
    tools:context="com.company.MainActivity"
    tools:showIn="@layout/activity_main">

    <WebView
        android:id="@+id/webview"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

</android.support.constraint.ConstraintLayout>
Run Code Online (Sandbox Code Playgroud)

MainActivity.Java 具有以下内容:

@Override
protected void onCreate(Bundle savedInstanceState) {
    WebViewClient mWebClient = new WebViewClient(){
        @Override
        public boolean shouldOverrideUrlLoading(WebView view, String url)
        {
            view.loadUrl(url);
            return …
Run Code Online (Sandbox Code Playgroud)

android webview

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

OrderBy引发无法加载文件或程序集System.Data.Entity

试图使DataTables在ASP.NET Core 2项目中工作。当以下代码行执行时,应用程序在OrderBy上引发异常

var data = (from app in _context.Applications select app);

//Sorting  
if (!(string.IsNullOrEmpty(sortColumn) && string.IsNullOrEmpty(sortColumnDir)))
{ 
    data = data.OrderBy(sortColumn + " " + sortColumnDir);
}
Run Code Online (Sandbox Code Playgroud)

例外是:

{System.TypeInitializationException: The type initializer for 'System.Linq.Dynamic.ExpressionParser' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. The system cannot find the file specified.
   at System.Linq.Dynamic.ExpressionParser..cctor()
   --- End of inner exception stack trace ---
   at System.Linq.Dynamic.ExpressionParser..ctor(ParameterExpression[] parameters, String expression, Object[] values)
   at System.Linq.Dynamic.DynamicQueryable.OrderBy(IQueryable source, String ordering, …
Run Code Online (Sandbox Code Playgroud)

c# entity-framework-core asp.net-core

3
推荐指数
1
解决办法
982
查看次数

是否可以在 Windbg 中的 ntdll!LdrpDoDebuggerBreak 之前设置模块加载断点?

使用 WinDbg 启动可执行文件,在进入调试器之前会加载多个模块。

ModLoad: 00400000 0045c000   image00400000
ModLoad: 77da0000 77f3a000   ntdll.dll
ModLoad: 77460000 77540000   C:\Windows\SysWOW64\KERNEL32.DLL
ModLoad: 76b50000 76d4c000   C:\Windows\SysWOW64\KERNELBASE.dll
ModLoad: 754c0000 7555f000   C:\Windows\SysWOW64\apphelp.dll
ModLoad: 796c0000 79944000   C:\Windows\SysWOW64\AcLayers.DLL
ModLoad: 77320000 773df000   C:\Windows\SysWOW64\msvcrt.dll
ModLoad: 77650000 777e7000   C:\Windows\SysWOW64\USER32.dll
ModLoad: 77d70000 77d87000   C:\Windows\SysWOW64\win32u.dll
ModLoad: 75800000 75821000   C:\Windows\SysWOW64\GDI32.dll
ModLoad: 76970000 76aca000   C:\Windows\SysWOW64\gdi32full.dll
ModLoad: 76ad0000 76b4c000   C:\Windows\SysWOW64\msvcp_win.dll
ModLoad: 76850000 7696f000   C:\Windows\SysWOW64\ucrtbase.dll
ModLoad: 75900000 75e7a000   C:\Windows\SysWOW64\SHELL32.dll
ModLoad: 777f0000 7782b000   C:\Windows\SysWOW64\cfgmgr32.dll
ModLoad: 77540000 775c4000   C:\Windows\SysWOW64\shcore.dll
ModLoad: 77bb0000 77c6b000   C:\Windows\SysWOW64\RPCRT4.dll
ModLoad: 75570000 75590000   C:\Windows\SysWOW64\SspiCli.dll
ModLoad: 75560000 7556a000   C:\Windows\SysWOW64\CRYPTBASE.dll
ModLoad: …
Run Code Online (Sandbox Code Playgroud)

windbg

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

x64 Windows 汇编程序中的 WndProc 未收到 WM_DESTROY 消息

我正在尝试使用 MASM /w Visual Studio 2019 重新创建类似于以下有效 C++ 代码的内容。本质上,在这个阶段只希望窗口可以移动并且关闭按钮可以工作。

#include <iostream>
#include <Windows.h>

LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM
    lParam)
{
    switch (message)
    {
    case WM_DESTROY:
        PostQuitMessage(0);
        break;
    default:
        return DefWindowProc(hWnd, message, wParam, lParam);
    }
    return 0;
}

int main()
{
    wchar_t windowclass[] = L"MyWinTest";

    HINSTANCE hInstance = GetModuleHandleW(NULL);
    MSG msg;
    WNDCLASSEXW wc;
    wc.cbSize = sizeof(WNDCLASSEX);
    wc.cbClsExtra = 0;
    wc.cbWndExtra = 0;
    wc.hbrBackground = 0;
    wc.hCursor = LoadCursor(NULL, IDC_ARROW);
    wc.hIcon = LoadIcon(hInstance, IDI_APPLICATION);
    wc.hIconSm = NULL;
    wc.hInstance …
Run Code Online (Sandbox Code Playgroud)

winapi masm masm64

-1
推荐指数
1
解决办法
235
查看次数