New topic: 

NilObjectException

<http://forums.realsoftware.com/viewtopic.php?t=34334>

         Page 1 of 1
   [ 4 posts ]                 Previous topic | Next topic          Author  
Message        John C          Post subject: NilObjectExceptionPosted: Sat Jun 
19, 2010 10:33 pm                         
Joined: Mon May 24, 2010 9:55 pm
Posts: 14
Location: Shellharbour NSW, Australia                Hi again,

Another problem.  I have completed this project and it runs fine both within RB 
and after it has been built.  I am using "Inno Setup" to compile an 
installation package and when it installs I get a NilObjectException message 
and then it shuts down.  The build process gives me my main file, Pavement.exe, 
and a folder called Pavement Libs which holds REALSQLDatabase.dll.  If I run 
Pavement.exe all works OK.  After I package it up I get the problem.  I am 
having Inno Setup put the Pavement.exe in the application directory, and the 
REALSQLDatabase.dll in the Windows/System directory with all the other .dll's.  
Would this be where I am going wrong or is there a better way to make an 
installation set?


Cheers,

John.   
                             Top                 timhare          Post subject: 
Re: NilObjectExceptionPosted: Sat Jun 19, 2010 11:27 pm                         
Joined: Fri Jan 06, 2006 3:21 pm
Posts: 7916
Location: Portland, OR  USA                That is indeed where you're going 
wrong.  The libs folder must remain intact next to the .exe file.  As of 2010r2 
there are 2 additional places you can put the dll:

In a common "libs" directory next to the exe
Directly next to the exe.

You cannot put the dll in the system folder.   
                             Top                John C          Post subject: 
Re: NilObjectExceptionPosted: Sun Jun 20, 2010 12:38 am                         
Joined: Mon May 24, 2010 9:55 pm
Posts: 14
Location: Shellharbour NSW, Australia                Thanks Tim,

I put the folder under the app directory, re complied the installation pack and 
it worked on this machine.  I tried to install it on another XP machine and on 
a Vista laptop but I got the usual suspect back again.  I also tried option2 
and put in it in the app directory but no go.  The Vista laptop has RB 
installed on it but the second XP does not.  I am using RB2010 R2.  It looks 
like there is something missing from the installation set, there are only the 
.exe and the .dll that I am including.  Should there be anything else?

John.   
                             Top                 jefftullin          Post 
subject: Re: NilObjectExceptionPosted: Sun Jun 20, 2010 4:50 am                 
                
Joined: Wed Nov 15, 2006 3:50 pm
Posts: 1662
Location: England                Theres only one DLL in the Pavement Libs 
folder??      
_________________
RB2009 R5.1 and RB2008
Mac 10.6 + Windows 7/XP  + Ubuntu Linux in Vmware
on a Macbook 2.16  
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 4 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to