Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Gerardo Santana Gómez Garrido
RE: Segmentation fault on Cursor.drop [ reply ]  
2008-08-26 22:50
Well, there are bad news:

* Visual Studio 6.0 is not compatible with Windows Vista

I made it work anyways, but still, it may be a source of problems.

* I think there's a bug in Informix CSDK on Windows Vista.

The problem is the liberation of memory allocated for sqlda structures only on Windows Vista.

Unfortunately I don't have access to support from IBM for the CSDK. I e-mailed them the problem anyways.

I've found a workaround, but I can't make it work cross platform. If you are still interested, please send me an e-mail to explain you the workaround or send you back the binary for Windows Vista.

I'll keep trying to finda better solution

By: Gerardo Santana Gómez Garrido
RE: Segmentation fault on Cursor.drop [ reply ]  
2008-07-08 00:46
Sorry for the delay.

Unfortunately, I don't have a positive answer yet; but I could replicate the problem. If I can get my development tools to work on Windows Vista this week, I hope to find the bug by the end of the week.

You can help me setting up Visual Studio 6 on your Windows Vista box and building the ruby-informix gem from source.

I'd like to reply sooner, but my day job is absorbing a lot of time recently.

By: Gerardo Santana Gómez Garrido
RE: Segmentation fault on Cursor.drop [ reply ]  
2008-07-03 23:16
I see.

Give me some hours. I don't use Windows Vista, but coincidentally I've just got a Windows Vista PC today at the office. I'm going to set it up to test Ruby/Informix.

By the way, I'm not sure Ruby is supported on Windows Vista. I'm going to ask about that too.

By: Javier Fernandez-Ivern
RE: Segmentation fault on Cursor.drop [ reply ]  
2008-07-03 17:17
Gerardo,

The following code will do it:

require 'informix'

Informix.connect('mydatabase@myserver', 'myuser', 'mypassword') do |db|
db.each('select * from project_result where project_id = 32423521') do |row|
puts "#{row[1]}"
end
end

The program segfaults when the cursor is dropped after the inner block yields.

By: Gerardo Santana Gómez Garrido
RE: Segmentation fault on Cursor.drop [ reply ]  
2008-07-03 15:21
Hi Javier,

could you send me the smallest amount of code that crashes?

You may want to join the mailing list, in case you want more opinions.

By: Javier Fernandez-Ivern
Segmentation fault on Cursor.drop [ reply ]  
2008-07-01 17:40
I'm getting a segmentation fault every time Cursor.drop is invoked (close works just fine, drop does not).

I'm using ruby 1.8.6 (2007-09-24) [i386-mswin32] on Windows Vista, with Informix CSDK 3.50.TC1 and ruby-informix 0.7.1 (installed via precompiled gem).

Any ideas?