cephire wrote:
Hi:
The program that I've written works well when using the ipy command. I
tried to compile it as a standalond executable using pyc.py. It
produces an executable without any error. When I try to execute the
executable, nothing happens; There is no error message; nothing. How
can I debug? How can I produce a executable?

Here are some info:
IronPython and IronMath are present in the same directory
I'm using the below command to produce the executable:

ipy pyc.py /main:MainForm.py /out:mysecs.exe /target:winexe


Try compiling as a console application rather than a windows executable and when you run it you will get the error message output to the console.

Michael

Begining of the program looks like this:

import clr
clr.AddReference('System')
clr.AddReference('System.Windows.Forms')
clr.AddReference('System.Drawing')
#unmanaged code
clr.AddReference('mySecs')
#external dlls
clr.AddReference('SourceGrid')
clr.AddReference("System.Data")
clr.AddReference('System.Data.SQLite')

import System
from System import *
from System.Windows.Forms import *
from System.Drawing import *
from System.Text import StringBuilder
from System.Diagnostics import Process
from System import Environment
from System import DateTime

from System.Data.SQLite import *
import SourceGrid

from mySecsUnmanagedCode import User32

Any help is appreciated. Thank you,
Joseph
_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com


--
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/
http://www.trypython.org/
http://www.ironpython.info/
http://www.resolverhacks.net/
http://www.theotherdelia.co.uk/

_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to