TDAudioMixer Access Violation on .Free

Please post bug reports, feature requests, or any question regarding the DELPHI AREA projects here.

TDAudioMixer Access Violation on .Free

Postby jvoelker » April 11th, 2008, 10:23 am


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
Active Member
Active Member
Posts: 9
Joined: December 1st, 2006, 10:57 pm

Postby Kambiz » April 11th, 2008, 2:20 pm

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.
User avatar
Posts: 2430
Joined: March 7th, 2003, 7:10 pm

Return to DELPHI AREA Projects

Who is online

Users browsing this forum: No registered users and 1 guest