| |||||||
| Commercial message | |
| | |
|
![]() |
| | Thread Tools |
| | #1 (permalink) |
| New on Forum Join Date: Apr 2005
Posts: 14
| Msgbox causes OnDoneCDInfo to be called again and again Hallo When a Messagebox is place in OnDoneCDInfo, it causes this sub to be called again and again until the last opened message box is closed. I think this is because the OnDoneCDInfo -Sub doesn't come to the end as the program waits until the messagebox is closed. The program therefore doesn't know that CDInfo was called already. Hope, this is understandable. Otherwiese just try it. You'll see immediatly what I mean. Regards Raffael Walther |
| | |
| | #2 (permalink) |
| CD Freaks Member Join Date: Dec 2003 Location: uk
Posts: 234
| Re: Msgbox causes OnDoneCDInfo to be called again and again Just tried it, and the message box only appears once! Are you sure you are not repeatedly calling the drive.cdinfo method, this seems the most likely cause. Mike |
| | |
| | #3 (permalink) |
| New on Forum Join Date: Apr 2005
Posts: 14
| Re: Msgbox causes OnDoneCDInfo to be called again and again Hello Yes, I am VERY sure because I don't even call it one time. The event is automatically called if for example a media is inserted or (I suppose the NeroDrive...) -Object is loaded. Messagebox is opened again and again.... Code: Private Sub A_OnDoneCDInfo
Msgbox "Test"
End Sub Code: Private Sub A_OnDoneCDInfo
txtA = txtA & "test" 'NOT txtA = "test" !!!!
End sub |
| | |
| | #4 (permalink) |
| New on Forum Join Date: Apr 2005
Posts: 14
| Re: Msgbox causes OnDoneCDInfo to be called again and again Hello again I also DON'T set txtA="" somewhere in the code. OnDoneCDInfo is really just called one time in the 2nd example. It's really clear for me. I tried serveral examples. As long as the last opened Messagebox is not closed, new Messageboxes are opened again and again.... As soon as the last called Box was closed, they stopped poping up. Regards Raffael |
| | |
| | #5 (permalink) |
| CD Freaks Member Join Date: Dec 2003 Location: uk
Posts: 234
| Re: Msgbox causes OnDoneCDInfo to be called again and again OnDoneCDInfo is NOT called automatically when media is inserted, that event is the OnDriveStatusChanged event. OnDoneCDInfo is only called in response to the CDinfo method. You MUST be calling CDinfo somewhere. Mike |
| | |
| | #6 (permalink) |
| New on Forum Join Date: Apr 2005
Posts: 14
| Re: Msgbox causes OnDoneCDInfo to be called again and again Hello You are right, I appologice. There is a timer in the programm that calles the event repeadedly as soon as DeviceReady has changed. There is also a variable that is set to the current status to prevent repeated calling of the even again and again..... Fact: My error and it works now! |
| | |
| |
| |
![]() |
| If you can't find where you are looking for, then become a member and get an answer fast! We have thousands of people online every moment of the day to help you! Click here |
| Bookmarks |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Returning OnDoneCDInfo | dthomson | Nero SDK Discussion Forum | 1 | 26-03-2006 15:14 |
| CDInfo - OnDoneCDInfo | PGavin | Nero SDK Discussion Forum | 7 | 10-11-2004 18:59 |
| OnDoneCDInfo?(NeroCom) | Tors | Nero SDK Discussion Forum | 5 | 04-05-2004 01:41 |
| vb.net + NeroCOM + onDoneCdInfo | tarlik | Nero SDK Discussion Forum | 2 | 25-03-2004 16:53 |
| msgbox in vb | collu luigi | Nero SDK Discussion Forum | 3 | 18-02-2004 00:09 |