Using R 3.1
I am having 2 problems with my built and installed app. It is only on my machine.
The first one is a NilObject. The second is on closing the starting window closing to normally open another window it closes without warning. Neither of these appear in a debugbuild.
The first one is while displaying the About Box, I get a NilObject. I suspect it has something to do with the Xojo logo not displaying properly. The logo display is handled by a method called App,ScalePicture and you can see the difference. The name is displayed in the box. The problem with that theory is it should be caught by the Try Catch.
Here’s the code
Catch err As NilObjectException
#If TargetWindows Then
bmsg = New BoxMssage( 0, "The Picture Cannot be Used Because of " + err.ErrorNumber.ToText, "Picture", CurrentMethodName )
MessageBox("The Picture Cannot be Used Because of " + err.ErrorNumber.ToText)
Like I wrote above the other problem is the application closes unexpectedly when I close the first window and the window calls for the main window to open (via mainwindow.show). One can also quit from the first window, but I have verified it isn’t following that path.
In case it matters, I’m using Actual Installer.
The Xojo logo is visible in both cases… its not the logo that is the issue.
What is the EXACT line that generates the nilobject exception?
(if this does not happen in debug mode, add some debugging code to test the objects referred to in this method…
if ThePicture = nil then messagebox “ThePicture was nil”
if btnClose = nil then messagebox “btnClose was nil”
and so on.
application closes unexpectedly when I close the first window and the window calls for the main window to open (via mainwindow.show)
mainwindow.show will only work if you have ImplicitInstance set to true.
Otherwise you would need to do this as