471,893 Members | 1,996 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,893 software developers and data experts.

BCB5 & Py_InitModule in python 2.3.5 crashes sometimes


I embedded the python 2.3.5 interpreter in my Borland C++ Builder 5
application on WinXP pro Sp2 and all runs fine.

(I translated the python23.lib with coff2omf)

But from time to time when I call Py_InitModule
I get a dialog:

Title: Microsoft Visual C++ Runtime Library
Program: bla\bla\myapp.exe

This application has requested the Runtime to terminate in an
unusual way, please contact the applicatio'n team for
more information.

(This problem appears sometime somewhere else too, but
I was not able to localize it)

My question is:

- has somebody experienced something similar with BCB5?
(so I know if its perhaps a bug in bcb only)

- or is it a bug in python 2.3.5

- has the python interpreter some threads which are
perhaps not completely initialized??

- would python 2.4.1 help (since its linked with VS 2003??)
When I go through my code step by step in the bcb debugger
all runs fine, only if i "run" over the critical part
I get the problem. (thats the reason its so hard to localize)

The python interpreter is initialized when
I click on a button in my app (not in the startapp of the app)

The funny thing: I crash 3 times my app, and when I try it the 4'th
time it works.

I would be very glad for even a small hint, since
actually I have no more ideas :-(


Jul 19 '05 #1
0 1121

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Andrew Ellem | last post: by
reply views Thread by Adam Tomjack | last post: by
reply views Thread by Kurt B. Kaiser | last post: by
reply views Thread by Mark Thompson | last post: by
2 posts views Thread by Matthew Tylee Atkinson | last post: by
2 posts views Thread by oyster | last post: by
2 posts views Thread by Russell Blau | last post: by
5 posts views Thread by Stef Mientki | last post: by
reply views Thread by YellowAndGreen | last post: by
reply views Thread by zermasroor | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.