From: carl@... (Carl Youngblood) Date: 2002-11-04T03:18:37+09:00 Subject: Re: "stack level too deep" error when trying to multithread in win32 using dbi > > C> I'm trying to do some multithreaded ruby programming on Windows, using > C> the pragprogrammers' ruby167-5.exe installation. I've got MySQL > C> working too and I'm using the DBI in my code. The thing is, ruby > C> threads work fine if I don't call any DBI code. But if I do call DBI > C> code, even if I completely close my connection before using any > C> threads, I get a "stack level too deep" error. When I remove the DBI > C> code, the threads work fine. Here is the threaded code: > > Can you give the complete example, I can't reproduce it with DBD::Pg > I believe the problem is related to the Win32 port of ruby not having complete support for ruby threads. I'm just wondering if anyone knows a way around this, or if it is going to be fixed soon. Thanks, Carl