Page 1 of 1

access violation at address 00409329 in module 'Project2.exe'. Read of Address 00a682e0

Posted: Sat 27 May 2006 00:34
by alexdatacomp
i have a problem and i hope can help me. i always have used mydac version 1.30 with delphi 7, And I never had any problem. 3 weeks ago, i update to mydac version 4.30.0.13, and now, my aplications some times show me this message "access violation at address 00409329 in module 'Project2.exe'. Read of Address 00a682e0" after than i used aplyupdates instruction. myquery is on cahed updates mode.

What's Wrong?

thanks for the help

Edwin Alexis De la Cruz Ascencio
Puebla Mexico

Posted: Mon 29 May 2006 13:21
by Antaeus
The information you have provided isn't enough. Try to localize the problem in your program and report us what exactly causes the problem. But the best way to report us about problems is to send us (evgeniyD*crlab*com) a complete small sample to demonstrate it, including script to create and fill table. Also supply us following information
- Exact version of Delphi
- Exact version of MySQL server and MySQL client. You can see it in Info sheet of TMyConnection Editor

Posted: Thu 01 Jun 2006 04:49
by alexdatacomp
hi CRLAB Team:

I'm using Borland Delphi Enterprise version 7.0 build 4.453

and the info about server and client is

MySQL server version: 4.0.26-log
MySQL client version: Direct

back_log 100
basedir /usr/local/
bdb_cache_size 8388600
bdb_home
bdb_log_buffer_size 0
bdb_logdir
bdb_max_lock 10000
bdb_shared_data OFF
bdb_tmpdir
bdb_version Sleepycat Software: Berkeley DB 3.2.9a: (September 3, 2005)
binlog_cache_size 32768
bulk_insert_buffer_size 8388608
character_set latin1
character_sets latin1 dec8 dos german1 hp8 koi8_ru latin2 swe7 usa7 cp1251 danish hebrew win1251 estonia hungarian koi8_ukr win1251ukr greek win1250 croat cp1257 latin5
concurrent_insert ON
connect_timeout 5
convert_character_set
datadir /var/db/mysql/
default_week_format 0
delay_key_write ON
delayed_insert_limit 100
delayed_insert_timeout 300
delayed_queue_size 1000
flush OFF
flush_time 0
ft_boolean_syntax + -><()~*:""&|
ft_max_word_len 254
ft_max_word_len_for_sort 20
ft_min_word_len 4
ft_stopword_file (built-in)
have_bdb DISABLED
have_crypt YES
have_innodb DISABLED
have_isam YES
have_openssl NO
have_query_cache YES
have_raid NO
have_symlink YES
init_file
innodb_additional_mem_pool_siz 1048576
innodb_autoextend_increment 8
innodb_buffer_pool_size 8388608
innodb_data_file_path
innodb_data_home_dir
innodb_fast_shutdown ON
innodb_file_io_threads 4
innodb_flush_log_at_trx_commit 1
innodb_flush_method
innodb_force_recovery 0
innodb_lock_wait_timeout 50
innodb_log_arch_dir
innodb_log_archive OFF
innodb_log_buffer_size 1048576
innodb_log_file_size 5242880
innodb_log_files_in_group 2
innodb_log_group_home_dir
innodb_max_dirty_pages_pct 90
innodb_max_purge_lag 0
innodb_mirrored_log_groups 1
innodb_table_locks ON
innodb_thread_concurrency 8
interactive_timeout 28800
join_buffer_size 131072
key_buffer_size 8388600
language /usr/local/share/mysql/english/
large_files_support ON
license GPL
local_infile ON
log ON
log_bin OFF
log_error
log_slave_updates OFF
log_slow_queries ON
log_update OFF
log_warnings 1
long_query_time 10
low_priority_updates OFF
lower_case_file_system OFF
lower_case_table_names 0
max_allowed_packet 1048576
max_binlog_cache_size 4294967295
max_binlog_size 1073741824
max_connect_errors 10
max_connections 200
max_delayed_threads 20
max_heap_table_size 16777216
max_insert_delayed_threads 20
max_join_size 4294967295
max_relay_log_size 0
max_seeks_for_key 4294967295
max_sort_length 1024
max_tmp_tables 32
max_user_connections 10
max_write_lock_count 4294967295
myisam_max_extra_sort_file_siz 268435456
myisam_max_sort_file_size 2147483647
myisam_recover_options OFF
myisam_repair_threads 1
myisam_sort_buffer_size 8388608
net_buffer_length 16384
net_read_timeout 30
net_retry_count 1000000
net_write_timeout 60
new OFF
open_files_limit 11095
pid_file /var/db/mysql/pro4.abac.com.pid
port 3306
protocol_version 10
query_alloc_block_size 8192
query_cache_limit 1048576
query_cache_size 16777216
query_cache_type ON
query_cache_wlock_invalidate OFF
query_prealloc_size 8192
range_alloc_block_size 2048
read_buffer_size 1044480
read_only OFF
read_rnd_buffer_size 262144
rpl_recovery_rank 0
server_id 0
skip_external_locking ON
skip_networking OFF
skip_show_database OFF
slave_net_timeout 3600
slow_launch_time 2
socket /tmp/mysql.sock
sort_buffer_size 2097144
sql_mode 0
table_cache 512
table_type MYISAM
thread_cache_size 32
thread_stack 196608
timezone PST
tmp_table_size 33554432
tmpdir /var/tmp/
transaction_alloc_block_size 8192
transaction_prealloc_size 4096
tx_isolation REPEATABLE-READ
version 4.0.26-log
version_comment FreeBSD port: mysql-server-4.0.26
version_compile_os portbld-freebsd4.11
wait_timeout 300

Discover about this error

Posted: Thu 01 Jun 2006 05:04
by alexdatacomp
Today I Discover somthing. I'm using myQuery in Cached Updates Mode, so, when i a make a change to the record, crdbgrid background color change to yellow (like ine the demo of cachedUpdates). When I was using mydac 1.30, to cancel, i was using myquery.refresh; to update, i was using myquery.applyupdates and myquery.refresh, and all works fine.

Now, I Update Mydac to 4.30, and this error it happens when i try myquery.refresh

I must use myquery.refreshrecord, and i need to find how the backgorund color of the record in crdbgrid return to white after than uses myquery.refreshrecord.

thanks

Posted: Thu 01 Jun 2006 10:08
by Antaeus
> Now, I Update Mydac to 4.30, and this error it happens when i try myquery.refresh
Possibly you have statements in some event handlers (BeforeRefresh, AfterRefresh, etc.) that change state of the MyQuery. This may be the reason. It's quite hard to exactly determine without example what causes the problem.

> how the backgorund color of the record in crdbgrid
> return to white after than uses myquery.refreshrecord.
Please specify for what reason do you want to use this.