Forums › Forums › SIMPOL Programming › simpolserver cautionary tale
- This topic has 1 reply, 2 voices, and was last updated 13 years, 5 months ago by Michael.
- AuthorPosts
- November 19, 2010 at 3:32 pm #273JD KromkowskiParticipant
I kept having some trouble getting ppcs files to open. The error message had this curious spacing in describing the file that couldn’t be opened which lead me to discover the problem. Here is error log: 2010.11.11-14:31:07.000000: Initializing server 2010.11.11-14:31:07.046000: Listening on port number 4000, txfactor=0 2010.11.11-14:31:07.046000: Listening on port number 4001, txfactor=0 2010.11.11-14:31:07.062000: TCP/IP Listener on port number 24000 2010.11.11-14:31:07.062000: Sharing start at 14:31:07.062000 2010.11.11-14:31:07.062000: Sharing C:Program FilesSIMPOLDatacase1.sbm FilesSIMPOLDatacase1.sbm”: Database ” C:Program FilesSIMPOLDatacase1.sbm” not found! Note the space between ” and C:Program … etc. That lead me to more carefully inspect the Sample.cfg text. This causes problem: [Files] 1= C:Program FilesSIMPOLDatacase1.sbm,240000000 This does not cause problem [Files] 1=C:Program FilesSIMPOLDatacase1.sbm,240000000
November 19, 2010 at 4:03 pm #1578MichaelKeymasterOn 19/11/2010 15:32, JDK wrote:
> I kept having some trouble getting ppcs files to open. The error
> message had this curious spacing in describing the file that couldn't
> be opened which lead me to discover the problem.
>
> Here is error log:
>
> 2010.11.11-14:31:07.000000: Initializing server
> 2010.11.11-14:31:07.046000: Listening on port number 4000,
> txfactor=0 2010.11.11-14:31:07.046000: Listening on port number 4001,
> txfactor=0 2010.11.11-14:31:07.062000: TCP/IP Listener on port number
> 24000 2010.11.11-14:31:07.062000: Sharing start at 14:31:07.062000
> 2010.11.11-14:31:07.062000: Sharing C:Program
> FilesSIMPOLDatacase1.sbm FilesSIMPOLDatacase1.sbm": Database "
> C:Program FilesSIMPOLDatacase1.sbm" not found!
>
> Note the space between " and C:Program … etc.
>
> That lead me to more carefully inspect the Sample.cfg text.
>
> This causes problem:
>
> [Files] 1= C:Program FilesSIMPOLDatacase1.sbm,240000000
>
> This does not cause problem
>
> [Files] 1=C:Program FilesSIMPOLDatacase1.sbm,240000000That is true. But it is also true of any entry in an ini file as
supported by the conflib.sml project. It is arguable that the code using
this should ltrim() the result that it reads.Ciao, Neil
- AuthorPosts
- You must be logged in to reply to this topic.