Issue with Console Application following install of DotNet40

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
chepetico
Level 1
Level 1
Posts: 8
Joined: Thu Sep 04, 2014 10:40 pm

Issue with Console Application following install of DotNet40

Post by chepetico »

Hi Everyone!

I've installed Wine 1.7-i386 and dotnet40 and I'm running into an issue with a console application that used to work before installation of dotnet40. How can resolve this, is it a conflict with dotnet40 and if so is there a way I can temporarily turn off dotnet40?

The stack trace is as follows:

joe@Joes-PC:~/.wine/drive_c/Program Files/My Sudoku 2.0$ wine MySudoku2.0.exe
fixme:heap:HeapSetInformation (nil) 1 (nil) 0
fixme:process:SetProcessDEPPolicy (1): stub
fixme:heap:HeapSetInformation (nil) 1 (nil) 0
fixme:process:SetProcessShutdownParameters (00000380, 00000000): partial stub.
fixme:thread:SetThreadStackGuarantee (0x33fc04): stub
fixme:shell:URL_ParseUrl failed to parse L"System"

Unhandled Exception: fixme:advapi:RegisterTraceGuidsW (0x9704da, (nil), {8e9f5090-2d75-4d03-8a81-e5afbf85daf1}, 1, 0x33cb0c, (null), (null), 0xcbf768): stub
System.IO.IOException: Invalid handle.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.__Error.WinIOError()
at System.Console.MoveBufferArea(Int32 sourceLeft, Int32 sourceTop, Int32 sourceWidth, Int32 sourceHeight, Int32 targetLeft, Int32 targetTop, Char sourceChar, ConsoleColor sourceForeColor, ConsoleColor sourceBackColor)
at MySudoku2._0.DisplayScreens.SplashScreen()
at MySudoku2._0.SudokuConsoleGameLogic.Run()
at MySudoku2._0.Program.Main(String[] args)


Thanks!
Joe
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Issue with Console Application following install of DotN

Post by dimesio »

Install it to a separate wineprefix. http://wiki.winehq.org/FAQ#wineprefix
chepetico
Level 1
Level 1
Posts: 8
Joined: Thu Sep 04, 2014 10:40 pm

Re: Issue with Console Application following install of DotN

Post by chepetico »

Hello again dimesio,

Thanks again, I'll try this when I get home, stinking day job!

However I was curious, can I rename my old wine prefix with dotnet40 to something like /.winedotnet and install a new 64 bit version of wine under /.wine? Will this break my .exe files in /.winedotnet that require dotnet40?

Thanks
Joe
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Issue with Console Application following install of DotN

Post by dimesio »

chepetico wrote: However I was curious, can I rename my old wine prefix with dotnet40 to something like /.winedotnet and install a new 64 bit version of wine under /.wine?
Sure. It won't break the apps (dotnet40 is installed in that wineprefix), but you will need to specify WINEPREFIX=~/.winedotnet whenever you run anything from that wineprefix (including winecfg and other builtin apps), and if winemenubuilder created any menu items/desktop links for your apps, you will have to edit them.
chepetico
Level 1
Level 1
Posts: 8
Joined: Thu Sep 04, 2014 10:40 pm

Re: Issue with Console Application following install of DotN

Post by chepetico »

Hi dimesio,

So I tried that which lead to a host of other issues, all my fault, but in regards to Wine I moved .wine to .winedotnet40, installed a new version of .wine and installed the console application, My Sudoku 2.0, to the new wineprefix that should not have had reference to dotnet40 but had the same issue. It appears the new wine prefix was still effected by dotnet40. How can I ensure that all wine references have been removed from the system?

Also, I note the last bit of code that ran is as follows:

at System.Console.MoveBufferArea(Int32 sourceLeft, Int32 sourceTop, Int32 sourceWidth, Int32 sourceHeight, Int32 targetLeft, Int32 targetTop, Char sourceChar, ConsoleColor sourceForeColor, ConsoleColor sourceBackColor)

If I recall correctly this code set the size of the console window, could this be the source of conflict with dotnet40?

Joe
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Issue with Console Application following install of DotN

Post by dimesio »

Dotnet40 (or anything else) installed in one wineprefix should not affect anything in a separate wineprefix. As far as the Windows apps know, separate wineprefixes are separate computers. So my guess is that you did something wrong. One possibility is that you set the WINEPREFIX to the wrong wineprefix when installing and/or running the app. Another possibility is that there were still background processes left running from the original .wine after you renamed it.

How exactly did you recreate .wine, and what are the commands you used to install and run My Sudoku 2.0? Post the complete terminal output.

BTW, I don't know if you're aware of this, but the download link you posted in your other thread now returns HTTP 404.
chepetico
Level 1
Level 1
Posts: 8
Joined: Thu Sep 04, 2014 10:40 pm

Re: Issue with Console Application following install of DotN

Post by chepetico »

Hi dimesio, oh I'm sure I did something wrong! :oops: My computer is currently in the shop. I was trying to purge wine and ended up deleting the user interface. I uninstalled and reinstalled Ubuntu and GRUB no longer recognizes my Windows 7 installation on the C drive. Ubuntu is on my D drive. I'm sure if I kept at it and called out sick from work for a few days I could get my system back up and working but I do not want to risk loosing my info from my Windows 7 System, my last back up was in December. I dropped it off with the tech yesterday afternoon and he stated he is trying to rewrite the GRUB start-up script. Once I get it back I will reinstall dotnet40.

My plan is as follows:

1. Install Wine 1.7-i386.

2. Rename to .winedotnet40.

3. Install dotnet40.

4. Install Wine 1.7 to .wine


I think I may also put a disclaimer on my site to install wine at your own risk.

I updated my site to a web application and the address is now as follows:

http://www.chepetico.info/joseph_anthony_king/home.aspx

Thanks for your help dimesio, I'll let you know how it turns out when I get my system back.

Joe
Locked