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) 5 queries took 2 ms
NrQueryErrorAffectedNum. rowsTook (ms)
1SELECT `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 1111
2SELECT `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
3SELECT `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
4SELECT `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
5UPDATE `posts` AS `Post` SET `Post`.`hitcount` = Post.hitcount + 1 WHERE `Post`.`id` = 8510