# Multiple fileopen bank callbacks

**URL:** <https://qa.fmod.com/t/multiple-fileopen-bank-callbacks/16216>\
**Category:** FMOD Engine\
**Created:** [September 23, 2020, 5:02pm UTC](https://qa.fmod.com/t/multiple-fileopen-bank-callbacks/16216 "2020-09-23T17:02:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ranette](https://avatars.discourse-cdn.com/v4/letter/r/f19dbf/32.png) [@ranette](https://qa.fmod.com/u/ranette)\
**Post date:** [September 23, 2020, 5:02pm UTC](https://qa.fmod.com/t/multiple-fileopen-bank-callbacks/16216/1 "2020-09-23T17:02:36Z")

</div>

Hi everyone!  
I’ve faced a problem causing memory overhead. I’ve added my own file system callbacks and was able to see one bank to be opened more often than another (Some fileopen operations didn’t have appropriate fileclose callbacks). But all that calls were made from FMOD thread and I have a problem with detecting the cause why they were made.  
5 MyApp CFMODSoundDriver::FileOpenCallback(char const, unsigned int, void\*, void)  
6 MyApp FMOD::UserFile::reallyOpen(char const, unsigned int)  
7 MyApp FMOD::File::open(char const, unsigned int, unsigned int, char const)  
8 MyApp FMOD::SystemI::createSoundInternal(char const, unsigned int, unsigned int, unsigned int, FMOD\_CREATESOUNDEXINFO, bool, FMOD::SoundI\*\*)  
9 MyApp FMOD::AsyncThread::threadFunc()  
10 MyApp FMOD:🧵:callback(void\*)  
11 MyApp FMOD\_OS\_Thread\_Callback(void\*)  
Is there any way to catch a caller. I’ve tried to start synchronously, but this callbacks still are called in separate thread or from update without any info. And I see seek and read repeating pattern.  
Thanks for help!

---

<div class="post-metadata">

**Author:** ![ranette](https://avatars.discourse-cdn.com/v4/letter/r/f19dbf/32.png) [@ranette](https://qa.fmod.com/u/ranette)\
**Post date:** [September 28, 2020, 11:01am UTC](https://qa.fmod.com/t/multiple-fileopen-bank-callbacks/16216/3 "2020-09-28T11:01:30Z")

</div>

Looped sounds event cause it! I have 5 instances of the looped sound starting simultaneously and an instance of another one looped too. Memory drain starts when I add more looped sounds. It always starts after two or three minutes, especially in the iOS application and leads to the application drop by memory overhead.

---

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [September 29, 2020, 4:39am UTC](https://qa.fmod.com/t/multiple-fileopen-bank-callbacks/16216/4 "2020-09-29T04:39:59Z")

</div>

What version of FMOD are you using?

---

<div class="post-metadata">

**Author:** ![ranette](https://avatars.discourse-cdn.com/v4/letter/r/f19dbf/32.png) [@ranette](https://qa.fmod.com/u/ranette)\
**Post date:** [September 29, 2020, 6:25am UTC](https://qa.fmod.com/t/multiple-fileopen-bank-callbacks/16216/5 "2020-09-29T06:25:07Z")

</div>

Version 1.10.20 is used

---

<div class="post-metadata">

**Author:** ![ranette](https://avatars.discourse-cdn.com/v4/letter/r/f19dbf/32.png) [@ranette](https://qa.fmod.com/u/ranette)\
**Post date:** [September 29, 2020, 2:51pm UTC](https://qa.fmod.com/t/multiple-fileopen-bank-callbacks/16216/6 "2020-09-29T14:51:41Z")

</div>

I’ve tried with 2.01.04 too with the same result.

---

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [October 7, 2020, 8:59pm UTC](https://qa.fmod.com/t/multiple-fileopen-bank-callbacks/16216/7 "2020-10-07T20:59:23Z")

</div>

Apologies for the delay. Are you able to send us a project that reproduces the issue? I tried to reproduce it myself but did not have any luck.
