Code Monkey home page Code Monkey logo

Comments (2)

jakebolewski avatar jakebolewski commented on May 19, 2024

Hmm, the relevant example in the examples/ directory does not line up with the header / C-api definition. So this looks like more of a bug.

The following is a simple test-case that segfaults. I'm having no luck getting the debug build to work well with lldb which may be a different issue.

#include "tiledb.h"
#include "stdlib.h"

int main() { 

  TileDB_Config* cfg = (TileDB_Config*) malloc(sizeof(TileDB_Config)); 
  memset(cfg, 0, sizeof(TileDB_Config));

  TileDB_CTX* ctx;
  tiledb_ctx_init(&ctx, cfg);
  
  tiledb_workspace_create(ctx, "/var/folders/yn/_1781_c548z33m_qsc1q0q1m0000gn/T/tmpkpk8t4lu/test_workspace1");
  tiledb_workspace_create(ctx, "/var/folders/yn/_1781_c548z33m_qsc1q0q1m0000gn/T/tmpkpk8t4lu/test_workspace2");
  
  int nws = 0;
  tiledb_ls_workspaces_c(ctx, &nws);

  printf("the number of workspaces is %d\n", nws);
}

from tiledb.

stavrospapadopoulos avatar stavrospapadopoulos commented on May 19, 2024

This is resolved (~./tiledb was corrupted). Also, regarding the docs, we are planning to remove the master catalog and add a C API that receives a parent directory as argument (creating new issues on these).

from tiledb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.