Page 1 of 1

TDAudioMixer Access Violation on .Free

PostPosted: April 11th, 2008, 10:23 am
by jvoelker
Hi,

I am getting an occassional access violation when I free TAudioMixer.

I create it like this: TDAudioMixer := TAudioMixer.Create(Self);

I free it like this in the formclose event: TDAudioMixer.Free;

Any ideas or suggestions about how to fix this would be appreciated.

Jim Voelker

PostPosted: April 11th, 2008, 2:20 pm
by Kambiz
When you create a component at runtime and pass another component (e.g. form) as its owner, the owner component releases it.

You should either pass nil as owner or do not destroy the component by yourself.