When build with anycpu, it has stackoverflow exception - windows-7-x64

I have a project it all in managed code (C# winform program). When I build in vs2010 (tried with .net 2.0 nad .net 4.03), if target with x64 or x84, they all runs greate in win 7 environment. But when build with anycpu, it has stackoverflow exception in win 7.
It use a big stack in the logic. I have tried the following:
1) create the new thread set the size to 400000,
2) after build run corflags xxx.exe /32BIT-
3) run editbin xxx.exe /STACK:400000.
The problem is still there.
Please help.
Thanks in advance.

Related

EF Migration: Could not load assembly. Ensure it is referenced by the startup project after switching from x64 to x86

After switching the all the projects to x86 architecture, I get the following error:
> dotnet ef migrations add Nullable-Fields --startup-project ..\LairageScanner.BlazorApp
Build started...
Build succeeded.
Could not load assembly 'LairageScanner.Context.SQL'. Ensure it is referenced by the startup project 'LairageScanner.BlazorApp'.
As seen above I have tried to run the command through CMD - but also done this for the package manager. I have seen some suggestion to fix this error: Stack Overflow & GitGub but neither of them had the solution to my issue.
Current Stack:
EF Core 3.1.3
Dotnet Core 3.1
Note: From the Git Solution it suggest converting to x64 and then just converting back later. And it does work. But I am looking for a more permanent solution.
I fixed it once with a simple action.
You need to be sure that the Startup Project is the one with the startup.cs file. Also, be sure that all Project references are complete.
Well, it worked for me.
Select the layer where the dbcontext class exists

how to create mbed project with os2?

Although creation of a project with mbed os 5 works fine using
mbed new nameOfProgramOs5
creation of a project with mbed os 2 via
mbed new nameOfProgramOs2 --mbedlib
causes a problem:
First of all, the command does not terminate.
ctrl-c unveils
[mbed] Working path "C:\Users\ere\Desktop\Software\MBed" (directory)
[mbed] Program path "C:\Users\ere\Desktop\Software\MBed"
[mbed] Creating new program "newWithMbedLib2" (git)
[mbed] Adding library "mbed" from "https://mbed.org/users/mbed_official/code/mbed/builds" at branch/tag "tip"
[mbed] Unpacking library build "3a7713b1edbc" in "C:\Users\ere\Desktop\Software\MBed\newWithMbedLib2\mbed"
[mbed] ERROR: An error occurred while unpacking library archive ".bld\.rev-3a7713b1edbc.zip" in "C:\Users\ere\Desktop\Software\MBed\newWithMbedLib2\mbed"
If i go into the directory i can see that a lot of sub directories are created
one for each target.
So may look not so bad.
Could you help or at least contribute your own experience?
Is there a point to use still mbed os 2?
mbed new mbed-classic-program --mbedlib works for me. It downloads the mbed 2.0 SDK. My mbed-cli version is 1.8.2.
Some boards only support OS 2. I still use OS 2 sometimes.

How to build asp.net core stack from source?

I am trying to build asp.net stack from source, i followed instruction documented here but when running build command i ended up with The module '.build' could not be loaded. For more information, run 'Import-Module .build'. error message.I googled for the issue but with no luck.Could anybody shed some light on this?
Here is an attachment from powershell console :

HelloCompute: where is the reflected layer?

New to Android. I'm trying to build the HelloCompute sample code for API 17 with ADT v22.0.1 under Windows 7. I do File:New Project:Android Sample Project, and select HelloCompute. In the Package Explorer I see HelloCompute.java and mono.rs in src under com.example.android.rs.hellocompute. However, I don't see any reflected layer code under gen, and I get the error "ScriptC_mono cannot be resolved to a type". I have tried re-installing eclipse / adt, and re-installing the sample code.
Is there some manual step I need to perform to generate the reflected layer?
Thanks.
I ran into a similar problem.
I got around it by running llvm-rs-cc on mono.rs and generating the ScriptC_mono.java file. Eclipse then picks up this source and compiles everything successfully.
I do not know yet whether is there a way of telling eclipse to do it automatically.
The latest ADT does have a problem in generating RenderScript code as part of the build process, so you need to do this step manually right now (or look at other threads suggesting workarounds). Hopefully the upcoming ADT will actually fix this issue so that everything gets created automatically.
Had the same problem.
Win 7 64bit.
Eclipse 4.2.2.
Upgraded to:
SDK Tools: 22.0.5.
Platform-tools: 18.0.1.
Build-tols: 18.0.1.
Problem solved.
Renderscript compilation was broken in ADT 22.0.1. Fixed for non-Windows platforms on 22.0.4. Fixed for Windows platform on 22.0.5.

Xlib: unexpected async reply (sequence 0x1cb4)!

I am unable to run Windows tester on SLED 10 machine. When I try to run test as JUnit plugin-in-test, eclipse launches and I see Xlib: unexpected async reply (sequence 0x1cb4)! error in console and eclipse does nothing. I googled and found n number post for the issue but no proper solutions. If anyone have encountered with the problem and found solution pls feel free to reply to this post.
Note: This link clearly describes about the problem http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6386791
Here is the config of my machine
LSB_VERSION="core-2.0-noarch:core-3.0-noarch:core-2.0-ia32:core-3.0-ia32"
SUSE Linux Enterprise Desktop 10 (i586)
VERSION = 10
PATCHLEVEL = 4
SUSE Linux Enterprise Desktop 10 (i586)
VERSION = 10
PATCHLEVEL = 4
Thanks
Deepak
I am getting this problem too. What I am trying to do is make a plugin for my Qt application that will move the mouse around and test the GUI. The mouse is moved around using X11 libs. The plugin launches a separate QThread and in this thread I make calls to Qt functions to retrieve information about widgets but I do not ever set any positions or anything. Maybe even calling Qt functions from another thread can also cause the error.