#1 Burning Software

It is currently Thu Dec 19, 2024 7:09 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Callback when using threads
PostPosted: Tue Jan 29, 2008 5:42 pm 
Offline

Joined: Tue Nov 01, 2005 3:50 pm
Posts: 20
Hi guys,

My latest application uses instences of the same thread object, on for each DVD drive.

I have a CallBack procedure in the same delphi unit as the code that does the burning.

I an passing progress information out of the thread and off to mu interface VCL thread.

Now it appears that every instance of starburn_CDVDBurnerGrabber is using the callback procedure that was last assigned via starburn_CDVDBurnerGrabber_Create.

Am i missing a vital scope issue with delphi, and this is correct, or is something strange going on? Is there a way i can get around this issue?

Thanks

Vert


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 29, 2008 7:26 pm 
Offline

Joined: Tue Nov 01, 2005 3:50 pm
Posts: 20
Hi Guys,

It appears that i have solved my problem, by passing a pointer to my thread instance as the CallBackContext, and calling a Method in the thread to update the progress.

E.G.

TMyThread(CallBackContext^).UpdateProgress('Started Padding');

Thanks

Vert


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 30, 2008 8:43 am 
Offline

Joined: Fri Jan 26, 2007 4:31 pm
Posts: 452
vertuas wrote:
Hi Guys,

It appears that i have solved my problem, by passing a pointer to my thread instance as the CallBackContext, and calling a Method in the thread to update the progress.

E.G.

TMyThread(CallBackContext^).UpdateProgress('Started Padding');

Thanks

Vert


Hello Vert,

We like a quick-witted and self-supported customers :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 34 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group