Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Mon Nov 19, 2018 3:13 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Error message
PostPosted: Fri Dec 31, 2010 5:19 pm 
Offline

Joined: Sun Feb 14, 2010 11:19 pm
Posts: 213
Location: Australia
My app is compiled in Windows and ran well in Linux but has suddenly failed to open after the last compile. I haven't changed the code.
I'm getting a Runtime error. Any clues?

Quote:
Runtime Error
Press OK to Continue
Press Cancel to Quit.

Please report what caused this error
along with the information below.

../Common/plugin.cpp: 6950
Failure Condition: 0
The application cannot continue because a needed file cannot be installed. libiodbc.so.2: cannot open shared object file: No such file or directory


It runs OK on Windows but sometimes does the same on Mac but the Runtime message doesn't contain any information about what caused it.


Top
 Profile  
Reply with quote  
 Post subject: Re: Error message
PostPosted: Sat Jan 01, 2011 3:53 pm 
Offline

Joined: Sun Feb 14, 2010 11:19 pm
Posts: 213
Location: Australia
Oops :oops:

I should have looked more closely at the filename in the error message (libiodbc.so.2)

I added ODBC so the Windows version could import from MS Access databases. How can I turn this off in the Linux App?


Top
 Profile  
Reply with quote  
 Post subject: Re: Error message
PostPosted: Mon Jan 03, 2011 3:10 pm 
Offline
User avatar

Joined: Wed Mar 15, 2006 7:11 pm
Posts: 700
Hi,

Maybe wrap your specific windows code in Target flags(Conditional Compilation)

http://docs.realsoftware.com/index.php/%EF%BC%83If...%EF%BC%83Endif

HTH

_________________
Windows XP + RB2009R2
Windows Vista + RB2009R2
Windows 7 32&64 + RB2009R2
CentOS Linux + RB2009R2


Top
 Profile  
Reply with quote  
 Post subject: Re: Error message
PostPosted: Wed Jan 05, 2011 5:16 am 
Offline

Joined: Sun Feb 14, 2010 11:19 pm
Posts: 213
Location: Australia
OK so removing all references to ODBC databases cures the problem. But it doesn't make my project multi-platform if I need to run separate projects for Linux and Windows.

I have tried using
#If (TargetWin32) then ...
in front of code with references to ODBC connections etc. but how tell the compiler to ignore a property declaration in a Window
eg. Dim dbAccess as ODBCDatabase or a function which accepts an ODBC database as a parameter?


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group