radstudio logo

embarcadero dbexpress SQLConnection DriverName access violation DbxCommon150.bpl

Problem

I struck a problem trying to use the dbExpress TSQLConnection components on an upgraded BDS2006 application where the program would compile and link fine but when you ran the application it would fail with the following access violation error :-

Show Plain Text
Text code
  1. Error reading SQLConnection1.DriverName: Access violation at address 51CE8B73 in module 'DbcCommonDriver150.bpl'. Read of address 00000010.

The problem relates to the XE project conversion from BDS2006 in some manner. I tested this with a new blank VCL form application from BDS2006 and getting XE to convert the application and the trying to add a dbExpress component and setting the driver name to MySQL, on execute you get the above access violation.

Solution

I found the solution for me was to create a blank VCL form application in XE and then import all of the Forms, dialogs, and code from the original application. When done this way the dbExpress mysql components work like a charm.

0 Responses to “embarcadero dbexpress SQLConnection DriverName access violation DbxCommon150.bpl”

Sorry, comments have been closed for this post.
(default) 11 queries took 5 ms
NrQueryErrorAffectedNum. rowsTook (ms)
1DESCRIBE `posts`17171
2DESCRIBE `comments`11111
3DESCRIBE `tags`221
4DESCRIBE `categories`220
5DESCRIBE `posts_tags`221
6DESCRIBE `categories_posts`220
7SELECT `Post`.`id`, `Post`.`url`, `Post`.`title`, `Post`.`icon`, `Post`.`metadesc`, `Post`.`metakeys`, `Post`.`categories`, `Post`.`tease`, `Post`.`body`, `Post`.`private_body`, `Post`.`created`, `Post`.`modified`, `Post`.`status`, `Post`.`allow_comments`, `Post`.`tags`, `Post`.`hitcount`, `Post`.`hitcount_rss` FROM `posts` AS `Post` WHERE `Post`.`url` = 'embarcadero-dbexpress-sqlconnection-drivername-access-violation-dbxcommon150-bpl' LIMIT 1110
8SELECT `Comment`.`id`, `Comment`.`post_id`, `Comment`.`body`, `Comment`.`author`, `Comment`.`url`, `Comment`.`email`, `Comment`.`ip`, `Comment`.`status`, `Comment`.`junk_score`, `Comment`.`created`, `Comment`.`modified` FROM `comments` AS `Comment` WHERE `Comment`.`status` = 2 AND `Comment`.`post_id` = (85) 001
9SELECT `Tag`.`id`, `Tag`.`tag`, `PostsTag`.`post_id`, `PostsTag`.`tag_id` FROM `tags` AS `Tag` JOIN `posts_tags` AS `PostsTag` ON (`PostsTag`.`post_id` = 85 AND `PostsTag`.`tag_id` = `Tag`.`id`) 990
10SELECT `Category`.`id`, `Category`.`category`, `CategoriesPost`.`post_id`, `CategoriesPost`.`category_id` FROM `categories` AS `Category` JOIN `categories_posts` AS `CategoriesPost` ON (`CategoriesPost`.`post_id` = 85 AND `CategoriesPost`.`category_id` = `Category`.`id`) 110
11UPDATE `posts` AS `Post` SET `Post`.`hitcount` = Post.hitcount + 1 WHERE `Post`.`id` = 8510