#1 2015-03-06 02:40:03

delphiancoder
Member
Registered: 2015-03-04
Posts: 11

MVCServerMongoDB - EXCOS EAccessViolation

Hi

this is my first post.

Try compilation in D7  as in D2010, ...,   same error,  in mongo 2.6  and mongo 3.0 (both local or remote)

( \Samples\24 - MongoDB  compiled and run no problem ! )

I suppose any mistake on my side, sorry, not seen here any post about this.
Thanks for any help.


.....
.
.
20150306 02230959  +    00096E40 mORMotMongoDB.StaticMongoDBRegister (223)
20150306 02230959 info      TSQLRestStorageMongoDB(00C90B50) will store TSQLArticle using {"TMongoCollection(00B914F8)":{"Name":"Article","FullCollectionName":"blog.Article","Database":{"TMongoDatabase(00B8CE78)":{"Name":"blog","Client":{"TMongoClient(00B7DA08)":{"ConnectionString":"mongodb://188.166.36.128:27017","ServerBuildInfoNumber":3000000,"ReadPreference":"Primary","WriteConcern":"Acknowledged","ConnectionTimeOut":30000,"BytesReceived":1147,"BytesSent":276,"BytesTransmitted":1423,"LogRequestEvent":"SQL","LogReplyEvent":"DB","LogReplyEventMaxSize":1024}}}}}}
20150306 02230959  -    00.000.384
20150306 02230959  +    00096E40 mORMotMongoDB.StaticMongoDBRegister (223)
20150306 02230959 info      TSQLRestStorageMongoDB(00C90E30) will store TSQLComment using {"TMongoCollection(00B91390)":{"Name":"Comment","FullCollectionName":"blog.Comment","Database":{"TMongoDatabase(00B8CE78)":{"Name":"blog","Client":{"TMongoClient(00B7DA08)":{"ConnectionString":"mongodb://188.166.36.128:27017","ServerBuildInfoNumber":3000000,"ReadPreference":"Primary","WriteConcern":"Acknowledged","ConnectionTimeOut":30000,"BytesReceived":1147,"BytesSent":276,"BytesTransmitted":1423,"LogRequestEvent":"SQL","LogReplyEvent":"DB","LogReplyEventMaxSize":1024}}}}}}
20150306 02230959  -    00.000.139
20150306 02230959  +    00096E40 mORMotMongoDB.StaticMongoDBRegister (223)
20150306 02230959 info      TSQLRestStorageMongoDB(00C91110) will store TSQLArticleSearch using {"TMongoCollection(00B91510)":{"Name":"ArticleSearch","FullCollectionName":"blog.ArticleSearch","Database":{"TMongoDatabase(00B8CE78)":{"Name":"blog","Client":{"TMongoClient(00B7DA08)":{"ConnectionString":"mongodb://188.166.36.128:27017","ServerBuildInfoNumber":3000000,"ReadPreference":"Primary","WriteConcern":"Acknowledged","ConnectionTimeOut":30000,"BytesReceived":1147,"BytesSent":276,"BytesTransmitted":1423,"LogRequestEvent":"SQL","LogReplyEvent":"DB","LogReplyEventMaxSize":1024}}}}}}
20150306 02230959  -    00.000.063
20150306 02230959 SQL   TSQLRestStorageMongoDB(00C90870) SELECT RowID,Ident,Occurence FROM Tag order by Ident;20150306 02230959 SQL   {collection:"blog.Tag",opCode:"opQuery",requestID:4,query:{$query:{}},projection:{_id:1,Ident:1,Occurence:1}}
20150306 02230961 DB    null
20150306 02233200 EXCOS EAccessViolation (C0000005) at 000A63CF MVCModel.TSQLTags.Init (283)  stack trace
20150306 02233200  +    TSQLRestServer(00AC79A0).Shutdown
20150306 02233200 info      CurrentRequestCount=0
20150306 02233201  -    00.004.799
20150306 02233201 info  TSQLRestStorageMongoDB.Destroy ->
...
..

Last edited by delphiancoder (2015-03-06 02:46:41)

Offline

#2 2015-03-06 08:00:47

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: MVCServerMongoDB - EXCOS EAccessViolation

Welcome in the forum!

No, the problem is not on your side.
There was a caveat here, with a blank MongoDB database and current code.

I've fixed a potential access violation and/or memory leak when using a TSQLTable when the incoming JSON is void or malformatted.
See http://synopse.info/fossil/info/37cea72a0a

Thanks for the feedback!

Offline

#3 2015-03-06 09:23:26

delphiancoder
Member
Registered: 2015-03-04
Posts: 11

Re: MVCServerMongoDB - EXCOS EAccessViolation

Thanks a lot !  (I've tried to figure out what the cause, for days, then subscribed here, because supposed others also shouls seen a such problem testing the demo.  Probably not ;-)    )

When you show a fiexed here in the forum,  mean the code  is already updated in the zip:
http://synopse.info/files/mORMotNightlyBuild.zip
or usually is updated at the end of day or next day ?

Thanks

Offline

#4 2015-03-06 09:42:30

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: MVCServerMongoDB - EXCOS EAccessViolation

It is updated in the morning, around 06:00 AM (Paris time).

But you can get the fresh modification from our Fossil repository - http://synopse.info/fossil/timeline
or from our https://github.com/synopse/mORMot mirror.

Offline

Board footer

Powered by FluxBB