在以前版本的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 [不建议使用]除了其他视图子类之外,还包含并显示文本,滚动和浏览器视图的用户界面元素.
从下面的示例代码在这里工作在两个默认的浏览器“互联网”和“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) 试图使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) 使用 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) 我正在尝试使用 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)