Find Jobs
Hire Freelancers

python release dll, can't capture error output

$30-100 USD

Cancelado
Publicado hace más de 11 años

$30-100 USD

Pagado a la entrega
I have a C++ program that captures and displays the syntax or runtime error information when a python script is run. It works when compiled with the debug python dll, [login to view URL], but not with the realease dll. Another programmer working on the project tod me this has something to do with the dll itself. ## Deliverables here is some of the code showing how input is captured: //set up error and print catching, do this first so that any following error will be caught PyRun_SimpleString("import ograb72984"); PyRun_SimpleString("import sys"); PyRun_SimpleString("class a7198429:\n\tdef write(self,s):\n\t\[login to view URL](s)\n");//output-grabber class, funny name to prevent ambiguity with user-defined classes PyRun_SimpleString("sys.stderr=a7198429()\nsys.stdout=a7198429()"); //\n"); //////////////////////py grabber include "pyinc.h" #include "AutoCore.h" #include "PyMethsGrabber.h" extern AutoCore Auto; //used to capture python stderr and stdout streams //equivilent to [login to view URL], [login to view URL] not used becasue would require importing tp module in globab interpreter, now only small module needs importing, see AutoCore::AutoCore() static PyObject* ograb(PyObject *self, PyObject *args) { char *s; if(!PyArg_ParseTuple(args, "s", &s)) return NULL; [login to view URL](s); Py_INCREF(Py_None); return Py_None; } static PyMethodDef ograbMeths[] = { {"ograb", ograb, METH_VARARGS, NULL}, }; void InitGrabberMeths() { Py_InitModule("ograb72984", ograbMeths); }
ID del proyecto: 2782104

Información sobre el proyecto

2 propuestas
Proyecto remoto
Activo hace 12 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
2 freelancers están ofertando un promedio de $90 USD por este trabajo
Avatar del usuario
See private message.
$100,30 USD en 5 días
5,0 (43 comentarios)
6,3
6,3
Avatar del usuario
See private message.
$80 USD en 5 días
5,0 (50 comentarios)
5,3
5,3

Sobre este cliente

Bandera de UNITED STATES
Tallahassee, United States
5,0
63
Forma de pago verificada
Miembro desde jun 27, 2003

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.