New topic: 

Orders example not loading Orders.rsd on Windows

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

         Page 1 of 1
   [ 7 posts ]                 Previous topic | Next topic          Author  
Message        Oskar          Post subject: Orders example not loading 
Orders.rsd on WindowsPosted: Fri Aug 31, 2012 2:13 pm                         
Joined: Sat Nov 26, 2005 4:51 am
Posts: 340                The Orders database example does not load the 
Orders.rsd file on Windows 7.
This statement is failing but the file is in the right folder (same as the 
project folder):

OrdersDB.databaseFile = GetFolderItem("Orders.rsd")
Am I doing anything wrong?

Regards,
- Oskar   
                             Top                DaveS          Post subject: 
Re: Orders example not loading Orders.rsd on WindowsPosted: Fri Aug 31, 2012 
2:53 pm                                 
Joined: Sun Aug 05, 2007 10:46 am
Posts: 4067
Location: San Diego, CA                Do you have BUILD folders turned on?
without a path GETFOLDERITEM returns the path to where the EXECUTABLE is...... 
NOT necessarily where you project is stored      
_________________
Dave Sisemore
MacPro, OSX 10.7.3 RB2011r3
Note : I am not  interested in any solutions that involve custom Plug-ins of 
any kind  
                             Top                Oskar          Post subject: 
Re: Orders example not loading Orders.rsd on WindowsPosted: Fri Aug 31, 2012 
3:52 pm                         
Joined: Sat Nov 26, 2005 4:51 am
Posts: 340                Yes and now I also built the app and the build 
version works fine, but for some reason when I'm in debug mode it does not load 
the file. 

Regards,
- Oskar   
                             Top                DaveS          Post subject: 
Re: Orders example not loading Orders.rsd on WindowsPosted: Fri Aug 31, 2012 
3:58 pm                                 
Joined: Sun Aug 05, 2007 10:46 am
Posts: 4067
Location: San Diego, CA                because in Debug mode the executable is 
somewhere else      
_________________
Dave Sisemore
MacPro, OSX 10.7.3 RB2011r3
Note : I am not  interested in any solutions that involve custom Plug-ins of 
any kind  
                             Top                Oskar          Post subject: 
Re: Orders example not loading Orders.rsd on WindowsPosted: Fri Aug 31, 2012 
4:19 pm                         
Joined: Sat Nov 26, 2005 4:51 am
Posts: 340                Got it: in debug mode in fact a temporary folder is 
created named "Debug<app name>".
This is deleted once I quit debugging. So how do I test a database program in 
debug?   
                             Top                DaveS          Post subject: 
Re: Orders example not loading Orders.rsd on WindowsPosted: Fri Aug 31, 2012 
4:25 pm                                 
Joined: Sun Aug 05, 2007 10:46 am
Posts: 4067
Location: San Diego, CA                follow proper conventions..... and Don't 
put the DB in the same folder as the APP.
OSX and WIN will probably soon enforce that.. so now is a good time to start 
puting it the correct place

(see other posts on this forum discussing proper file locations)      
_________________
Dave Sisemore
MacPro, OSX 10.7.3 RB2011r3
Note : I am not  interested in any solutions that involve custom Plug-ins of 
any kind  
                             Top                Oskar          Post subject: 
Re: Orders example not loading Orders.rsd on WindowsPosted: Fri Aug 31, 2012 
4:59 pm                         
Joined: Sat Nov 26, 2005 4:51 am
Posts: 340                DaveS wrote:follow proper conventions..... and Don't 
put the DB in the same folder as the APP.
OSX and WIN will probably soon enforce that.. so now is a good time to start 
puting it the correct place
Ok that makes sense. Thanks a lot, Dave.   
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 7 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