I'm trying to get the following code to work:
A$ = "int"
B$ = CompareAString(A$)
Print B$
wait key
End
Function CompareAString(P$)
if P$ = "int" then ExitFunction "L"
EndFunction ""
It prints the letter "L" on screen as expected, but then when I press a key to continue, Windows announces that DBPro has stopped working due to an "AppCrash", giving the following message:
Problem signature:
Problem Event Name: APPCRASH
Application Name: Application.exe
Application Version: 1.0.0.0
Application Timestamp: 4bd9fcf9
Fault Module Name: ntdll.dll
Fault Module Version: 6.0.6002.18005
Fault Module Timestamp: 49e03821
Exception Code: c0000005
Exception Offset: 00066796
OS Version: 6.0.6002.2.2.0.768.3
Locale ID: 2057
Additional Information 1: 6825
Additional Information 2: 26afa1667d047262284cfa4c84eab660
Additional Information 3: 1940
Additional Information 4: e9dfd281394dc2f98aa236f6346c5192
It's been a while since I've written anything in DBP, so is this just my code or is it DBP at fault? Not sure which version of DBP I have, under the editor it says 1.075. Any ideas?
We spend our lives chasing dreams. Dark Basic lets us catch some of them.