New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with exit code 3221225781 #1633

Closed
OKINGWNER opened this Issue Apr 12, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@OKINGWNER

OKINGWNER commented Apr 12, 2018

Setup

Versions

  • Rust:1.25.0(stable-x86_64-pc-windows-msvc)
  • Diesel:1.1.1
  • Database:pg10
  • Operating System: Windows7 ultimate 64bit Service pack 1

Feature Flags

  • diesel:

Problem Description

cargo.toml:

[dependencies]
diesel = { version = "1.0.0", features = ["postgres"]}
dotenv = "0.10.0"
dotenv_codegen = "0.10"

main.rs:

extern crate diesel;
extern crate dotenv;

use diesel::prelude::*;
//use diesel::mysql::MysqlConnection;
use diesel::pg::PgConnection;
use dotenv::dotenv;
use std::env;

fn establish_connection() -> PgConnection {
    dotenv().ok();

    let database_url = env::var("DATABASE_URL")
        .expect("DATABASE_URL must be set");

    PgConnection::establish(&database_url)
        .expect(&format!("Error connection to {}", database_url))
}

fn main() {
    println!("start ...");
    let _t = establish_connection();
}

When i run:

xxx>cargo run

I got error:

Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs
     Running `target\debug\diesel_demo.exe`
error: process didn't exit successfully: `target\debug\diesel_demo.exe` (exit code: 3221225781)

What are you trying to accomplish?

I just do with the start guide...,and when i use diesel-cli,it didn't return any wrong message。I don't know how to deal with it. Could you please help me?thank you!

What is the expected output?

What is the actual output?

Are you seeing any additional errors?

Steps to reproduce

Checklist

  • [y] I have already looked over the issue tracker for similar issues.
@OKINGWNER

This comment has been minimized.

OKINGWNER commented Apr 12, 2018

sorry for my foolish, :) I should double-click to run rather than through the console,so I can see the exact cause of the error. sorry,please close this issue :)

@sgrif sgrif closed this Apr 12, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment