Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 Other Development Tools
 MMControl1.Length( Error 380 )

Author  Topic 

sarikavbhosale
Starting Member

24 Posts

Posted - 2005-12-01 : 07:22:32
Hi,
I am facing problem in playing the mp3 file.But error occurs randomly
I am using fpspread control & on click event i am using code to play file like this,
Slider1.Min = 0
Slider1.Max = MMControl1.Length
Slider1.LargeChange = Slider1.Max * 0.1
Slider1.SmallChange = Slider1.Max * 0.01
MMControl1.Command = "Play"

error occures in mmcontrol1.length.
Please give solution to this...
Thank u

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-12-01 : 09:06:48
I think you get the error if the mmcontrol1.length is null. When you get that error what is the value of mmcontrol1.length?

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

sarikavbhosale
Starting Member

24 Posts

Posted - 2005-12-01 : 23:00:15
Hi u r right i get the null value of mmcontrol1.length......
But only sometimes it gives such null value...other times it is executing properly...
Error occurs randomly..
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-12-02 : 01:57:48
When there are no files, you may get this error

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

sarikavbhosale
Starting Member

24 Posts

Posted - 2005-12-02 : 02:12:37
No that is not the case the same files r executed for some time & after some time....after proper execution randomly & surprisingly error occurs ....no any idea @ why that error occurs randomly....when i close application completely & again start thenit again execute properly...
After some time again same error...
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-12-02 : 02:51:53
Then you need to handle that error by checking Null values

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -