Skip to content
DataMiner Dojo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • YouTube Videos
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Agility
      • Learn more about Agile
        • Agile Webspace
        • Everything Agile
          • The Agile Manifesto
          • Best Practices
          • Retro Recipes
        • Methodologies
          • The Scrum Framework
          • Kanban
          • Extreme Programming
        • Roles
          • The Product Owner
          • The Agile Coach
          • The Quality & UX Coach (QX)
      • Book your Agile Fundamentals training
      • Book you Kanban workshop
    • >> Go to DataMiner Docs
  • DevOps
    • About the DevOps Program
    • Sign up for the DevOps Program
    • DataMiner DevOps Support
    • Feature Suggestions
  • Downloads
  • Swag Shop
  • PARTNERS
    • Business Partners
    • Technology Partners
  • Contact
    • Sales, Training & Certification
    • DataMiner Support
    • Global Feedback Survey
  • >> Go to dataminer.services

Disposable Objects in DataMiner

Solved138 views4 days agoConnector Disposable HttpClient
1
Bautista Solanet [SLC] [DevOps Advocate]490 5 days ago 0 Comments

Hello Dojo,

I have a driver that uses an HttpClient to communicate with an API. For all of the API calls, we simply initialize the Http object, sends the request, and then disposes the object. The issue I'm having is that after we left an element with this version running the driver for a long time, it ran into an issue with accessing a disposable object after it was disposed. After we restarted the element, the issue went away and we cannot recreate it. This seems strange since the only place where this object is accessed is before we dispose it, so I'm hoping someone might know if I'm missing something. Here's one of the methods where I'm experiencing the error:

Thank you for your help,

Bauti

Bautista Solanet [SLC] [DevOps Advocate] Selected answer as best 4 days ago

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
5
Jeroen Neyt [SLC] [DevOps Advocate]2.51K Posted 5 days ago 0 Comments

The code looks safe as long as SendTokenizeRequest is implemented correctly, meaning it doesn’t internally rely on the HttpHelper object after returning its Task.

If SendTokenizeRequest does something like:

Task.Run(() => DoSomethingWith(httpHelper));

then the HttpHelper instance could be disposed while that background task is still using it.

If that’s not the case, are you sure the ObjectDisposedException that was thrown actually originated from the HttpHelper instance?

Jeroen Neyt [SLC] [DevOps Advocate] Edited answer 4 days ago
You are viewing 1 out of 2 answers, click here to view all answers.
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin