NetTalk Central

Author Topic: NT and working thread  (Read 3200 times)

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
NT and working thread
« on: May 29, 2016, 11:13:41 AM »
Hi, Im reading data from web pages with a NT proc with the window hided started at the app setup.
This is not very "stable", there are moment in which you want to exit the app and it freezes and I cant figuere why, beleive me I´ve tried.
Is there any way of turn this proc into a working Thread?
I´ve read Diego from SV saying its very safe to do backgroud work.
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: NT and working thread
« Reply #1 on: May 30, 2016, 12:06:19 AM »
Hi Alberto,

>> Hi, Im reading data from web pages with a NT proc with the window hided started at the app setup.
>> This is not very "stable", there are moment in which you want to exit the app and it freezes and I cant figuere why, beleive me I´ve tried.

Your lack of finding a solution does not imply this is the wrong approach. It simply means that you don't (yet) understand the problem sufficiently to determine a solution. Rather than look for work-arounds I suggest you make an example of the problem and perhaps ask for help with that.

Obviously opening and closing windows is normal behavior for pretty much every application, and that works, so it's more a question of understanding what you are doing differently and taking it from there.

You don't mention what you have tried, or what has mattered - but there are plenty of obvious issues which could cause the problem you are referring to.

>> Is there any way of turn this proc into a working Thread? I´ve read Diego from SV saying its very safe to do background work.

A "Working Thread" is just a normal thread, making use of the WorkingThreadManager class. Whatever you are doing wrong would still be wrong. The problem is not with the "window" it's with something else in your architecture.

cheers
Bruce