Jacques,

As for the first problem, the unfortunate thing is that fixing it for some of 
us breaks it for others. Let me look into whether command line parameter could 
be the solution. I will let you know as soon as I know more. The answer to your 
question 1 is, therefore, yes.

As for the second problem, my guess is that the problem may stem from the SDK 
command line setup. The LIB environment variable gets set up by the SDK 
initialization and may have been set up incorrectly. Are you using VS2005 or 
the .NET Framework SDK? I suspect that the batch files on your computer may not 
be doing what they are supposed to ... I am using Visual Studio 2005 for my 
development and when I open the VS build window, there is no path in the LIB 
variable that contains the directory VC98 ('C:\Program Files\Microsoft Visual 
Studio\VC98\lib). I wonder if that may be a lead to possible solution.

I hope this helps

Martin


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of J. de Hooge
Sent: Monday, December 12, 2005 1:29 AM
To: 'Discussion of IronPython'
Subject: Re: [IronPython] IronPython 0.9.6 released

Hi,

Thanks for the new version of IP. I'd like to start using it as soon as 
possible, since error reporting is said to be improved on this version and that 
will probably speed up my work.

I've installed IP 0.9.6 and attempted to run my apps with it, but I ran into 
the following problems:


Problem 1: (reported earlier)
==========

As reported by me for IP 0.9.5, setting the AllowDrop property of e.g. a 
Forms.ListView to True while using IP 0.9.6 STILL results in an exception
message: DragDrop registration failed. The fix I've used on 0.9.5 (see earlier 
posting) was changing the declaration of Main in PythonCommandLine.cs


from:

static int Main(string[] rawArgs) {

to:


[STAThread]
static int Main(string[] rawArgs) {


If adding the [STAThread] attribute is not generally feasible for some other 
reason, please could at least a command line switch be added to the next 
version to achieve this. Otherways apps using Drag and Drop (a.o. all my
apps) will not run (see earlier discussions).

Surely D&D is considered an important part of the  Windows User Experience... 
;=)


Problem 2: (new problem)
==========

With IP 0.9.5 I could compile the above fix using the following recipe from the 
readme.html in the root of the IP distribution:

[QUOTE]

After installing the SDK, open the .NET Framework SDK command prompt, go to the 
IronPython directory and execute:

msbuild IronPython.sln
This will build IronPython.dll, IronMath.dll and IronPythonConsole.exe in the 
"bin" directory.

[UNQUOTE]


But with IP 0.9.6 this does not work any more.
The following error messages are displayed:


[QUOTE]

[Microsoft .NET Framework, Version 2.0.50727.42] Copyright (C) Microsoft 
Corporation 2005. All rights reserved.

Build started 12/12/2005 10:16:16 AM.
__________________________________________________
Project "C:\IronPython-0.9.6-STA\IronPython.sln" (default targets):

Target ValidateSolutionConfiguration:
    Building solution configuration "Debug|Any CPU".
Target Build:
    Target IronMath:
        __________________________________________________
        Project "C:\IronPython-0.9.6-STA\IronPython.sln" is building 
"C:\IronPython-0.9.6-STA\IronMath\IronMath.csproj" (default targets):

        Target CoreCompile:
            C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Csc.exe /noconfig 
/unsafe+ /checked- /nowarn:1701,1702 /nostdlib- /warn:4
/baseaddress:285212672 /define:DEBUG;TRACE 
/reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Data.dll
/reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.dll
/reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.XML.dll
/debug+ /filealign:4096 /optimize- /out:obj\Debug\IronMath.dll /target:library 
/warnaserror+ AssemblyInfo.cs Complex64.cs integer.cs integerTest.cs
            CSC : error CS1668: Warning as Error: Invalid search path 
'C:\Program Files\Microsoft Visual Studio\VC98\mfc\lib' specified in 'LIB 
environment variable' -- 'The system cannot find the path specified. '
            CSC : error CS1668: Warning as Error: Invalid search path 
'C:\Program Files\Microsoft Visual Studio\VC98\lib' specified in 'LIB 
environment variable' -- 'The system cannot find the path specified. '
        Done building target "CoreCompile" in project "IronMath.csproj" -- 
FAILED.

        Done building project "IronMath.csproj" -- FAILED.

Build FAILED.
CSC : error CS1668: Warning as Error: Invalid search path 'C:\Program 
Files\Microsoft Visual Studio\VC98\mfc\lib' specified in 'LIB environment 
variable' -- 'The system cannot find the path specified. '
CSC : error CS1668: Warning as Error: Invalid search path 'C:\Program 
Files\Microsoft Visual Studio\VC98\lib' specified in 'LIB environment variable' 
-- 'The system cannot find the path specified. '
    0 Warning(s)
    2 Error(s)

[UNQUOTE]


For IP 0.9.5 compiling still works as expected, so nothing seems to have fallen 
over in my compilation environment.


My question is:

1. Could the [STATThread] please be added to the next release one way or the 
other 2. Could someone provide me with a fix or workaround for compiling IP 
0.9.6 using the .NET SDK so that I can start using the improved error reporting

Thanks
Jacques de Hooge
[EMAIL PROTECTED]


_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to