0
0

Hi,

This is my first post and I have to admit FMOD is a wonderfull piece of software… love it 😀

I’m close to finishing my app but I’m stuck near the end.

I have made an OCX in VB6 with fmodex.dll 0.4.6.12, everthing runs great but when closing the ocx (quiting ie explorer where it runs) VB crashes.

Of course I read many topics on this and tried the FMOD_System_Close(system) but when calling this I receive a error:

FMOD error!(70) This command failed because System::init or System::SetDriver was not called.

Please be gentle, I’m a real newbe with not much experience in coding. I want to know how should exit in order to prevent this.

Kind regards,

ShAdOwHuNtEr

  • You must to post comments
0
0

Can’t help feeling a little bit dissapointed in this forum 😥

Nobody ever had a similar problem ?

  • You must to post comments
0
0

Are you sure that the system variable you use for closing fmod is the same as the one you used for initializing? (it has to be global in your ocx)

  • You must to post comments
0
0

Think last trying doing something similar, it appears vb6 had some strange oppinions when to initialize/terminate usercontrols or not.
Maybe try debugging if it really attempts to load and unload once.
Also don’t unload if it didn’t load.

  • You must to post comments
0
0

Hi Adion,

Yes, I used the same, even changed it to "systemID" because some think "system" is a reserved namespace in VB6.

@Controller, indeed there lies the problem, I can use "unload me", it will result in an error, also "End" does noet work for OCX.

How must I terminate/unload a OCX ?

Kind regards,

ShAdOwHuNtEr

  • You must to post comments
0
0

VB6 does this automatically when loading/unloading the parent form, but also when showing/hiding in the IDE

  • You must to post comments
Showing 5 results
Your Answer

Please first to submit.