Go Back   Club CDFreaks - Knowledge is Power > International Chat: Software related > Nero SDK Discussion Forum


Commercial message



Nero SDK Discussion Forum Discuss, Msgbox causes OnDoneCDInfo to be called again and again at International Chat: Software related forum; 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


Reply
 
Thread Tools
Old 26-07-2005   #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
Raffael Walther is offline   Reply With Quote
Old 26-07-2005   #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
unison is offline   Reply With Quote
Old 26-07-2005   #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
In the following example, that Text "Test" is only writen once.
Code:
Private Sub A_OnDoneCDInfo
    txtA = txtA & "test"  'NOT txtA = "test" !!!!
End sub
Anyway, I'll take the Messagebox out of the Sub and do it in another way.
Raffael Walther is offline   Reply With Quote
Old 26-07-2005   #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
Raffael Walther is offline   Reply With Quote
Old 26-07-2005   #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
unison is offline   Reply With Quote
Old 26-07-2005   #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!
Raffael Walther is offline   Reply With Quote
 
Reply


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

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


All times are GMT +2. The time now is 15:44.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0