1. François Van Lerberghe
  2. Valentina Server
  3. Четверг, Февраль 06 2020, 11:01 AM
  4.  Подписаться через 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 ?
Комментарий
There are no comments made yet.
François Van Lerberghe Ответ принят
Already reported in Mantis (#0008723), but into VALENTINA SERVER
Комментарий
There are no comments made yet.
François Van Lerberghe Ответ принят
The only workaround I see is :
before issuing vServer.Shutdown, close the connexion and recreate it.
Комментарий
There are no comments made yet.
François Van Lerberghe Ответ принят
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
Комментарий
Hi, please report THIS info into Mantis as a bug that crashes. Please report it into V4RB project.
  1. Ruslan Zasukhin
  2. около 4 лет назад
There are no comments made yet.
François Van Lerberghe Ответ принят
Ooh. Good to know. I will try this as soon as possible. Thank you.
Комментарий
There are no comments made yet.
Beatrix Willius Ответ принят
I just tried with 9.8.1 and the shutdown worked fine (Xojo 2019r3 and Catalina). I used the ValentinaServerUtility project.
Комментарий
There are no comments made yet.
François Van Lerberghe Ответ принят
Sorry to forget.
- Version Xojo : 2019r1.1
- Version Valentina : 9.5.3
- MacOS 10.14.6
- Hard crash, no exception
Вложения
Комментарий
There are no comments made yet.
Beatrix Willius Ответ принят
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.
Комментарий
There are no comments made yet.
  • Страница :
  • 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