Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Miguel Brigidano
  Where is Miguel Brigidano?
 Madrid
 Spain
 Miguel Brigidano
 To: onytoo
  Where is onytoo?
 Padang
 Indonesia
 onytoo
 Tags
Subject: RE: vfp2c32.fll
Thread ID: 310794 Message ID: 310914 # Views: 57 # Ratings: 0
Version: Visual FoxPro 9 Category: Classes and Objects
Date: Monday, June 27, 2011 9:16:29 AM         
   


> > Dear all,
> >
> > I have a project that use the vfp2c32.fll library for creating a multithread process.
> >
> > I use the next statements for creating a thread
> >
> >
thisform.oSaveThread = NULL
> > thisform.oSaveThread = CreateThreadObject( [savedata.ABigData] ,  thisform, .t. )
> > thisform.oSaveThread.DoSave(strConnStr,ltemp,wpatht,criterio,criteriom,simple,lperiodo,lretailer,lbkz,criteriosql,criteriomsql,crisimple)

> >
> > Do you know what is the function for kill this thread??
> >
> > Best regards
>
>
> What exactly did you meant with kill the thread?
> It will destroy if you destroy the thread object.
> To remove object from memory just do this:
>
>
>
> thisform.oSaveThread = NULL
> 

>
>
> Regards,
> Onytoo

I have created a thead with mtdll with a query. For complete this task and return focus to procedure 'oncallcomplete' is about 2 minutes.

During this time I have a progressbar in my main form, but i want can to cancel this task with 'ESC' key, for example.
For cancel the loop of the progressbar is easy, but if write the sentence 'thisform.oSaveThread = NULL', this not cancel the thread process and i have to wait until the procedure 'oncallcomplete'.

Could you tell me How can i do it?

Regards

ENTIRE THREAD

vfp2c32.fll Posted by Miguel Brigidano @ 6/24/2011 12:47:40 PM
RE: vfp2c32.fll Posted by onytoo @ 6/25/2011 9:42:56 AM
RE: vfp2c32.fll Posted by Miguel Brigidano @ 6/27/2011 9:16:29 AM
RE: vfp2c32.fll Posted by onytoo @ 6/27/2011 1:27:00 PM
RE: vfp2c32.fll Posted by Miguel Brigidano @ 6/30/2011 9:21:56 AM
RE: vfp2c32.fll Posted by onytoo @ 6/30/2011 9:35:46 AM
RE: vfp2c32.fll Posted by Miguel Brigidano @ 6/30/2011 9:46:05 AM
RE: vfp2c32.fll Posted by onytoo @ 6/30/2011 11:46:21 AM
RE: vfp2c32.fll Posted by Miguel Brigidano @ 6/30/2011 12:17:12 PM
RE: vfp2c32.fll Posted by onytoo @ 6/30/2011 4:47:40 PM
RE: vfp2c32.fll Posted by Miguel Brigidano @ 7/1/2011 9:47:12 AM
RE: vfp2c32.fll Posted by onytoo @ 7/1/2011 10:26:52 AM