1. François Van Lerberghe
  2. Valentina Server
  3. Donnerstag, Februar 06 2020, 11:01 AM
  4.  Abonnieren via E-Mail
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 ?
Kommentar
There are no comments made yet.
Beatrix Willius Akzeptierte Antwort
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.
Kommentar
There are no comments made yet.
François Van Lerberghe Akzeptierte Antwort
Sorry to forget.
- Version Xojo : 2019r1.1
- Version Valentina : 9.5.3
- MacOS 10.14.6
- Hard crash, no exception
Anhänge
Kommentar
There are no comments made yet.
Beatrix Willius Akzeptierte Antwort
I just tried with 9.8.1 and the shutdown worked fine (Xojo 2019r3 and Catalina). I used the ValentinaServerUtility project.
Kommentar
There are no comments made yet.
François Van Lerberghe Akzeptierte Antwort
Ooh. Good to know. I will try this as soon as possible. Thank you.
Kommentar
There are no comments made yet.
François Van Lerberghe Akzeptierte Antwort
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
Kommentar
Hi, please report THIS info into Mantis as a bug that crashes. Please report it into V4RB project.
  1. Ruslan Zasukhin
  2. vor etwa 5 Monaten
There are no comments made yet.
François Van Lerberghe Akzeptierte Antwort
The only workaround I see is :
before issuing vServer.Shutdown, close the connexion and recreate it.
Kommentar
There are no comments made yet.
François Van Lerberghe Akzeptierte Antwort
Already reported in Mantis (#0008723), but into VALENTINA SERVER
Kommentar
There are no comments made yet.
  • Seite :
  • 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