Hello,
when calling EwFreeBitmap an exception occurs at EwUpdateViewer
I created my own Extern Bitmap class which does not use a name to load an Extern Bitmap, but an ID or an handle of an already created Bitmap.
The code is nearly the same as in the provided ExternBitmap class. When loading or reloading an Image the current displayed Extern Bitmap Handle gets freed and a new one will be loaded.
In my program it is possible that the Image has changed in the Device. Therefore a new Bitmap is created in the Device Driver (similar to EwLoadExternBitmap) while the current Bitmap is still displayed. The handle of the new Bitmap is Input of the load function, where the current Bitmap gets freed. Then the Extern Bitmap Handle is set with the Input Handle.
The exception occurs when a new Bitmap is created and the old one should be deleted.
Can you help me to understand this error?
Best regards Jonas