Matt Feifarek wrote: > I'm having a problem with a servlet that has been very > difficult to debug. > > We're using a python-wrapper to a C library to make Flash files > (http://opaque.net/ming/, if you're interested). > > It's working fine in python: we can create and modify flash > objects, output > them, save them to disk, etc. > > If we move the EXACT SAME CODE into a servlet, as soon as the > .output() or > .save() methods are called, the ThreadedAppServer seg faults. > > We thought that it might have something to do with threading, > but setting > the .canBeThreaded() and .canBeReused() methods to either 1 > or 0 didn't seem > to make a difference. > > Is there something special about Python running in a servlet > that would > cause it to behave differently than straight interpreted or > executed python? > > Any clues? > > Thanks.
I would say it's very likely to be a threading problem. Perhaps your module only works when it's run on the main thread, or perhaps it fails if it gets called on multiple different threads? Try writing a short program that creates multiple threads using the threading module, then makes calls to your library on those threads. That will simulate what Webware is doing. - Geoff _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss