I'm having a random numeric issue with this code

Hello, my problem is that my code is sometimes working and soemtimes not, I suspect its a precision error and I would like to find a solution to it.
Here's my code:

.H
 ``123456789101112131415161718192021222324252627`` ``````#include #include // std::max #include // std::abs class MyWheel { public: MyWheel(void); ~MyWheel(void); float radius; float inertia; float drivingTorque; float brakingTorque; void Initialise(); void Destroy(); void Reset(); float GetRotation(); float GetOmega(); void Update(float dT); private: float timeStep; float rotation; float omega; float longForce; };``````

.CPP
 ``123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869`` ``````#include "MyWheel.h" #define Deg2Rad(deg) ((deg) * M_PI / 180) #define Rad2Deg(rad) ((rad) * 180 / M_PI) template float sgn(T val) { return (T(0) < val) - (val < T(0)); } MyWheel::MyWheel(void) { Initialise(); } MyWheel::~MyWheel(void) { Destroy(); } void MyWheel::Initialise() { radius = 0.3f; Reset(); } void MyWheel::Destroy() { Reset(); } void MyWheel::Reset() { timeStep = 0.0f; omega = 0.0f; rotation = 0.0f; forwardVel = 0.0f; absForwardVel = 0.0f; drivingTorque = 0.0f; brakingTorque = 0.0f; } float MyWheel::GetRotation() { return Rad2Deg(rotation); } float MyWheel::GetOmega() { return omega; } void MyWheel::Update(float dT) { timeStep = dT; float drivingAngularDelta = drivingTorque * timeStep / inertia; float brakingAngularDelta = brakingTorque * timeStep / inertia; float roadTorque = longForce * radius; float roadAngularDelta = roadTorque * timeStep / inertia; omega -= roadAngularDelta; omega += drivingAngularDelta; if (fabs(omega) > brakingAngularDelta) { omega -= brakingAngularDelta * sgn(omega); } else { omega = 0.0f; } rotation += omega * timeStep; }``````

The issue comes in with "omega".

I have a vector of 4 MyWheel objects.
I have a DLL that i am creating for a C#
When I Update the wheel array I sometimes(pretty often actually) get a error with omega, its 0.0 or it's something like 560000000000000000000000... or sometimes the update is completely out of sync. For example 3 wheels are working ok, but one of the wheels is updating slower or sometimes faster.

Also a funny thing I noticed is that the destructor doesnt work.
For example 3 runs work okay, from the fourth run the omega gets messed up And from that point after every run is messed up and gets worse every time. It's liek the dll is not unloading.