1. François Van Lerberghe
  2. Valentina Server
  3. 木, 2月 06 2020, 11:01 AM
  4.  メールで購読
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. 5 月前
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