View Full Version : More Ideas
Hi,
If you have Antivir on your Hd then forget the demos.
ErosOlmi
27-10-2012, 08:35
Hi peter,
examples are working fine here, except they all crash at the end when pressing ESC.
It seems there is a GPF but I cannot understand where.
Because I do not have source, I can only suspect 3 possible areas:
in the procedure that close the window
in de-allocating some kind of resource (fonts, bitmaps, ...). Are they de-allocated? Are they de-allocated at the right time?
when the DLL perform the classic DLL_PROCESS_DETACH (dll programmer should free memory allocated dynamically inside dll)
in de-allocating external DLL
I will check about point 4 because it is in mine control. I will check what thinBasic does when it closes external libraries.
Ciao
Eros
ErosOlmi
27-10-2012, 10:03
Problem seems inside A.DLL and I suppose it is due to un-allocated memory or resources:
Problem signature:
Problem Event Name: APPCRASH
Application Name: ThinBasic.exe
Application Version: 1.8.9.0
Application Timestamp: 00003039
Fault Module Name: A.dll
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 508c55f1
Exception Code: c0000005
Exception Offset: 00002474
OS Version: 6.1.7601.2.1.0.256.48
Locale ID: 1040
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
Hi Eros, thanks for your effort.
Unfortunately I don't see a crash here and can not react on it.
I kill all the bitmap and memory if I end the application, since I am programmer !
Try the the demo please.
If a crash appears with you, then I have to remove that Escape key.
Fullscreen must remove likewise. What a pity !
Question:
What is thinBasic interpreter doing when a program ends?
I only using your thinBasic core.