FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

OdbcResult.fetchRow trows array out of bounds.

 
Post new topic   Reply to topic     Forum Index -> DDBI
View previous topic :: View next topic  
Author Message
simhau



Joined: 06 Feb 2007
Posts: 55

PostPosted: Wed May 09, 2007 2:55 am    Post subject: OdbcResult.fetchRow trows array out of bounds. Reply with quote

When I try to get certain row values I get array out of bound on line 92 of OdbcResult.d.

This value does not throw an error:
ObjectName\x0033805\x00Info1\x00Left\x0032770\x00400\x00Top\x0032770\x00200\x00Width\x0032770\x009200\x00Height\x0032770\x00600\x00Visible\x006148\x00Yes\x00Enabled\x002052\x00Yes\x00Autosize\x002052\x00Yes\x00PT\x002054\x00User\x00TabIndex\x0032770\x000\x00FontName\x0036877\x00Default\x00FontSize\x0036877\x00Default\x00FontBold\x004100\x00No\x00FontItalic\x004100\x00No\x00BevelWidth\x006146\x001\x00BorderWidth\x006146\x000\x00Bevel\x004102\x00None\x00BorderStyle\x004102\x00None\x00Transparent\x004100\x00No\x00ForeColor\x0036869\x00&H80000008\x00BackColor\x0036869\x00&H8000000f\x00TextAlign\x004102\x00Left\x00

But this does:
ObjectName\x0033805\x00Single1\x00Left\x0032770\x00400\x00Top\x0032770\x001400\x00Width\x0032770\x009200\x00Height\x0032770\x004400\x00Visible\x006148\x00Yes\x00Enabled\x002052\x00Yes\x00Autosize\x002052\x00Yes\x00PT\x002054\x00User\x00TabIndex\x0032770\x001\x00FontName\x0036877\x00Default\x00FontSize\x0036877\x00Default\x00FontBold\x004100\x00No\x00FontItalic\x004100\x00No\x00BevelWidth\x006146\x001\x00BorderWidth\x006146\x000\x00Bevel\x004102\x00None\x00BorderStyle\x004102\x00None\x00MustAnswer\x004\x00Yes\x00Precodes\x006\x00All\x00PrecodeOrder\x006\x00Normal\x00PunchType\x005126\x00Single\x00OrderStyle\x006\x00Syncronized\x00SeedValue\x002055\x000\x00ShortcutMode\x004102\x00Auto\x00Transparent\x004100\x00No\x00Col\x0036866\x001\x00ForeColor\x0036869\x00&H80000008\x00BackColor\x0036869\x00&H8000000F\x00Orientation\x004102\x00Horizontal\x00WarningLevel\x006\x00None\x00

I thought it might be because of the buffersize set to 512, but the first string is 617 long and the second 883 long.

This applies both to 0.2.5 and trunk. I'm using the odbc to connect to a access 2.0 database.
Back to top
View user's profile Send private message
simhau



Joined: 06 Feb 2007
Posts: 55

PostPosted: Wed May 09, 2007 2:57 am    Post subject: Reply with quote

Forgot to mention. I'm using dmd 1.014 and phobos
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> DDBI All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group