1. François Van Lerberghe
  2. Valentina Server
  3. Thursday, February 06 2020, 11:01 AM
  4.  Subscribe via email
I try to shutdown or restart vServer in my Xojo code, but issuing this command, it crash my application.
Here is my code

mVConnection = new VConnection( myHost, myUserName, myPassword, myPort, 5, mySerial )
if mVConnection <> nil then
mVConnection.Open()
mValentinaServer= new VServer( mVConnection )
end if
...
if mVConnection <> nil AND mValentinaServer <> nil then
mValentinaServer.Shutdown << this line crash my application
end if

(for the tests, my vServer is launched with a double-clic on the vserver.app file)
Have I done something wrong ?
Comment
There are no comments made yet.
Beatrix Willius Accepted Answer
The "usual suspects" in information is missing:

- Version Xojo?
- Version Valentina?
- Exception or hard crash?
- If exception which one?
- If hard crash we need the crash log.

I've wanted to implement something similar in the next days, too, so I'm very interested in your exception/crash.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Server
  3. # 1
Sorry to forget.
- Version Xojo : 2019r1.1
- Version Valentina : 9.5.3
- MacOS 10.14.6
- Hard crash, no exception
Attachments (1)
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Server
  3. # 2
Beatrix Willius Accepted Answer
I just tried with 9.8.1 and the shutdown worked fine (Xojo 2019r3 and Catalina). I used the ValentinaServerUtility project.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Server
  3. # 3
Ooh. Good to know. I will try this as soon as possible. Thank you.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Server
  3. # 4
Ok. Narrowed it down and found the origin of the problem :

You have the crash if you insert
csr = mVConnection.SqlSelect("SHOW DATABASES";) (or perhaps other SQLSelect, not tested)
before mValentinaServer.Shutdown :

mVConnection = new VConnection( myHost, myUserName, myPassword, myPort, 5, mySerial )
if mVConnection <> nil then
mVConnection.Open()
mValentinaServer= new VServer( mVConnection )
end if
...

dim csr As VCursor
csr = mVConnection.SqlSelect("SHOW DATABASES")
csr = nil
...
if mVConnection <> nil AND mValentinaServer <> nil then
mValentinaServer.Shutdown << this line crash my application
end if
Comment
Hi, please report THIS info into Mantis as a bug that crashes. Please report it into V4RB project.
  1. Ruslan Zasukhin
  2. 4 years ago
There are no comments made yet.
  1. more than a month ago
  2. Valentina Server
  3. # 5
The only workaround I see is :
before issuing vServer.Shutdown, close the connexion and recreate it.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Server
  3. # 6
Already reported in Mantis (#0008723), but into VALENTINA SERVER
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Server
  3. # 7
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Categories

Announcements & News
  1. 0 subcategories
Valentina Studio
  1. 2 subcategories
Valentina Server
  1. 4 subcategories
Valentina Database ADK
  1. 0 subcategories
Valentina Reports ADK
  1. 0 subcategories
Other Discussions
  1. 2 subcategories
BETA Testing
  1. 0 subcategories
Education & Research
  1. 0 subcategories