Affichage des articles dont le libellé est Active questions tagged windows - Stack Overflow. Afficher tous les articles
Affichage des articles dont le libellé est Active questions tagged windows - Stack Overflow. Afficher tous les articles

lundi 20 avril 2015

multiprocessing in IPython console on Windows machine - if __name_ requirement

I'm working with IPython and Spyder IDE on a Windows machine. When the IDE is starting, a set of py-files is loaded to define some functions that make my work a bit easier. Everything works as expected.

Now I would like to upgrade one of these function to use multiprocessing, but on Windows this requires the if __name__ == "__main__": statement. So it seems that I cannot call the function directly and pass the arguments from the IPython console.

For example one of the py-files (let's call it test.py) could look like the following code.

import multiprocessing as mp
import random
import string

# define a example function
def rand_string(length, output):
    """ Generates a random string of numbers, lower- and uppercase chars. """
    rand_str = ''.join(random.choice(
                string.ascii_lowercase
                + string.ascii_uppercase
                + string.digits)
           for i in range(length))
    output.put(rand_str)


def myFunction():
    # Define an output queue
    output = mp.Queue()        

    # Setup a list of processes that we want to run
    processes = [mp.Process(target=rand_string, args=(5, output)) for x in range(4)]

    # Run processes
    for p in processes:
        p.start()

    # Exit the completed processes
    for p in processes:
        p.join()

    # Get process results from the output queue
    results = [output.get() for p in processes]

    print(results)

In my IPython console I would like to use the line

myFunction()

to trigger all the calculations. But on Windows a end up getting a BrokenPipe error.

When I put

if __name__ == "__main__":
     myFunction()

at the end of the py-file and run the complete file by

runfile(test.py)

it works. Of course. But that makes it very hard to pass arguments to the function as I always have to edit the test.py-file itself.

My question is: How do I get the multiprocessing function running without putting it in this if __name__ == "__main__": statement??

Ho do I get MySQL 5.6 to work with R/Rtools on a Windows 7 64 bit OS

OS - Windows 7 64 bit R v3.1.2 RTools v3.2.0.1948 MySQL 5.6

I have installed MySQL using the msi intaller for Windows and have checked that the software has been installed correctly - which it has.

Despite many hours and reading numerous posts and web pages I cannot get MySQL to work with R.

I have found the following directories: 1. c:/Program Files/MySQL 2. c:/Program Files (86)/MySQL 3. c:/ProgramData/MySQL and c:/ProgramData/MySQL/MySQL Server 5.6

I cannot find any folders called bin nor the files called libmysl.lib and libmysql.dll - I have checked for hidden files and directories.

There seems to be no posts which cover this issue properly so I would be grateful for as much help as possible.

How to properly measure & display owner drawn context menu item with a checkmark?

I'm simply trying to add small color swatches to my context menu (displayed via the TrackPopupMenu API.) Here's a Photoshopped version of what I'm trying to achieve:

enter image description here

As far as I understand the default menu does not support it. Btw, the sample above (without color swatches) was generated by doing this:

MENUITEMINFO mii = {0};
mii.cbSize = sizeof(mii);
mii.fMask = MIIM_FTYPE | MIIM_ID | MIIM_STATE | MIIM_STRING;
mii.fType = MFT_STRING;
mii.wID = ID_1_MARKER_01 + m;
mii.dwTypeData = L"Marker";
mii.cch = TSIZEOF(L"Marker");
mii.fState = m == 1 ? MFS_CHECKED : MFS_ENABLED;
if(m == 2)
    mii.fState |= MFS_GRAYED;

VERIFY(::InsertMenuItem(hMenu, ID_1_BEFORE, FALSE, &mii));

So I discovered that I need to use MFT_OWNERDRAW style to draw menu items myself, but that's where the problems begin.

I changed my code to display my menu as such:

MENUITEMINFO mii = {0};
mii.cbSize = sizeof(mii);
mii.fMask = MIIM_FTYPE | MIIM_ID | MIIM_STATE;
mii.fType = MFT_OWNERDRAW;
mii.wID = ID_1_MARKER_01 + m;
mii.dwItemData = MARKER_ID_01 + m;
mii.fState = m == 1 ? MFS_CHECKED : MFS_ENABLED;
if(m == 2)
    mii.fState |= MFS_GRAYED;

VERIFY(::InsertMenuItem(hMenu, ID_1_BEFORE, FALSE, &mii));

then I needed to override WM_MEASUREITEM and WM_DRAWITEM messages. But when I do it with the code that I'll show below, here's what I get:

enter image description here

So please bear with me. I have several questions on this topic:

1) While processing WM_MEASUREITEM how am I supposed to know the size of text if they do not supply neither DC nor HWND for the menu? In other words, if I do this, the size of the menus is wrong:

#define TSIZEOF(f) ((sizeof(f) - sizeof(TCHAR)) / sizeof(TCHAR))

//hwnd = HWND supplied in WM_MEASUREITEM notification
HDC hDC = ::GetDC(hwnd);
HGDIOBJ hOldFont = ::SelectObject(hDC, ::SendMessage(hwnd, WM_GETFONT, 0, 0));

SIZE szTxt = {0};
::GetTextExtentPoint32(hDC, 
    L"Marker", 
    TSIZEOF(L"Marker"), 
    &szTxt);

//lpmis = MEASUREITEMSTRUCT*
lpmis->itemWidth = szTxt.cx;
lpmis->itemHeight = szTxt.cy;

::SelectObject(hDC, hOldFont);
::ReleaseDC(hwnd, hDC);

2) Then while processing WM_DRAWITEM how do I know the offset to begin drawing text on the left? If I do this, my menus aren't offset enough to the right (as you can see from the screenshot above):

int nCheckW = ::GetSystemMetrics(SM_CXMENUCHECK);

//lpdis = DRAWITEMSTRUCT*
::ExtTextOut(lpdis->hDC, 
    lpdis->rcItem.left + nCheckW, 
    lpdis->rcItem.top, 
    ETO_OPAQUE, 
            &lpdis->rcItem, 
    L"Marker", 
    TSIZEOF(L"Marker"), 
    NULL);

3) And lastly how do I draw that default checkbox on the left of the menu item?

Installing Debian on a machine without Ethernet, USB Drive or a CD-ROM

A Friend of mine asked me to format and install Debian on is laptop. It is Compaq Evo n600c. When there was still Windows XP installed on the machine, I downloaded the Debian Installer (lazy) EXE and ran it. Afterwards, in the setup process, in the Base System Installation there were some problems. It suggested to run this step again, so I did that.

When I boot up the computer, it reads:

Waiting for root file system ... done.
Gave up waiting for root device. Common problems:
- Boot args
  - Check rootdelay= (did the system wait long enough?)
  - Check root= (ded the system wait for the right device?)
- Missing modules (car /proc/modules; ls dev)
ALERT! /dev/block/8:33 does not exist. Dropping to a shell!
modprobe: module ehci-hcd not found in modules.dep.
modprobe: module uhci-hcd not found in modules.dep
modprobe: module ohci-hcd not found in modules.dep

BusyBox v1.20.2 (Debian 1:14.20.0-7) built in shell (ash)

/proc/cmdline

auto BOOT_IMAGE=Linux ro root=821

/proc/modules

sd_mod 25425 0 - Live 0xe081a000
crc_t20dif 12332 1 sd_mod, Live 0xe07f6000
ata_generik 12436 0 - Live 0xe07e7000

...and more, such as thermal, thermal system etc.

I tried to check with all of the common problems suggested, but as the message reads, the problems is that some modules are missing (checked the folders, not there). BUT! The real problem instead of just "formatting it and there you go" is that boot through Ethernet won't work (I finally got the server running, but Boot Agent is blind and won't see it). Also, there is no such option as "boot from USB flash", there are only "Boot from MultiBay", "Boot from Hard Drive" and "Boot over Ethernet". The hard drive does not have any other OS on it, so switching to it and re-installing is not an option.

I seek and try to think of a way to maybe skip without these modules and then update and upgrade the system so it runs normally. The system specs are LILO 27 boot loader (except the primitive (sorry) Compaq boot loader, that can't read USB Flash Drives, thumb drives or whatever.) Debian and BusyBox version can be seen in the first console log.

I played around with the initramfs.conf and the overriding config file, the output was not different.

Gwt plugin doesn't work in Chrome 42

The new version of chrome (42) doesn't support gwt plugin on windows 8.1 even I change the compatibility mode to Windows 7 I still get prompted to download the plugin again. I've tried removing it and re-installing but I still get this message. Any ideas?

Converting Windows 8 byte DateTime in Java

I have been looking very closely at the solution given in Foxpro, convert 8 byte datetime in java Date object

But, perhaps, owing to my inability in understanding the format, I have been unable to make it work in cases where I am trying to convert dates maintained in the Windows registry in 8 byte data format.

Trying to convert something like this 70 f9 48 b3 cc 78 d0 01, results in the following Tue Jan 27 13:57:19 IST 3528500; which is not quite the expected output.

Please help.

Deleting environment variables doesn't work

Why deleting an environment variable with reg delete HKCU\Environment /F /V TestVar in Windows 7 Professional removes it from the registry, but the variable still exists?

Here are the details: I created the following 3 .cmd files:

Check variable.cmd

echo TestVar = %TestVar%
pause

Set variable.cmd

setx TestVar 123
pause

Delete variable.cmd

reg delete HKCU\Environment /F /V TestVar
pause

Then I follow these steps (double clicking to make sure that I start a new session every time):

  1. Double click on Check variable.cmd and I see that TestVar does not exist
  2. Double click on Set variable.cmd and it says SUCCESS: Specified value was saved.
  3. Double click on Check variable.cmd and it shows the variable value. Good!
  4. Double click on Delete variable.cmd and it says The operation completed successfully.
  5. Double click on Check variable.cmd and it still shows the variable value. Bad!
  6. Click on the Start menu, type environment, click on Edit environment variables for your account to open the Environment Variables dialog box, click OK without changing anything
  7. Double click on Check variable.cmd and the variable does not exist anymore

I can find the value in the registry after step 2, I cannot find it after step 4, but step 5 still finds it. And even if I don't change anything, step 6 really deletes the variable.

Can't compile GLUT helloworld with MinGW

I'd like to setup OpenGL libraries and run a simple GL programm:

#include <windows.h>
#include <Gl/glut.h>

int main()
{
    glClearColor (0.0, 0.0, 0.0, 0.0);
    glClear (GL_COLOR_BUFFER_BIT);
    glColor3f (1.0, 1.0, 1.0);
    glOrtho(0.0, 1.0, 0.0, 1.0, -1.0, 1.0);
    glBegin(GL_POLYGON);
    glVertex3f (0.25, 0.25, 0.0);
    glVertex3f (0.75, 0.25, 0.0);
    glVertex3f (0.75, 0.75, 0.0);
    glVertex3f (0.25, 0.75, 0.0);
    glEnd();
    glFlush();
    return 0;
}

I'm building project using CLion and therefore here's my CMakeLists.txt:

cmake_minimum_required(VERSION 3.1)
project(MuspellsheimR)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

set(SOURCE_FILES main.cpp)
add_executable(MuspellsheimR ${SOURCE_FILES})

I've downloaded GLUT here and put glut.dll into C:\Windows\SysWOW64 (and in C:\Windows\System32 just in case), glut.h to C:\MinGW\include\GL and glut32.lib to C:\MinGW\lib. What's wrong?

Application benchmarking for windows desktop

I have developed a multi-threaded application on windows platform, I need to analyze the working of threads on some parameters such as CPU utilization, Memory .Is there any high latency due to these threads.Please help me with any third party tool or software which can analyze above parameters and display them.

Windows Short name does not match long name

I am copying a list of files using a prefix (i.e., ABCD*) to match files in a batch script. However, some files that appear to match are being left behind while other files that don't match are getting grabbed.

I ran a dir /X and found that the shortname for a handful of the files didn't match their longname:

4/17/2015  02:04 PM   554  ABCDEF~1.TXT     abcdefghijklmnopqrs.txt
4/17/2015  02:08 PM   123  ABCDEF~2.TXT     1234567890.txt
4/17/2015  03:18 PM   233  987654~1.TXT     abcdefg123456.txt

Any idea why something like this might happen and how to resolve it?

Creating a Moveable Maximized Window on Windows 7 with Java

I'm looking to create a Window that will be remain maximized, but can be dragged to other screens (where it will maximize again). My current implementation fails at doing this.

DESIRED BEHAVIOR:

  • Window Starts maximized
  • Drag window to different monitor
  • Window maximizes on that monitor

ACTUAL BEHAVIOR:

  • Window starts maximized
  • Drag window to different monitor
  • Window remains in unmaximized state (though, oddly enough, based on the window icons in the top-right, it looks as if it "thinks" it is maximized)
  • If I double-click the window to attempt to maximize it (which I don't want to have to do; this is merely an extended observation), it maximizes on the ORIGINAL screen (not the one it's currently on).

Anyone have any ideas?

SSCCE:

import java.awt.event.ComponentAdapter;
import java.awt.event.ComponentEvent;

import javax.swing.JFrame;
import javax.swing.JPanel;

public class ComponentMovedTest extends JPanel
{
    private ComponentMovedTest()
    {
        final JFrame frame = new JFrame("ComponentMovedTest");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

        // FIXME: Naive attempt at ensuring the window becomes maximized
        // on the screen it moves to after moving finishes.
        frame.addComponentListener( new ComponentAdapter()
        {
            @Override
            public void componentMoved( ComponentEvent e )
            {
                frame.setExtendedState( JFrame.MAXIMIZED_BOTH );
            }
        });

        frame.setExtendedState( JFrame.MAXIMIZED_BOTH );
        frame.setResizable( false );
        frame.setVisible(true);
    }

    public static void main(String[] args)
    {
        new ComponentMovedTest();
    }
}

Java interact with cmd

Hi and sorry for my english...

I must interact in a windows terminal with a jframe...

This is code to start the cmd

     try {

        String command = "file.exe";

        Runtime rt = Runtime.getRuntime();
        Process pr = rt.exec(command);

        input = new BufferedReader(new InputStreamReader(pr.getInputStream()));
        output = pr.getOutputStream();

        String line=null;

        while((line=input.readLine()) != null) {
            System.out.println(line);
        }

        int exitVal = pr.waitFor();
        System.out.println("Exited with error code "+exitVal);

    } catch(IOException | InterruptedException e) {
        System.out.println(e.toString());
        e.printStackTrace(System.out);
    }   

Then the jframe starts when exit from cmd line...

I need to start this in background and passing the output to the window...

How to ?

Reading a variable in a for loop in a bat file

I am trying to print lines from a file in the below for loop:

SET my-file="C:\tmp\xxx.txt"
@echo off
for /f "tokens=*" %%a in (%my-file%) do (
  echo line=%%a
)

Where: C:\tmp\xxx.txt contains:

a
b
c
d

But the %my-file% is not expanded. How do I use a variable in the for loop?

.NET Framework v.4.0 doesn't load url with index.php?url=

So I've been using .net framework v.2.0 with IIS 7 for my website then recently it kinda start to load really slow and at the bottom left of the website it shows waiting for available socket....

I tried changing Application Pools DefaultAppPool framework from v2.0 to v4.0 and it loads the website normally but then I realized v4.0 doesn't let my website link such as index.php?url= to work it just redirect back to my website homepage.

Trying to install numpy 1.9.2 into Python 3.3

I tried to install through powershell, but got this message:

No module named 'numpy.distutils.msvccompiler' in numpy.distutils; trying from distutils
error: Unable to find vcvarsall.bat

If I use the .exe offered by numpy website, got a message saying Python 3.3 could not be found.

How could I solve this?

Windows cmd echo / pipe is adding extra space at the end - how to trim it?

I'm working on a script that executes a command line application which requires user input at runtime (sadly command line arguments are not provided).

So my first attempt looked like this:

@echo off
(echo N
echo %~dp0%SomeOther\Directory\
echo Y)|call "%~dp0%SomeDirectory\SadSoftware.exe"

At first glance it looked like it worked pretty well, but as it turned out it didn't. After investigation I found out that the directory I was passing to the software contained extra space at the end, which resulted in some problems.

I looked around for a while and found out following question: echo is adding space when used with a pipe .

This explained what is going on, but didn't really help me solve my problem (I'm not too familiar with batch programming).

At the moment I "kind of solved" my problem with an ugly workaround:

echo N> omg.txt
echo %~dp0%SomeOther\Directory\>> omg.txt
echo Y>> omg.txt

"%~dp0%SomeDirectory\SadSoftware.exe"<omg.txt

del omg.txt

This solution works, but I'm less than happy with it. Is there some prettier way? Or even uglier way, but without temporary file?

Trying to make a telef

I'm a beginner to batchscripting and I'm trying to make a telephoneregister that prints all, adds, deletes and searches for phonenumbers, but I can't get it to work correctly and I'm wondering where I did go wrong. The code is down below, thanks in advance.

echo Print out all content ^<1^> 
echo Add a new number ^<2^> 
echo Delete a number ^<3^> 
echo Search ^<4^> 
echo Exit ^<5^> 
set /p val="Choose between 1-5: " 

GOTO CASE_%val% 
:CASE_1 for /f "tokens=*" %%a in 
(telephoneregister.txt) do 
( echo %%a ) 
GOTO END_SWITCH 
:CASE_2 echo "Number: " set /p p1="Nr" 
echo %p1% >> %output%\telephoneregister.txt 
GOTO END_SWITCH 
:CASE_3 echo "Which number would you like to delete? " 
set /p num="Telephoneregister" 
type telephoneregister.txt | findstr /v %num% >telephoneregister.txt del /s telephoneregister.txt 
type telephoneregister.txt > tele.txt del /s tele1.txt 
GOTO END_SWITCH 
:CASE_4 set /p n1="Number: "
 findstr %n1% telephoneregister.txt 
GOTO END_SWITCH 
:CASE_5 exit 0
 GOTO END_SWITCH 
:END_SWITCH 
pause

Building OpenCV 3.0.0-beta Windows Python 3.4

I wish to get OpenCV working on my Windows 7 for Python 3.4. Even though the OpenCV 3 Alpha page states that there is Python 3 support (http://ift.tt/1z5Pm9D), the pre-compiled package only contains opencv/build/python/2.7 and no 3(.4).

So following the answer on How to use OpenCV in python 3.4 on windows 7 x64?, I'm trying to build OpenCV 3.0.0 from source following the following tutorial: http://ift.tt/1i1dntk.

However since this tutorial is a bit outdated, I've some problems following certain steps.

  • The OpenNI link is dead, so I installed KinectSDK-v1.6-Setup.exe (http://ift.tt/1D683MJ) and OpenNI-Windows-x64-2.2.msi (http://ift.tt/1mDEZ8Z). Is this good enough?
  • The Qt framework link is dead. I have Visual Studio 2013, so do I need this? or how do I just get the required files without downloading the whole Qt development kit (http://www.qt.io/)?
  • CMake: I got the latest version from OpenCV from Github, but it doesn't have the folders "Source" and "Builds", so what do I select as folders in CMake (3.2.2)? Sorry I'm new to this.

Any help is greatly appreciated (or a link to a compiled Python 3.4 cv2.pyd)

opencv.org: http://ift.tt/1D683ML

Unity3d Crash Report

I am new to Unity3d . I am using unity 4.5.5f1 version. I made a game for PC . This Game works properly in some system , in some other system showing following error

The game crashed. The crash report folder named "some folder name" next to game executable. It would be great if you'd send it to the developer of the game!.

Error Log Is

Initialize engine version: 4.5.5f1 (7684ad0c5a44)

GfxDevice: creating device client; threaded=1

d3d: no support for this device type (accelerated/ref)

D3D9 initialization failed

GfxDevice: creating device client; threaded=1

d3d11: failed to create D3D11 device (0x887a0004)

D3D11 initialization failed

D3D9/D3D11 initialization failed, trying OpenGL

GfxDevice: creating device client; threaded=1

OpenGL:

Version:  OpenGL 1.1 [1.1.0]

Renderer: GDI Generic

Vendor:   Microsoft Corporation

VRAM:     64 MB (via fallback)

Extensions: GL_WIN_swap_hint GL_EXT_bgra GL_EXT_paletted_texture

Crash!!!

SymInit: Symbol-SearchPath: '.;C:\Program Files (x86)\GameName;C:\Program Files (x86)\GameName;C:\Windows;C:\Windows\system32;SRVC:\websymbolshttp://ift.tt/1dF6hHm;', symOptions: 530, UserName: 'a' OS-Version: 6.1.7601 (Service Pack 1) 0x100-0x1 C:\Program Files (x86)\GameName\GameName.exe:GameName.exe (01170000), size: 12214272 (result: 0), SymType: '-exported-', PDB: 'C:\Program Files (x86)\GameName\GameName.exe', fileVersion: 4.5.5.37569 C:\Windows\SysWOW64\ntdll.dll:ntdll.dll (77D40000), size: 1572864 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SysWOW64\ntdll.dll', fileVersion: 6.1.7601.18798 C:\Windows\syswow64\kernel32.dll:kernel32.dll (76280000), size: 1114112 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\kernel32.dll', fileVersion: 6.1.7601.18798 C:\Windows\syswow64\KERNELBASE.dll:KERNELBASE.dll (76880000), size: 290816 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\KERNELBASE.dll', fileVersion: 6.1.7601.18798 C:\Windows\system32\HID.DLL:HID.DLL (6B6C0000), size: 36864 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\HID.DLL', fileVersion: 6.1.7600.16385 C:\Windows\syswow64\msvcrt.dll:msvcrt.dll (76970000), size: 704512 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\msvcrt.dll', fileVersion: 7.0.7601.17744 C:\Windows\syswow64\WS2_32.dll:WS2_32.dll (75730000), size: 217088 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\WS2_32.dll', fileVersion: 6.1.7601.17514 C:\Windows\syswow64\RPCRT4.dll:RPCRT4.dll (764F0000), size: 983040 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\RPCRT4.dll', fileVersion: 6.1.7601.18532 C:\Windows\syswow64\SspiCli.dll:SspiCli.dll (756D0000), size: 393216 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\SspiCli.dll', fileVersion: 6.1.7601.18798 C:\Windows\syswow64\CRYPTBASE.dll:CRYPTBASE.dll (756C0000), size: 49152 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\CRYPTBASE.dll', fileVersion: 6.1.7600.16385 C:\Windows\SysWOW64\sechost.dll:sechost.dll (76260000), size: 102400 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SysWOW64\sechost.dll', fileVersion: 6.1.7600.16385 C:\Windows\syswow64\NSI.dll:NSI.dll (75FC0000), size: 24576 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\NSI.dll', fileVersion: 6.1.7600.16385 C:\Windows\syswow64\USER32.dll:USER32.dll (76160000), size: 1048576 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\USER32.dll', fileVersion: 6.1.7600.16385 C:\Windows\syswow64\GDI32.dll:GDI32.dll (75E90000), size: 589824 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\GDI32.dll', fileVersion: 6.1.7601.18778 C:\Windows\syswow64\LPK.dll:LPK.dll (757F0000), size: 40960 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\LPK.dll', fileVersion: 6.1.7601.18768 C:\Windows\syswow64\USP10.dll:USP10.dll (768D0000), size: 643072 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\USP10.dll', fileVersion: 1.626.7601.18454 C:\Windows\syswow64\ADVAPI32.dll:ADVAPI32.dll (75FE0000), size: 655360 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\ADVAPI32.dll', fileVersion: 6.1.7601.18247 C:\Windows\system32\VERSION.dll:VERSION.dll (75620000), size: 36864 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\VERSION.dll', fileVersion: 6.1.7600.16385 C:\Windows\syswow64\ole32.dll:ole32.dll (75BC0000), size: 1425408 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\ole32.dll', fileVersion: 6.1.7601.17514 C:\Windows\syswow64\SHLWAPI.dll:SHLWAPI.dll (76690000), size: 356352 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\SHLWAPI.dll', fileVersion: 6.1.7601.17514 C:\Windows\syswow64\SHELL32.dll:SHELL32.dll (76A20000), size: 12890112 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\SHELL32.dll', fileVersion: 6.1.7601.18762 C:\Windows\system32\OPENGL32.dll:OPENGL32.dll (74D00000), size: 819200 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\OPENGL32.dll', fileVersion: 6.1.7600.16385 C:\Windows\system32\GLU32.dll:GLU32.dll (74EA0000), size: 139264 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\GLU32.dll', fileVersion: 6.1.7600.16385 C:\Windows\system32\DDRAW.dll:DDRAW.dll (749F0000), size: 946176 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\DDRAW.dll', fileVersion: 6.1.7600.16385 C:\Windows\system32\DCIMAN32.dll:DCIMAN32.dll (754F0000), size: 24576 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\DCIMAN32.dll', fileVersion: 6.1.7601.18768 C:\Windows\syswow64\SETUPAPI.dll:SETUPAPI.dll (75830000), size: 1691648 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\SETUPAPI.dll', fileVersion: 6.1.7601.17514 C:\Windows\syswow64\CFGMGR32.dll:CFGMGR32.dll (76700000), size: 159744 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\CFGMGR32.dll', fileVersion: 6.1.7601.17621 C:\Windows\syswow64\OLEAUT32.dll:OLEAUT32.dll (75E00000), size: 585728 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\OLEAUT32.dll', fileVersion: 6.1.7601.18679 C:\Windows\syswow64\DEVOBJ.dll:DEVOBJ.dll (76860000), size: 73728 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\DEVOBJ.dll', fileVersion: 6.1.7601.17621 C:\Windows\system32\dwmapi.dll:dwmapi.dll (75510000), size: 77824 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\dwmapi.dll', fileVersion: 6.1.7600.16385 C:\Windows\system32\WINMM.dll:WINMM.dll (74480000), size: 204800 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\WINMM.dll', fileVersion: 6.1.7601.17514 C:\Windows\system32\MSACM32.dll:MSACM32.dll (712F0000), size: 81920 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\MSACM32.dll', fileVersion: 6.1.7600.16385 C:\Windows\syswow64\IMM32.dll:IMM32.dll (778E0000), size: 393216 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\IMM32.dll', fileVersion: 6.1.7601.17514 C:\Windows\syswow64\MSCTF.dll:MSCTF.dll (76080000), size: 835584 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\MSCTF.dll', fileVersion: 6.1.7601.18731 C:\Windows\system32\DNSAPI.dll:DNSAPI.dll (751B0000), size: 278528 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\DNSAPI.dll', fileVersion: 6.1.7601.17570 C:\Windows\system32\IPHLPAPI.DLL:IPHLPAPI.DLL (753D0000), size: 114688 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\IPHLPAPI.DLL', fileVersion: 6.1.7601.17514 C:\Windows\system32\WINNSI.DLL:WINNSI.DLL (753C0000), size: 28672 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\WINNSI.DLL', fileVersion: 6.1.7600.16385 C:\Windows\system32\WINHTTP.dll:WINHTTP.dll (74B40000), size: 360448 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\WINHTTP.dll', fileVersion: 6.1.7601.17514 C:\Windows\system32\webio.dll:webio.dll (74AF0000), size: 323584 (result: 0), SymType: '-nosymbols-', PDB: 'C:\Windows\system32\webio.dll', fileVersion: 6.1.7601.17725 C:\Windows\system32\scdetour.dll:scdetour.dll (74190000), size: 331776 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\scdetour.dll', fileVersion: 1.2.0.158 C:\Windows\system32\detoured.dll:detoured.dll (0F000000), size: 24576 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\detoured.dll', fileVersion: 2.1.0.207 C:\Program Files (x86)\GameName\GameName_Data\Mono\mono.dll:mono.dll (10000000), size: 2289664 (result: 0), SymType: '-exported-', PDB: 'C:\Program Files (x86)\GameName\GameName_Data\Mono\mono.dll' C:\Windows\syswow64\PSAPI.DLL:PSAPI.DLL (75800000), size: 20480 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\PSAPI.DLL', fileVersion: 6.1.7600.16385 C:\Windows\system32\MSWSOCK.dll:MSWSOCK.dll (75210000), size: 245760 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\MSWSOCK.dll', fileVersion: 6.1.7601.18254 C:\Windows\system32\uxtheme.dll:uxtheme.dll (74FC0000), size: 524288 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\uxtheme.dll', fileVersion: 6.1.7600.16385 C:\Program Files (x86)\TeamViewer\tv_w32.dll:tv_w32.dll (72460000), size: 262144 (result: 0), SymType: '-exported-', PDB: 'C:\Program Files (x86)\TeamViewer\tv_w32.dll', fileVersion: 10.0.40798.0 C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_41e6975e2bd6f2b2\COMCTL32.dll:COMCTL32.dll (73C10000), size: 1695744 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_41e6975e2bd6f2b2\COMCTL32.dll', fileVersion: 6.10.7601.17514 C:\Windows\syswow64\WINTRUST.dll:WINTRUST.dll (75DD0000), size: 192512 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\WINTRUST.dll', fileVersion: 6.1.7601.18741 C:\Windows\syswow64\CRYPT32.dll:CRYPT32.dll (76730000), size: 1183744 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\CRYPT32.dll', fileVersion: 6.1.7601.18741 C:\Windows\syswow64\MSASN1.dll:MSASN1.dll (75F20000), size: 49152 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\MSASN1.dll', fileVersion: 6.1.7601.17514 C:\Windows\syswow64\CLBCatQ.DLL:CLBCatQ.DLL (75D40000), size: 536576 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\CLBCatQ.DLL', fileVersion: 2001.12.8530.16385 C:\Windows\system32\wbem\wbemprox.dll:wbemprox.dll (753B0000), size: 40960 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\wbem\wbemprox.dll', fileVersion: 6.1.7600.16385 C:\Windows\system32\wbemcomn.dll:wbemcomn.dll (75350000), size: 376832 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\wbemcomn.dll', fileVersion: 6.1.7601.17514 C:\Windows\system32\CRYPTSP.dll:CRYPTSP.dll (739C0000), size: 94208 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\CRYPTSP.dll', fileVersion: 6.1.7601.18741 C:\Windows\system32\rsaenh.dll:rsaenh.dll (73980000), size: 241664 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\rsaenh.dll', fileVersion: 6.1.7600.16385 C:\Windows\system32\RpcRtRemote.dll:RpcRtRemote.dll (75340000), size: 57344 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\RpcRtRemote.dll', fileVersion: 6.1.7601.17514 C:\Windows\system32\wbem\wbemsvc.dll:wbemsvc.dll (75330000), size: 61440 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\wbem\wbemsvc.dll', fileVersion: 6.1.7600.16385 C:\Windows\system32\wbem\fastprox.dll:fastprox.dll (75290000), size: 614400 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\wbem\fastprox.dll', fileVersion: 6.1.7601.17514 C:\Windows\system32\NTDSAPI.dll:NTDSAPI.dll (75270000), size: 98304 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\NTDSAPI.dll', fileVersion: 6.1.7600.16385 C:\Windows\system32\dbghelp.dll:dbghelp.dll (6B5D0000), size: 962560 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\dbghelp.dll', fileVersion: 6.1.7601.17514

========== OUTPUTING STACK TRACE ==================

(0x0153364E) (GameName): (filename not available): AnimationEvent::Transfer > + 0x7e8de (0x015A8D94) (GameName): (filename not available): AnimationEvent::Transfer > + 0xf4024 (0x015A24F0) (GameName): (filename not available): AnimationEvent::Transfer > + 0xed780 (0x0126DFBD) (GameName): (filename not available): Behaviour::Transfer > + 0x12b9d (0x012FCC30) (GameName): (filename not available): Behaviour::Transfer > + 0xa1810 (0x01364499) (GameName): (filename not available): Behaviour::Transfer > + 0x109079 (0x015D00E8) (GameName): (filename not available): AnimationEvent::Transfer > + 0x11b378 (0x01604FB0) (GameName): (filename not available): AnimationEvent::Transfer > + 0x150240 (0x7629336A) (kernel32): (filename not available): BaseThreadInitThunk + 0x12 (0x77D792B2) (ntdll): (filename not available): RtlInitializeExceptionChain + 0x63 (0x77D79285) (ntdll): (filename not available): RtlInitializeExceptionChain + 0x36

========== END OF STACKTRACE ===========

**** Crash! ****

erro log file is in this link output_log.txt

I wonder , no one know the answer !.

How to print a file from command line in windows (MS-Dos)?

I want to print a file (any kind of file) to the printer which is running on my local machine's standard Tcp/Ip port 8100(not on lpt or COM etc).Can any one give me the exact command to do same?

Thanks in advance.